{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/2"}],"enrichment":{"capability":"Generates version 7 UUIDs that are time-sortable with chronological ordering and include randomness for uniqueness.","skillfed_tags":["uuid-generation","time-sortable","distributed-systems"],"use_cases":["Database primary keys where insertion order and time-based sorting are both required without a separate timestamp column.","Distributed system event IDs that need to be both globally unique and chronologically orderable across nodes.","Time-series data collection where UUID generation order reflects actual event timing.","Log entry identifiers that can be sorted by creation time without parsing metadata.","Microservice request tracing where trace IDs encode their generation timestamp for quick temporal analysis."],"what_it_does":"uuid7 implements version 7 UUIDs as proposed in draft-peabody-dispatch-new-uuid-format-02, which encode a Unix timestamp in the first 36 bits followed by fractional seconds, a sequential counter, and random bits. Unlike standard UUIDs, version 7 UUIDs sort chronologically by their creation time, making them useful for databases and systems where insertion order matters. The package provides multiple output formats (bytes, hex, int, str, uuid, or None).\n\nThe implementation allocates the 128 bits as: 36 bits of whole seconds since epoch, 24 bits of fractional seconds (approximately 50ns resolution), 14 bits of sequential counter for repeated calls within the same time tick, and 48 bits of randomness, plus RFC4122-mandated version and variant bits. Generation is faster than uuid.uuid4() when returning integers or strings, though slightly slower when returning UUID objects.","worth_installing":"Yes, if you need time-sortable UUIDs and can accept a dormant package (no updates since 2021-12-29). The implementation is simple, dependency-free, and MIT-licensed. However, verify that RFC4122 version 7 adoption aligns with your infrastructure's UUID support before committing to it as a primary identifier scheme."},"id":"uuid7","links":{"html":"https://skillfed.io/packages/uuid7","md":"https://skillfed.io/packages/uuid7.md","pypi":"https://pypi.org/project/uuid7/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2021-12-29","license_spdx":null,"license_treatment":"permissive","name":"uuid7","python_support":"supports_current","summary":"UUID version 7, generating time-sorted UUIDs with 200ns time resolution and 48 bits of randomness"},"popularity":{"monthly_downloads":14610259,"position":1223,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.1.0"}
