babbler (Python)
Convert a counter into a pronounceable, human-friendly name.
Published on PyPI as javax0-babbler (the plain name babbler was
already taken) — the distribution name is namespaced, but the
importable package is just babbler, matching the com.javax0
groupId used for the Java build.
pip install -e ".[dev]"
pytest
from babbler import number_to_id
number_to_id(10000) # "Talo Buno"
number_to_id(10001) # "Patu Luta"
CLI:
python -m babbler encode 10000
# or, once installed: babbler encode 10000
API
number_to_id(num: int) -> str
nummust be an integer in[0, 1643523](MAX_NUM), or aValueErroris raised.- Deterministic: the same
numalways returns the same string. - Unique: every
numin the valid range produces a distinct name — no two different numbers ever collide, and no name is ever a blacklisted word. Both are structural guarantees (see ../docs/algorithm.md), not something the caller needs to check. - One-way: there is no decoder. Names are display-only labels for a counter/sequence you already track — see the top-level README.
Constants
CV_MAP, BLACKLIST, and MAX_NUM are also exported for consumers
that want to reason about the output space directly.
Metadata
Release files for javax0-babbler 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| javax0_babbler-1.0.0.tar.gz | 4.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| javax0_babbler-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.8 kB
Release files / javax0_babbler-1.0.0.tar.gz
| Download URL | javax0_babbler-1.0.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5144bdd8e8deb73374211b2d90335cbb5ab21b91e621fead8b1078651cdc982
|
|
BLAKE2b-256 checksum How to use checksums |
d2cf9fd62342a22aadc18ed632af99124e4abeb201d20fc35118e062ea754761
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Release files / javax0_babbler-1.0.0-py3-none-any.whl
| Download URL | javax0_babbler-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f3da7b017c01a807e966cd59ab613816e02b883890e7413c9ad09361b3b9198
|
|
BLAKE2b-256 checksum How to use checksums |
f6f37da4ee7b8b92e058135bc54237feac82a9338e084246a8e7482cb239ec8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Security for javax0-babbler 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.