Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

koremu-1.0.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

koremu-1.0.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for koremu-1.0.0.tar.gz
Algorithm Hash digest
SHA256 76e6bb8f428eb3aaa7a6d5d9b4b85c6b3c46aebcf5563850aed668fc4549c008
MD5 248c0184bad1f7ff3b23c2bd897187e7
BLAKE2b-256 5656f11eaa160fcbc0e500db0bea63ed084d74b9acbb99b2deb81262ae265b68

See more details on using hashes here.

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

Hashes for koremu-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce664b653efd4f793c5c88244fc060ed93522a736767e857c22e85a11befc747
MD5 08628e7053e3524148f4bc06fe91e06c
BLAKE2b-256 a808245c5cb54f598c277f441070a85723ad2291561f6163e65637e5743bed4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page