Skip to main content

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

Project description

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.

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

random_names-0.1.0.tar.gz (191.0 kB view details)

Uploaded Source

Built Distribution

random_names-0.1.0-py3-none-any.whl (190.5 kB view details)

Uploaded Python 3

File details

Details for the file random_names-0.1.0.tar.gz.

File metadata

  • Download URL: random_names-0.1.0.tar.gz
  • Upload date:
  • Size: 191.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.1

File hashes

Hashes for random_names-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b7d83e7ee38c767cb506f34c3d6bc7df3d96f556547bc191b6ffced5f34214b8
MD5 8acbb41a7b1b06bcf718301ccca84fb5
BLAKE2b-256 94665efbcea0013f7728ce459a1d3922bd90b2861eeb1a03d0166f589af5518b

See more details on using hashes here.

File details

Details for the file random_names-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: random_names-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 190.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.1

File hashes

Hashes for random_names-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f4af6952b4b70d7cf8a7c9a0211fd8593cee42fe364debbfbf596e918cee923
MD5 e8a6ff816f49f20b5521ef0972ddece6
BLAKE2b-256 42ae0fa8acb587ef74855d03f033f933c7623d3e7a09ce08194d7ca79279b201

See more details on using hashes here.

Supported by

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