Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Release History

Release History

This version
History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyhaikunator-0.0.4-py2.py3-none-any.whl (4.1 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Apr 15, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting