GetName
Get cat/dog/superhero/supervillain names.
I just combine @sindresorhus’s four staffs into this one.
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.
Metadata
Release files for getname 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| getname-0.1.1.tar.gz | 18.9 kB | Without provenance | Details for getname-0.1.1.tar.gz |
Release files / getname-0.1.1.tar.gz
| Download URL | getname-0.1.1.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ceede3cf79c6f8222845af965db927f1149aba716607cb664e21d380f067a2e4
|
|
BLAKE2b-256 checksum How to use checksums |
3658e316859cb16605c84c9d140612cef03db1c8e494f398670226dbe7f7ee39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for getname 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.