Skip to main content

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.

Download files

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

Source Distribution

getname-0.1.0.tar.gz (18.7 kB view details)

Uploaded Source

File details

Details for the file getname-0.1.0.tar.gz.

File metadata

  • Download URL: getname-0.1.0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for getname-0.1.0.tar.gz
Algorithm Hash digest
SHA256 095d461d3e113cc872cb59358bb9b8565870fd7465bbdaf24943746d39f266c9
MD5 3fbd91bde91a1d95c58f0f62a69527f4
BLAKE2b-256 e1e4710d71d26585c74767147b5eabb949d08a5f78bc8eea53336a83a511ee51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page