Skip to content

Heroku-like random Pokemon name generator for python

License

Notifications You must be signed in to change notification settings

punkyoon/pokinator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pokinator

https://travis-ci.org/punkyoon/pokinator.svg?branch=master

Introduction

Heroku like random pokemon name generator for python.

There is an pokemon name list and it generate random name joining them by user provided delimiter.

And can generate n-digit random number.

Install

using pip:

$ pip install pokinator

Guide

from pokinator import Pokinator

Pokinator.generate()                            # 'Wigglytuff-Snorlax-2910'
Pokinator.generate(9)                           # 'Ditto-Pikachu-4' ; token_range=9
Pokinator.generate(delimiter='*')               # 'Eevee*Zubat*312'
Pokinator.generate(token_range=999, digit=3)    # 'Diglett-Onix-021'
Pokinator.generate(generation=2)                # 'Mareep-Piloswine-5034'
Pokinator.generate(lowercase=True)              # 'dugtrio-marowak-3121'

# you can also force the same output
# for a given generation sequence
import random
random.seed(5)
Pokinator.generate()                           # 'Pidgey-Farfetchd-6594'
Pokinator.generate()                           # 'Vileplume-Jynx-3548'

License

MIT license

Copyright (c) 2017 punkyoon(Jiyoon Ha)