Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/punkyoon/pokinator
Heroku-like random Pokemon name generator for python
https://github.com/punkyoon/pokinator
generator heroku name pokemon python random
Last synced: about 2 months ago
JSON representation
Heroku-like random Pokemon name generator for python
- Host: GitHub
- URL: https://github.com/punkyoon/pokinator
- Owner: punkyoon
- License: mit
- Created: 2017-02-25T11:57:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-23T02:39:22.000Z (about 7 years ago)
- Last Synced: 2024-11-25T23:49:49.595Z (about 2 months ago)
- Topics: generator, heroku, name, pokemon, python, random
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
==========================
pokinator
==========================
.. image:: https://travis-ci.org/punkyoon/pokinator.svg?branch=master
:target: https://travis-ci.org/punkyoon/pokinator.. image:: https://badge.fury.io/py/pokinator.svg
:target: https://pypi.python.org/pypi/pokinator/1.2.0Introduction
============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
=====.. code-block:: python
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`_
.. _MIT license: https://github.com/punkyoon/pokinator/blob/master/LICENSE
Copyright (c) 2017 punkyoon(Jiyoon Ha)