typeid-python
Advanced tools
+9
-9
@@ -1,11 +0,11 @@ | ||
| Metadata-Version: 2.1 | ||
| Metadata-Version: 2.4 | ||
| Name: typeid-python | ||
| Version: 0.3.2 | ||
| Version: 0.3.3 | ||
| Summary: Python implementation of TypeIDs: type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs | ||
| Home-page: https://github.com/akhundMurad/typeid-python | ||
| License: MIT | ||
| License-File: LICENSE | ||
| Keywords: typeid,uuid,uuid6,guid | ||
| Author: Murad Akhundov | ||
| Author-email: akhundov1murad@gmail.com | ||
| Requires-Python: >=3.9,<4 | ||
| Requires-Python: >=3.10,<4 | ||
| Classifier: Development Status :: 3 - Alpha | ||
@@ -15,3 +15,2 @@ Classifier: License :: OSI Approved :: MIT License | ||
| Classifier: Programming Language :: Python :: 3 | ||
| Classifier: Programming Language :: Python :: 3.9 | ||
| Classifier: Programming Language :: Python :: 3.10 | ||
@@ -21,4 +20,5 @@ Classifier: Programming Language :: Python :: 3.11 | ||
| Classifier: Programming Language :: Python :: 3.13 | ||
| Classifier: Programming Language :: Python :: 3.14 | ||
| Provides-Extra: cli | ||
| Requires-Dist: uuid6 (>=2023.5.2) | ||
| Requires-Dist: uuid6 (>=2024.7.10,<2026.0.0) | ||
| Project-URL: Repository, https://github.com/akhundMurad/typeid-python | ||
@@ -120,3 +120,3 @@ Description-Content-Type: text/markdown | ||
| ```console | ||
| $ python3 -m typeid.cli new -p prefix | ||
| $ typeid new -p prefix | ||
| prefix_01h2xcejqtf2nbrexx3vqjhp41 | ||
@@ -128,3 +128,3 @@ ``` | ||
| ```console | ||
| $ python3 -m typeid.cli decode prefix_01h2xcejqtf2nbrexx3vqjhp41 | ||
| $ typeid decode prefix_01h2xcejqtf2nbrexx3vqjhp41 | ||
| type: prefix | ||
@@ -137,5 +137,5 @@ uuid: 0188bac7-4afa-78aa-bc3b-bd1eef28d881 | ||
| ```console | ||
| $ python3 -m typeid.cli encode 0188bac7-4afa-78aa-bc3b-bd1eef28d881 --prefix prefix | ||
| $ typeid encode 0188bac7-4afa-78aa-bc3b-bd1eef28d881 --prefix prefix | ||
| prefix_01h2xcejqtf2nbrexx3vqjhp41 | ||
| ``` | ||
+20
-6
| [tool.poetry] | ||
| name = "typeid-python" | ||
| version = "0.3.2" | ||
| version = "0.3.3" | ||
| description = "Python implementation of TypeIDs: type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs" | ||
@@ -12,3 +12,2 @@ authors = ["Murad Akhundov <akhundov1murad@gmail.com>"] | ||
| "License :: OSI Approved :: MIT License", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
@@ -18,2 +17,3 @@ "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: 3.14", | ||
| "Operating System :: OS Independent", | ||
@@ -49,4 +49,4 @@ ] | ||
| [tool.poetry.dependencies] | ||
| python = ">=3.9,<4" | ||
| uuid6 = ">=2023.5.2" | ||
| python = ">=3.10,<4" | ||
| uuid6 = ">=2024.7.10,<2026.0.0" | ||
@@ -57,7 +57,7 @@ | ||
| black = "^23.3.0" | ||
| flake8 = "^5.0.0" | ||
| isort = "^5.12.0" | ||
| mypy = "^1.3.0" | ||
| requests = "^2.31.0" | ||
| pyyaml = "^6.0" | ||
| ruff = "^0.14.5" | ||
| twine = "^6.2.0" | ||
@@ -68,9 +68,23 @@ | ||
| [tool.poetry.scripts] | ||
| typeid = "typeid.cli:cli" | ||
| [tool.pylint] | ||
| disable = ["C0111", "C0116", "C0114", "R0903"] | ||
| [tool.ruff] | ||
| line-length = 119 | ||
| target-version = "py310" | ||
| src = ["typeid", "tests"] | ||
| [tool.ruff.lint] | ||
| select = ["E", "F", "W", "B", "I"] | ||
| ignore = ["E203", "B028"] | ||
| [tool.ruff.lint.isort] | ||
| known-first-party = ["typeid"] | ||
| [build-system] | ||
| requires = ["poetry-core"] | ||
| build-backend = "poetry.core.masonry.api" |
+3
-3
@@ -94,3 +94,3 @@ # TypeID Python | ||
| ```console | ||
| $ python3 -m typeid.cli new -p prefix | ||
| $ typeid new -p prefix | ||
| prefix_01h2xcejqtf2nbrexx3vqjhp41 | ||
@@ -102,3 +102,3 @@ ``` | ||
| ```console | ||
| $ python3 -m typeid.cli decode prefix_01h2xcejqtf2nbrexx3vqjhp41 | ||
| $ typeid decode prefix_01h2xcejqtf2nbrexx3vqjhp41 | ||
| type: prefix | ||
@@ -111,4 +111,4 @@ uuid: 0188bac7-4afa-78aa-bc3b-bd1eef28d881 | ||
| ```console | ||
| $ python3 -m typeid.cli encode 0188bac7-4afa-78aa-bc3b-bd1eef28d881 --prefix prefix | ||
| $ typeid encode 0188bac7-4afa-78aa-bc3b-bd1eef28d881 --prefix prefix | ||
| prefix_01h2xcejqtf2nbrexx3vqjhp41 | ||
| ``` |
+5
-4
@@ -0,1 +1,2 @@ | ||
| import uuid | ||
| import warnings | ||
@@ -27,3 +28,3 @@ from typing import Optional | ||
| @classmethod | ||
| def from_uuid(cls, suffix: uuid6.UUID, prefix: Optional[str] = None): | ||
| def from_uuid(cls, suffix: uuid.UUID, prefix: Optional[str] = None): | ||
| suffix_str = _convert_uuid_to_b32(suffix) | ||
@@ -52,3 +53,3 @@ return cls(suffix=suffix_str, prefix=prefix) | ||
| def __repr__(self): | ||
| return "%s(%r)" % (self.__class__.__name__, str(self)) | ||
| return "%s.from_string(%r)" % (self.__class__.__name__, str(self)) | ||
@@ -79,3 +80,3 @@ def __eq__(self, value: object) -> bool: | ||
| def from_uuid(suffix: uuid6.UUID, prefix: Optional[str] = None) -> TypeID: | ||
| def from_uuid(suffix: uuid.UUID, prefix: Optional[str] = None) -> TypeID: | ||
| warnings.warn("Consider TypeID.from_uuid instead.", DeprecationWarning) | ||
@@ -102,3 +103,3 @@ return TypeID.from_uuid(suffix=suffix, prefix=prefix) | ||
| def _convert_uuid_to_b32(uuid_instance: uuid6.UUID) -> str: | ||
| def _convert_uuid_to_b32(uuid_instance: uuid.UUID) -> str: | ||
| return base32.encode(list(uuid_instance.bytes)) | ||
@@ -105,0 +106,0 @@ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
21933
0.85%485
0.21%