uuid-extension
UUID7 Extension for Python
What it is and what it does
uuid-extension provides a Python implementation of UUID version 7, a time-ordered identifier format. Unlike earlier UUID versions, version 7 encodes a Unix timestamp in its first 48 bits, making the generated IDs naturally sortable by creation time—a property that improves database index performance and query efficiency when UUIDs are used as primary keys or sort keys.
The library wraps the standard Python UUID object and adds methods to extract the embedded timestamp as either a Unix float or a datetime object, optionally in a specific timezone. It also supports an optional counter parameter to guarantee monotonic ordering within the same millisecond, useful in high-frequency ID generation. The package has no runtime dependencies and installs as a pure Python wheel, making it lightweight to adopt.
Use it for:
- Generate sortable primary keys for database tables where insertion order and query performance matter.
- Create time-ordered event IDs in distributed systems where clock synchronization is imperfect.
- Build audit logs or event streams where ID generation timestamp must be recoverable without a separate timestamp column.
- Replace UUID version 4 in applications that benefit from natural time-based ordering without sacrificing uniqueness.
- Implement monotonic ID sequences within millisecond boundaries for high-throughput services.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Generates UUID version 7 identifiers—time-ordered, RFC-compliant UUIDs that encode a timestamp and support optional monotonic counters for database-friendly ID generation.
Yes, if you need time-ordered UUIDs and can verify the license. The package has zero dependencies, low install friction, and no known vulnerabilities. However, the aging maintenance status (389 days since release, no recent commits visible) and unclear license metadata warrant a quick check before adopting in production—confirm the MIT License claim and assess whether the implementation meets your compliance requirements.
Install
uuid-extension on PyPI
pip
pip install uuid-extensionuv
uv add uuid-extensionpoetry
poetry add uuid-extensionInstalling uuid-extension
Before you install
No runtime dependencies and a pure-Python wheel make installation frictionless. The package is aging (389 days since release) with no recent commits visible in the fact sheet, so maintenance activity is unclear.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is recorded. The description mentions MIT License, but this is not confirmed in the metadata, so verify the actual license before adopting in a commercial or copyleft context.
Quickstart
pip install uuid-extension
from uuid_extension import uuid7
# Generate a new UUID7
uuid = uuid7()
print(uuid)
# Extract timestamp
ts = uuid.to_timestamp()
dt = uuid.to_datetime()
Requires Python 3.8 or later.
Verify before relying
- Whether the MIT License mentioned in the description is the actual license applied to the package.
- Current maintenance status and whether the package is actively maintained or in maintenance-only mode.
- Whether the UUID version 7 implementation is fully compliant with the specification.
- Performance characteristics and suitability for high-throughput ID generation scenarios.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 389 days since the last release |
| First released | |
| Downloads | 79,426/month — #14,360 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: uuid_extension-0.2.0-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
uuid-utilsFast UUID generation and manipulation for all…
permissive · top 1,000 on PyPI
uuid7Generates version 7 UUIDs that are…
permissive · top 5,000 on PyPI
uuid7-standardGenerates and parses UUIDv7 identifiers with…
permissive · top 15,000 on PyPI
timeflakeGenerates 128-bit, time-ordered, URL-safe…
permissive · top 15,000 on PyPI
uuid6Generates time-based UUID formats (versions 6,…
permissive · top 5,000 on PyPI
python-ulidGenerates and manipulates ULIDs (universally…
permissive · top 5,000 on PyPI
ksuidGenerates sortable unique identifiers (KSUIDs)…
permissive · top 15,000 on PyPI
typeid-pythonGenerates and parses TypeIDs—type-safe,…
permissive · top 15,000 on PyPI
pynamodb-attributesProvides typed attribute classes for PynamoDB…
unclear · top 15,000 on PyPI
freeze-uuidDecorator and context manager to mock Python's…
permissive · top 15,000 on PyPI