GitXplorerGitXplorer
f

pyhaikunator

public
11 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
e55c66393ed933d598489150ec2c20c70d190a72

fixed url

fferhatelmas committed 9 years ago
Unverified
676bd108bb5db672c8aa49458feafc548a54af27

test fix

fferhatelmas committed 10 years ago
Unverified
3f2be8ae9218af5e081584d45493b6f2afed474a

init

fferhatelmas committed 10 years ago

README

The README file for this repository.

========== 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🐮71030

Tests

Just run module::

$ python haikunator.py

License

MIT