Named types.
Project Links
Meta
Author: nekitdev
Requires Python: >=3.8
Classifiers
Development Status
- 5 - Production/Stable
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Operating System
- OS Independent
Programming Language
- Python :: 3
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
Topic
- Utilities
Typing
- Typed
named
Named types.
Installing
Python 3.8 or above is required.
pip
Installing the library with pip
is quite simple:
$ pip install named
Alternatively, the library can be installed from source:
$ git clone https://github.com/nekitdev/named.git
$ cd named
$ python -m pip install .
poetry
You can add named
as a dependency with the following command:
$ poetry add named
Or by directly specifying it in the configuration like so:
[tool.poetry.dependencies]
named = "^1.4.2"
Alternatively, you can add it directly from the source:
[tool.poetry.dependencies.named]
git = "https://github.com/nekitdev/named.git"
Example
>>> from named import get_name, get_type_name, is_named
>>> print(is_named(int))
True
>>> print(get_name(int))
int
>>> print(is_named(42))
False
>>> print(get_type_name(42))
int
Documentation
You can find the documentation here.
Support
If you need support with the library, you can send an email or refer to the official Discord server.
Changelog
You can find the changelog here.
Security Policy
You can find the Security Policy of named
here.
Contributing
If you are interested in contributing to named
, make sure to take a look at the
Contributing Guide, as well as the Code of Conduct.
License
named
is licensed under the MIT License terms. See License for details.
Mar 15, 2024
1.4.2
Feb 26, 2024
1.4.1
Feb 25, 2024
1.4.0
May 29, 2023
1.3.0
May 23, 2023
1.2.0
Nov 07, 2022
1.1.0
Oct 29, 2022
1.0.1
Oct 29, 2022
1.0.0
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
(>=4.10.0)
typing-extensions