getname 0.1.1

Creator: bradpython12

Last updated:

0 purchases

getname 0.1.1 Image
getname 0.1.1 Images
Add to Cart

Description:

getname 0.1.1

Get cat/dog/superhero/supervillain names.
I just combine @sindresorhus’s
four staffs into this one.

cat-names
dog-names
superheroes
supervillains


Install
$ pip install getname


Usage

API
random(the_type, gender, showall)

type: cat/dog/superhero/supervillian.
gender: female/male, only for dog names.
showall: True/False, show all the names.

>>> from getname import random_name
>>> random_name('cat')
u'Angel'
>>> random_name('dog', gender='female')
u'Maggie'
>>> random_name('superhero', showall=True)
[u'3-D Man', u'A-Bomb', u'A.I.M.', ...]


CLI
$ getname dog
Angel
$ getname dog -f
Lady
$ getname dog --showall
[u'Max', u'Buddy',...]
Use getname -h to get help message about each usage.
Usage: getname [OPTIONS] COMMAND [ARGS]...

Get popular cat/dog/superhero/supervillain names.

Options:
-v, --version Show the version and exit.
-h, --help Show this message and exit.

Commands:
cat Get popular cat names.
dog Get popular dog names.
superhero Get superhero names.
supervillain Get supervillain names.
Use getname cat/dog/superhero/supervillain -h to get help message
about the specified type.



Tests
$ pip install -r dev-requirements.txt
$ invoke test


Credits
All the glories should belong to
@sindresorhus, I just port it to
python :)


License
MIT.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.