Skip to main content

Heroku like random name generator

Project description

Heroku like random name generator.

There is an djective and a noun list and it generates random name joining them by user provided delimiter.

Install

Just install using pip:

$ pip install pyhaikunator

Usage

from haikunator import Haikunator


Haikunator.haikunate()  # <-- 'icy-dream-4198'
# drop random token at the end
Haikunator.haikunate(0)  # <-- 'quiet-tree'
# supply a delimiter
Haikunator.haikunate(delimiter='~')  # <-- 'shy-feather-4125'
# drop random token and supply delimiter at the same time
Haikunator.haikunate(0, ' ')  # <-- 'wandering glitter'
# provide a larger range for random token at the end
Haikunator.haikunate(100000, '🐮') # <-- spring🐮pine🐮71030

Tests

Just run module:

$ python haikunator.py

License

MIT

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyhaikunator-0.0.4-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyhaikunator-0.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyhaikunator-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8810016647e5e51757265e4eae19752c892622cb9ee5a1c11e9e921cd1529227
MD5 5f5997533d1b0b64a3df6d56d58c71f2
BLAKE2b-256 f70e3c82db3c9404fcf9e9bb5f6921de8b2677b03f14fa880a2bc00892782d97

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