{"id":5739,"library":"uuid7","title":"UUID version 7 (Pre-RFC Standard)","description":"This library implements UUID version 7 based on an *earlier draft* of the specification, offering time-sorted UUIDs with approximately 50ns resolution. Released at version 0.1.0 in late 2021, it appears to be unmaintained. Crucially, it **does NOT conform to the final RFC 9562 standard for UUIDv7**, which specifies millisecond precision, leading to significant compatibility issues with compliant implementations.","status":"abandoned","version":"0.1.0","language":"en","source_language":"en","source_url":"https://github.com/stevesimmons/uuid7","tags":["uuid","uuid7","time-sorted","legacy","non-compliant","abandoned"],"install":[{"cmd":"pip install uuid7","lang":"bash","label":"Install `uuid7` package"}],"dependencies":[],"imports":[{"note":"While its own PyPI page suggests `from uuid_extensions import uuid7`, this is a different, compliant package. For the `uuid7` package (this entry), the direct import from the package name is expected, though its own documentation is confusing.","wrong":"from uuid_extensions import uuid7","symbol":"uuid7","correct":"from uuid7 import uuid7"}],"quickstart":{"code":"from uuid7 import uuid7\n\n# Generate a new non-RFC 9562 compliant UUIDv7\nmy_uuid = uuid7()\nprint(f\"Generated UUID: {my_uuid}\")\nprint(f\"UUID as string: {str(my_uuid)}\")\nprint(f\"UUID as integer: {my_uuid.int}\")","lang":"python","description":"Generates a new UUID using the `uuid7` library. Note that UUIDs generated by this library are not compliant with the final RFC 9562 standard."},"warnings":[{"fix":"Avoid using this `uuid7` package. Consider `uuid-extension` (on PyPI) for current Python versions, or Python's built-in `uuid.uuid7()` (available in Python 3.14+). If you must use a similar concept, ensure all systems use this exact non-compliant implementation, which is highly discouraged.","message":"This library implements an **outdated draft** of the UUIDv7 specification. It uses nanosecond (or ~50ns) time precision, whereas the final RFC 9562 standard specifies millisecond precision. UUIDs generated by this library are not compatible or correctly sortable with UUIDs from RFC 9562 compliant implementations (e.g., Python 3.14's `uuid.uuid7` or the `uuid-extension` PyPI package). Migrating to a compliant implementation will result in non-monotonic UUIDs if mixed with those from this package.","severity":"breaking","affected_versions":"0.1.0 (all versions)"},{"fix":"Transition to a maintained and RFC 9562 compliant UUIDv7 library, such as `uuid-extension` on PyPI or the built-in `uuid.uuid7()` in Python 3.14+.","message":"The `uuid7` package appears to be unmaintained, with its last release (0.1.0) in December 2021. This indicates it will not be updated to conform to the final RFC 9562 specification or receive further bug fixes.","severity":"deprecated","affected_versions":"0.1.0 (all versions)"},{"fix":"Always verify import paths against the actual installed package content. For RFC 9562 compliant UUIDv7, explicitly install and use `uuid-extension` (`pip install uuid-extension`) and import `from uuid_extension import uuid7`.","message":"The documentation on this package's PyPI page is misleading, often showing import examples for a *different* package (`uuid_extensions`). This can lead to confusion and incorrect installations or import paths.","severity":"gotcha","affected_versions":"0.1.0 (all versions)"},{"fix":"For Python 3.14+, prefer `import uuid; uuid.uuid7()`. For earlier Python versions, use maintained third-party alternatives like `uuid-extension`.","message":"Python 3.14 and later versions will include a built-in `uuid.uuid7()` function that is fully compliant with RFC 9562. Using this `uuid7` (pypi slug) package will conflict with future standard library behavior and lead to non-compliant UUIDs.","severity":"gotcha","affected_versions":"0.1.0 (all versions) when used with Python 3.14+"}],"env_vars":null,"last_verified":"2026-04-09T00:00:00.000Z","next_check":"2026-07-08T00:00:00.000Z"}