typeid-python
Python implementation of TypeIDs: type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs
Decision gist · record as of 2026-08-14
Yes, if you need sortable, type-safe identifiers with Rust-backed performance. The library is actively maintained, has no known vulnerabilities, and offers a permissive MIT license. Install friction is moderate due to compiled wheels, but pre-built binaries cover common platforms. Suitable for production use in modern Python applications (3.10+) where identifier semantics and performance matter.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; compiled Rust wheels must be available for your platform (macOS, Linux aarch64, or Windows x64 are supported).
- Medium install friction due to compiled Rust wheels, but pre-built binaries are available for common platforms (macOS x86_64/arm64, Linux aarch64, Windows x64) covering Python 3.10–3.14.
- Actively maintained with a recent release.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) allows unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2026-06-14 (61 days) · last repo commit 2026-06-14 · 151 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 621,274 downloads/mo, #5,718 on PyPI
Alternatives
Verify before relying
pip install typeid-python
from typeid import TypeID
tid = TypeID(prefix="user")
print(str(tid)) # e.g., user_01h45ytscbebyvny4gc8cr8ma2- Whether the package's Pydantic integration (mentioned as available) is included in the base install or requires a separate extra.
- Exact performance characteristics on platforms other than those with pre-built wheels (e.g., Linux x86_64, which may require compilation).
- Whether FastAPI and SQLAlchemy integrations mentioned as 'Coming Soon' are now available in version 0.3.10.
What it is and what it does
TypeID Python is a high-performance library for generating and parsing TypeIDs—identifiers that combine UUIDv7 with optional type prefixes to create globally unique, time-sortable, human-readable IDs. The library is implemented in Rust and wrapped for Python, delivering significant performance gains: generation is roughly 5× faster and parsing roughly 1.6× faster than a pure-Python baseline. It supports type-safe prefix usage through Python's type system, allows parsing from strings or raw UUIDs, and includes CLI tools for ID generation, encoding, decoding, and explanation.
The package depends only on uuid-utils for fast UUIDv7 generation and is designed to be framework-agnostic; optional integrations with Pydantic (v2) are available as extras. TypeIDs are designed for modern systems where identifiers need to be globally unique, sortable by creation time, safe to expose externally, and easy to reason about in logs and APIs. The library runs fully offline with no external service dependencies.
Use it for
- Generate type-safe user or order IDs with automatic timestamps for time-based sorting in databases and APIs.
- Replace generic UUIDs in microservices where readable prefixes and creation-time ordering improve observability and debugging.
- Integrate with Pydantic models for automatic validation and JSON Schema support of TypeID fields.
- Decode and explain existing TypeIDs via CLI to understand their creation time and metadata without external services.
- Build distributed systems where globally unique, sortable identifiers are needed without a central ID service.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need sortable, type-safe identifiers with Rust-backed performance.
The library is actively maintained, has no known vulnerabilities, and offers a permissive MIT license. Install friction is moderate due to compiled wheels, but pre-built binaries cover common platforms. Suitable for production use in modern Python applications (3.10+) where identifier semantics and performance matter.
Install
typeid-python on PyPI
Before you install
Medium install friction due to compiled Rust wheels, but pre-built binaries are available for common platforms (macOS x86_64/arm64, Linux aarch64, Windows x64) covering Python 3.10–3.14. Actively maintained with a recent release.
Requires Python 3.10 or later; compiled Rust wheels must be available for your platform (macOS, Linux aarch64, or Windows x64 are supported).
License in practice
MIT license (permissive) allows unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install typeid-python
from typeid import TypeID
tid = TypeID(prefix="user")
print(str(tid)) # e.g., user_01h45ytscbebyvny4gc8cr8ma2
Verify before relying
- Whether the package's Pydantic integration (mentioned as available) is included in the base install or requires a separate extra.
- Exact performance characteristics on platforms other than those with pre-built wheels (e.g., Linux x86_64, which may require compilation).
- Whether FastAPI and SQLAlchemy integrations mentioned as 'Coming Soon' are now available in version 0.3.10.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release <4,>=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 1 packageuuid-utils |
| Maintenance | Actively maintained 61 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 621,274 / month, #5,718 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: typeid_python-0.3.10-cp310-cp310-macosx_10_12_x86_64.whl; typeid_python-0.3.10-cp310-cp310-macosx_11_0_arm64.whl; typeid_python-0.3.10-cp310-cp310-manylinux_2_28_aarch64.whl; typeid_python-0.3.10-cp310-cp310-win_amd64.whl; typeid_python-0.3.10-cp311-cp311-macosx_10_12_x86_64.whl; typeid_python-0.3.10-cp311-cp311-macosx_11_0_arm64.whl; typeid_python-0.3.10-cp311-cp311-manylinux_2_28_aarch64.whl; typeid_python-0.3.10-cp311-cp311-win_amd64.whl; typeid_python-0.3.10-cp312-cp312-macosx_10_12_x86_64.whl; typeid_python-0.3.10-cp312-cp312-macosx_11_0_arm64.whl; typeid_python-0.3.10-cp312-cp312-manylinux_2_28_aarch64.whl; typeid_python-0.3.10-cp312-cp312-win_amd64.whl; typeid_python-0.3.10-cp313-cp313-macosx_10_12_x86_64.whl; typeid_python-0.3.10-cp313-cp313-macosx_11_0_arm64.whl; typeid_python-0.3.10-cp313-cp313-manylinux_2_28_aarch64.whl; typeid_python-0.3.10-cp313-cp313-win_amd64.whl; typeid_python-0.3.10-cp314-cp314-macosx_10_12_x86_64.whl; typeid_python-0.3.10-cp314-cp314-macosx_11_0_arm64.whl; typeid_python-0.3.10-cp314-cp314-manylinux_2_28_aarch64.whl; typeid_python-0.3.10-cp314-cp314-win_amd64.whl
Tags
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 › “uuidv7 type-safe ids”
- typeid-pythonGenerates and parses TypeIDs—type-safe, sortable identifiers based on…
- uuid7-standardGenerates and parses UUIDv7 identifiers with embedded creation…
- bubusBubus is a Pydantic-powered event bus library that implements…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also ulid · ulid-py · uuid-v7 · uuid-extension · uuid-utils · python-ulid · uuid7 · sqids · rust-demangler · ulid-transform