{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database"}],"enrichment":{"capability":"Generates time-based UUID formats (versions 6, 7, and 8) optimized for use as database keys, extending Python's standard UUID class with RFC 9562 compliant functions.","skillfed_tags":["uuid-generation","database-keys","rfc-9562"],"use_cases":["Generate sortable primary keys for database tables where insertion order and query performance matter.","Replace uuid4() in applications that need both uniqueness and temporal ordering without additional indexing overhead.","Migrate legacy systems using UUID version 1 to the improved UUID version 6 format via uuid1_to_uuid6().","Generate UUIDs with nanosecond precision for high-resolution event logging or financial transaction tracking.","Implement distributed system identifiers where both time-ordering and cryptographic randomness are required."],"what_it_does":"uuid6 extends Python's built-in UUID class with three new time-based UUID generators\u2014uuid6(), uuid7(), and uuid8()\u2014that implement the proposed IETF RFC 9562 standard. These formats are designed to be sortable and database-friendly, addressing a key limitation of random UUIDs (uuid4) which scatter across index space. UUID version 7 is recommended for most use cases, using Unix epoch milliseconds for ordering and improved entropy. UUID version 6 provides a reordered variant of UUID version 1 for systems with existing v1 UUIDs. UUID version 8 trades some entropy for nanosecond-level timestamp precision when finer granularity is required.\n\nThe package has no runtime dependencies and installs cleanly. It is actively maintained, supports Python 3.9 through 3.13, and carries an MIT license. The implementation includes a conversion function (uuid1_to_uuid6) for migrating existing UUID version 1 objects. All three generators are documented as not thread-safe, so concurrent use requires external synchronization.","worth_installing":"Yes. uuid6 is a lightweight, zero-dependency package that solves a real database performance problem by providing RFC 9562 compliant, sortable UUIDs. It is actively maintained, supports current Python versions, carries a permissive MIT license, and has no known vulnerabilities. Install it if you generate UUIDs for database keys and want better index locality than random UUIDs provide."},"id":"uuid6","links":{"html":"https://skillfed.io/packages/uuid6","md":"https://skillfed.io/packages/uuid6.md","pypi":"https://pypi.org/project/uuid6/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-07-04","license_spdx":null,"license_treatment":"permissive","name":"uuid6","python_support":"supports_current","summary":"New time-based UUID formats which are suited for use as a database key"},"popularity":{"monthly_downloads":18014267,"position":1090,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2025.0.1"}
