skillfed

uuid-extension

UUID7 Extension for Python

uuid-extension v0.2.0 79.4K downloads/30d#14,360 on PyPI
License unclear AGING released

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-extension

uv

uv add uuid-extension

poetry

poetry add uuid-extension

Installing 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

UUID version 7 generatortime-ordered UUIDssortable unique identifiersdatabase-friendly UUID generationtimestamp-based UUIDsmonotonic ID generationUUID with timestamp
uuid-generationtime-ordered-idsdatabase-optimization

More Software Development packages