Registry / serialization / c-uuid-v7

c-uuid-v7

JSON →
library0.0.11pypypi✓ verified 85d ago

A fast UUID v7 generator implemented as a CPython C extension, version 0.0.11. Provides a simple interface for generating time-ordered UUIDs compliant with RFC 9562. Released periodically with performance improvements.

pip install c-uuid-v7
INSTALL
IMPORT
SIG · C-UUID-V7
C
c-uuid-v7
serializationpythonv0.0.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

UUID
✓ from c_uuid_v7 import UUID
✗ from c_uuid_v7 import UUIDv7
uuid7
✓ from c_uuid_v7 import uuid7
NIL
✓ from c_uuid_v7 import NIL

Generate a UUID v7 using the C extension. The UUIDv7 class can be instantiated directly and provides .hex and .bytes properties.

from c_uuid_v7 import UUIDv7 # Generate a single UUID v7 uid = UUIDv7() print(uid) # e.g., 018f3a6e-1b2c-7a3d-8e4f-5a6b7c8d9e0f # Generate as hex string hex_str = uid.hex print(hex_str) # Generate as bytes bytes_val = uid.bytes print(bytes_val)
Debug
Known issues
breakingRequires Python >=3.10; on older Python versions, installing from source may fail or produce errors.
fix
Upgrade to Python 3.10 or later.
affects: 0.0.0 to 0.0.11
gotchaThe library exports only UUIDv7, not a function like 'uuid7()' or 'generate()'. Users may mistakenly try to call uuid7() or import from uuid module.
fix
Use `from c_uuid_v7 import UUIDv7; uid = UUIDv7()`.
affects: all
gotchaGenerated UUIDs are time-ordered but not guaranteed to be strictly monotonic across multiple processes due to clock skew or high concurrency; rely on them for ordering within a single process only.
fix
For cross-process monotonicity, consider using a coordinator or additional sequence counter.
affects: all
Upgrade
Version history
0.0.11latest on PyPI · released Apr 27, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
c-uuid-v7 — pip install c-uuid-v7 · libregistry