Express integers as memorable, pronounceable strings.
Project description
koremu
Express integers as memorable, pronounceable strings — and turn them back into integers.
Koremu maps each 7-bit chunk of a non-negative integer to one of 128
pronounceable syllables, so a number like 10610353957 becomes
koremutake. See http://shorl.com/koremutake for the original idea.
Installation
uv add koremu
Or, from a checkout:
uv pip install .
Usage
>>> from koremu import encode, decode
>>> encode(10610353957)
'koremutake'
>>> decode('koremutake')
10610353957
Pad the output to a minimum number of syllables:
>>> encode(0, syllables=3)
'bababa'
encode raises ValueError for negative numbers; decode raises
ValueError for strings that aren't valid koremutake.
Development
This project is managed with uv.
uv sync # set up the environment
uv run python -m unittest # run the tests
uv build # build the wheel and sdist
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file koremu-1.0.0.tar.gz.
File metadata
- Download URL: koremu-1.0.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76e6bb8f428eb3aaa7a6d5d9b4b85c6b3c46aebcf5563850aed668fc4549c008
|
|
| MD5 |
248c0184bad1f7ff3b23c2bd897187e7
|
|
| BLAKE2b-256 |
5656f11eaa160fcbc0e500db0bea63ed084d74b9acbb99b2deb81262ae265b68
|
File details
Details for the file koremu-1.0.0-py3-none-any.whl.
File metadata
- Download URL: koremu-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce664b653efd4f793c5c88244fc060ed93522a736767e857c22e85a11befc747
|
|
| MD5 |
08628e7053e3524148f4bc06fe91e06c
|
|
| BLAKE2b-256 |
a808245c5cb54f598c277f441070a85723ad2291561f6163e65637e5743bed4a
|