pksuid
Python package for generating prefixed ksuids.
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release 2022-05-07, no commits since) and receives no maintenance or security updates. While the code is simple and low-friction to install, relying on unmaintained ID generation in production is a risk. For new projects, consider an actively maintained alternative; for existing code already using pksuid, evaluate whether you can migrate to a supported library.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction; pure Python wheel with a single dependency (pybase62).
- However, the package is abandoned—last release was 2022-05-07 and no commits since then.
- No maintenance or security updates are forthcoming.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no restrictions on use, modification, or redistribution in commercial or private projects.
last release 2022-05-07 (1560 days) · last repo commit 2022-05-07 · 1 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 359,190 downloads/mo, #7,252 on PyPI
Alternatives
Verify before relying
pip install pksuid
from pksuid import PKSUID
# Generate a new prefixed ID
uid = PKSUID('usr')
print(uid) # e.g., 'usr_24OnhzwMpa4sh0NQmTmICTYuFaD'
# Extract components
print(uid.get_prefix()) # 'usr'
print(uid.get_timestamp()) # Unix timestamp
print(uid.get_datetime()) # Human-readable datetime
# Parse from string
uid_from_string = PKSUID.parse('usr_24OnhzwMpa4sh0NQmTmICTYuFaD')
print(uid_from_string.get_timestamp())- Whether the package remains compatible with Python versions released after 2022-05-07.
- Whether pybase62 has received security or compatibility updates that pksuid does not track.
What it is and what it does
PKSUID is a Python implementation of prefixed k-sortable unique identifiers, extending the KSUID specification (originally from Segment.io) by adding a human-readable prefix inspired by Stripe's ID format. When you generate a PKSUID with a prefix like 'usr', you get an identifier such as 'usr_24OnhzwMpa4sh0NQmTmICTYuFaD'—the prefix immediately signals the resource type, making logs and traces easier to read and debug.
The library encodes a timestamp and a random payload into each ID, making them sortable by creation time. You can extract the prefix, timestamp, datetime, and raw payload from any PKSUID, parse IDs back from string or byte representations, and compare IDs using standard comparison operators. The package depends only on pybase62 for base-62 encoding and is tested on Python 3.6 through 3.10.
Use it for
- Generate resource IDs in APIs or databases where you want the type visible at a glance (e.g., 'usr_...', 'txn_...').
- Create sortable audit logs or event streams where IDs encode creation time and can be ordered without a separate timestamp field.
- Parse and extract metadata (prefix, timestamp, payload) from existing PKSUIDs for debugging or resource tracking.
- Replace generic UUIDs in microservices where human-readable prefixes improve operational visibility.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release 2022-05-07, no commits since) and receives no maintenance or security updates. While the code is simple and low-friction to install, relying on unmaintained ID generation in production is a risk. For new projects, consider an actively maintained alternative; for existing code already using pksuid, evaluate whether you can migrate to a supported library.
Install
pksuid on PyPI
Before you install
Low install friction; pure Python wheel with a single dependency (pybase62). However, the package is abandoned—last release was 2022-05-07 and no commits since then. No maintenance or security updates are forthcoming.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or redistribution in commercial or private projects.
Quickstart
pip install pksuid
from pksuid import PKSUID
# Generate a new prefixed ID
uid = PKSUID('usr')
print(uid) # e.g., 'usr_24OnhzwMpa4sh0NQmTmICTYuFaD'
# Extract components
print(uid.get_prefix()) # 'usr'
print(uid.get_timestamp()) # Unix timestamp
print(uid.get_datetime()) # Human-readable datetime
# Parse from string
uid_from_string = PKSUID.parse('usr_24OnhzwMpa4sh0NQmTmICTYuFaD')
print(uid_from_string.get_timestamp())
Verify before relying
- Whether the package remains compatible with Python versions released after 2022-05-07.
- Whether pybase62 has received security or compatibility updates that pksuid does not track.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6,<4.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepybase62 |
| Maintenance | Abandoned 1,560 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 359,190 / month, #7,252 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: pksuid-1.1.2-py3-none-any.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 › “prefixed unique identifier generation”
- pksuidGenerates prefixed, k-sortable unique identifiers (PKSUIDs) that…
- typeid-pythonGenerates and parses TypeIDs—type-safe, sortable identifiers based on…
- uuidProvides UUID object creation and RFC 4122-compliant unique…
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 ksuid · cyksuid · svix-ksuid · timeflake · ulid · ulid-py · python-ulid · uuid-extension · uuid · prefixed