lexid
Variable width build numbers with lexical ordering.
Decision gist · record as of 2026-08-14
Yes, but only if you have a specific need for lexically sortable sequential IDs and accept the maintenance risk. The package is abandoned (last commit 2021-05-13) and receives no updates, so it's suitable only for stable, self-contained use cases where you don't expect to need fixes or Python version compatibility updates.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with only the standard library's typing module as a runtime dependency.
- Package is marked abandoned with last commit in 2021-05-13, over 1960 days ago, so expect no maintenance or updates.
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 2021-04-02 (1960 days) · last repo commit 2021-05-13 · 1 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 534,302 downloads/mo, #6,134 on PyPI
Alternatives
Verify before relying
$ pip install lexid
$ lexid_incr 1001
1002
Or in Python:
>>> import lexid
>>> lexid.incr("1001")
'1002'- Whether the package remains compatible with Python versions released after 2021-04-02
- Real-world performance characteristics when generating large sequences of IDs
What it is and what it does
lexid is a micro library that generates sequential IDs with a special property: they maintain lexical ordering across their entire sequence, whether you treat them as strings or numbers. This solves a real problem: most tools that read version tags or build numbers use simple string sorting, which fails for normal numeric sequences. lexid works by preemptively incrementing the leftmost digit and expanding padding when needed, so sequences like "0999" → "11000" preserve order even under naive string comparison.
The package provides both a command-line tool and a Python API. It has minimal dependencies—only the standard library—and supports Python 2 and 3. The use case is narrow but concrete: anywhere you need version or build numbers that will be sorted by tools without semantic version parsing, such as git tags read by shell scripts.
Use it for
- Generate git version tags that sort correctly when listed with standard sort commands
- Create build numbers for CI/CD systems that display versions without understanding semantic versioning
- Produce sequential IDs for systems that rely on lexical string comparison for ordering
- Maintain version sequences in environments where only basic string sorting is available
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but only if you have a specific need for lexically sortable sequential IDs and accept the maintenance risk.
The package is abandoned (last commit 2021-05-13) and receives no updates, so it's suitable only for stable, self-contained use cases where you don't expect to need fixes or Python version compatibility updates.
Install
lexid on PyPI
Before you install
Low install friction with only the standard library's typing module as a runtime dependency. Package is marked abandoned with last commit in 2021-05-13, over 1960 days ago, so expect no maintenance or updates.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or redistribution in commercial or private projects.
Quickstart
$ pip install lexid
$ lexid_incr 1001
1002
Or in Python:
>>> import lexid
>>> lexid.incr("1001")
'1002'
Verify before relying
- Whether the package remains compatible with Python versions released after 2021-04-02
- Real-world performance characteristics when generating large sequences of IDs
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=2.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetyping |
| Maintenance | Abandoned 1,960 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 534,302 / month, #6,134 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: Other EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOS :: MacOS XOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules |
Evidence: lexid-2021.1006-py2.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 › “lexical ordering for version numbers”
- lexidGenerates lexically ordered numerical IDs that maintain sort order…
- natsortnatsort provides natural sorting for strings containing numbers,…
- looseversionProvides a drop-in replacement for the deprecated…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also ulid · nocasedict · luhn · release-tag · indic-numtowords · unicode-rbnf · natsort · sqids · orderings · ulid-py