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 Distribution
pyhaikunator-0.0.1.tar.gz
(3.4 kB
view hashes)
Built Distributions
Close
Hashes for pyhaikunator-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66ee047bc37652cc693334fb1345ae2b67c3e2d472c1f0b28a457bb5e7fd1a8e |
|
MD5 | bf282cf8f0bc9dbe62a5a30c51776792 |
|
BLAKE2b-256 | ad9352f339ca4162c880b665f4c65a0161d996632b249ff500b968507b935334 |
Close
Hashes for pyhaikunator-0.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae141c8b50512736aa2a76df4a8f284cd5c4044c6c8b581975b9f7895b54ff5a |
|
MD5 | 0594b4d99be69ac1b55fa813831704a8 |
|
BLAKE2b-256 | 268f70a1b3aab4080b8dec40e0514e2255e0c65404bd1fc1a7c72c2dd0ba1694 |