ULID-transform is a high-performance Python library designed for creating and transforming ULIDs (Universally Unique Lexicographically Sortable Identifiers). It provides efficient generation of ULIDs and seamless conversion between ULIDs and UUIDs. The library is currently at version 2.2.0 and maintains an active release cadence, frequently incorporating performance enhancements and bug fixes.
pip install ulid-transformVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to generate a new ULID and perform conversions between ULID strings and UUID objects using the core functions of the `ulid-transform` library.
Ensure your project is running on Python 3.11 or later before upgrading to `ulid-transform` v2.0.0 or higher. Thoroughly test existing ULID-related logic after upgrading.
Be aware that ULID sequences may differ when upgrading from versions prior to 2.1.0. This is generally not an issue for typical use cases but could affect very specific testing or cryptographic-like scenarios.