Skip to main content

random_names

Convert int to random name, like tree_dance and convert it back to same int.

Like git-name which converts hashes to memorable names and back.

Also like the Mnemonic Major System which converts strings of numbers it phrases to aid in memorization, implemented here mnemonic-major-encoder In action here: https://major-system.info/en/

Usage

from random_names.make_names import number_to_name,number_from_name

# TODO: needs a user specified separator
name = number_to_name(100,"prefix","q")
print(name) # prefix_q_activated

number = number_from_name(name)
assert number==100

Why

Lets say that your users need to type in a long number, 48342342. It would be easier to type in tree_dance. But your app still needs that number, so you need to convert it back. This is similar to docker container names, except reversable.

How

I map 10,000 words to 4 digits, twice. That yields two words covering 100,000,000 numbers.

If you use a short word list, you can't generate enough names.

If you use any dictionary, you get a lot of funny, obscene or offensive names. So I ran the world list through cuss word detection & removed most of the worst.

Docs

Related Pypi Packages

Crypocurrency related

  • mnemonic Words to cryptocurrency "wallet"

Mneumonic Major System

Converting arabic numbers, e.g. 22, to spoken equivalent, e.g. twenty-two and back.

Converting numbers to a shorter string, like Ascii85

Random names, just random names. No way to convert to a number

  • pypi search To many to list, mostly just a function or two.

Metadata

Release files for random-names 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for random-names 0.2.0
File Size Uploaded
random_names-0.2.0.tar.gz 189.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for random-names 0.2.0
File Interpreter ABI Platform
random_names-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 379.2 kB

Release files / random_names-0.2.0.tar.gz

Download URL random_names-0.2.0.tar.gz
Size 189.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d61c65d75c72588c04d223bc688f1f4752d74a17611b277eae13a6b0890b3e4d
BLAKE2b-256 checksum
How to use checksums
7d08304c0d0f806c1fe090b71f9a6bbc97604caa6ddba0c815c728d021172037
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / random_names-0.2.0-py3-none-any.whl

Download URL random_names-0.2.0-py3-none-any.whl
Size 189.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee9a052f8cc8627d7e0002c0f3eb047ff0f7a197e6ec7c082fe9bfb484117a31
BLAKE2b-256 checksum
How to use checksums
ef832ca6fb2d79cd34d0aa2688b67dad30dc0fcc7112c89979b7fe7b3886c99c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page