$npx skillfedfor your agent

ulid-py

Universally Unique Lexicographically Sortable Identifier

With conditionsPyPI Python ModulesReleased Sep 20201.9M downloads / moApache 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ulid_py-1.1.0-py2.py3-none-any.whl
v1.1.0 · released 2020-09-15

Yes, with conditions. The package is stable and production-ready for generating sortable identifiers, with no known vulnerabilities and low install friction. However, it is abandoned (last update September 2020) and may lack support for newer Python versions beyond 3.8. Install it if you need ULID functionality and can accept a dependency that will not receive updates; consider alternatives if you require active maintenance or support for Python 3.9+.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installation is straightforward with no runtime dependencies.
  • The project is marked abandoned with last commit in March 2023, though it remains stable and has accumulated 739 repository stars.

License · maintenance · safety

Apache 2.0 (permissive) — Licensed under Apache 2.0 (permissive), allowing use in both open-source and proprietary projects with minimal restrictions.

last release 2020-09-15 (2159 days) · last repo commit 2023-03-14 · 739 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,853,145 downloads/mo, #3,491 on PyPI

Verify before relying

pip install ulid-py

import ulid

# Generate a new ULID
u = ulid.new()
print(u)  # <ULID('01BJQE4QTHMFP0S5J153XCFSP9')>

# Parse from various types
u2 = ulid.parse('01BJQE4QTHMFP0S5J153XCFSP9')

# Extract timestamp and randomness
ts = u.timestamp()
rand = u.randomness()
  • Whether the abandoned status and lack of updates since 2020 affects compatibility with current Python 3.9+ releases
  • Performance characteristics compared to other ULID or UUID libraries in production workloads
Same gist for agents: .md · .json

What it is and what it does

ulid-py is a pure-Python implementation of the ULID specification, providing a 128-bit identifier format that combines a 48-bit millisecond-precision timestamp with 80 bits of cryptographic randomness. Unlike UUIDs, ULIDs are lexicographically sortable as strings, making them efficient for database indexing and time-ordered queries. The library generates new ULIDs with timestamp and randomness from standard library sources (time.time() and os.urandom()), and supports creating ULIDs from existing values including UUIDs, timestamps, and raw randomness.

The package provides a MemoryView base class that allows ULIDs, timestamps, and randomness values to be represented in multiple formats (string, bytes, hex, int, binary, octal) and compared lexicographically. It handles type conversion automatically through a parse() method when the input type is unknown. The implementation is designed for fast, pure-Python operation without external dependencies, making it suitable for applications that need sortable, distributed identifiers without database coordination.

Use it for

  • Generate sortable unique IDs for database records that maintain insertion order without requiring a central sequence
  • Replace UUIDs in systems where lexicographic ordering and string efficiency matter, such as URL slugs or API keys
  • Create time-ordered event IDs in distributed systems where multiple services generate identifiers independently
  • Convert existing UUIDs or timestamps to ULID format for compatibility with systems expecting sortable identifiers
  • Extract timestamp information from existing ULID values for time-based queries or analytics

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, with conditions.

The package is stable and production-ready for generating sortable identifiers, with no known vulnerabilities and low install friction. However, it is abandoned (last update September 2020) and may lack support for newer Python versions beyond 3.8. Install it if you need ULID functionality and can accept a dependency that will not receive updates; consider alternatives if you require active maintenance or support for Python 3.9+.

Install

ulid-py on PyPI

Before you install

Installation is straightforward with no runtime dependencies. The project is marked abandoned with last commit in March 2023, though it remains stable and has accumulated 739 repository stars.

License in practice

Licensed under Apache 2.0 (permissive), allowing use in both open-source and proprietary projects with minimal restrictions.

Quickstart

pip install ulid-py

import ulid

# Generate a new ULID
u = ulid.new()
print(u)  # <ULID('01BJQE4QTHMFP0S5J153XCFSP9')>

# Parse from various types
u2 = ulid.parse('01BJQE4QTHMFP0S5J153XCFSP9')

# Extract timestamp and randomness
ts = u.timestamp()
rand = u.randomness()

Verify before relying

  • Whether the abandoned status and lack of updates since 2020 affects compatibility with current Python 3.9+ releases
  • Performance characteristics compared to other ULID or UUID libraries in production workloads

Package facts

LicenseApache 2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 2,159 days since the last release
Last repo commit
First released
Downloads1,853,145 / month, #3,491 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Software Development :: Libraries :: Python Modules

Evidence: ulid_py-1.1.0-py2.py3-none-any.whl

Tags

Capabilities
unique sortable identifier generationULID implementation pythonlexicographically sortable IDstimestamp-based unique IDUUID alternativebase32 encoded identifiersdistributed ID generation
Topics
identifier-generationsortable-idsdistributed-systems

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “lexicographically sortable IDs”

  • ulid-pyGenerates and parses ULIDs (Universally Unique Lexicographically…
  • ulidGenerates ULIDs (Universally Unique Lexicographically Sortable…
  • python-ulidGenerates and manipulates ULIDs (universally unique lexicographically…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also python-ulid · snowflake-id · ulid · timeflake · uuid · typeid-python · ulid-transform · cyksuid · py-deviceid · pksuid