https://github.com/ferhatelmas/pyhaikunator
:hearts: Heroku like random name generator
https://github.com/ferhatelmas/pyhaikunator
Last synced: about 1 month ago
JSON representation
:hearts: Heroku like random name generator
- Host: GitHub
- URL: https://github.com/ferhatelmas/pyhaikunator
- Owner: ferhatelmas
- License: mit
- Created: 2015-03-18T13:43:10.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T14:21:49.000Z (about 8 years ago)
- Last Synced: 2024-03-28T05:20:46.139Z (about 1 year ago)
- Language: Python
- Homepage: https://pypi.python.org/pypi/pyhaikunator
- Size: 129 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
==========
haikunator
==========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
-----.. code-block:: python
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🐮71030Tests
-----Just run module::
$ python haikunator.py
License
-------MIT