Registry / getname

getname

JSON →
library0.1.1pypypi✓ verified 86d ago

The `getname` library, currently at version 0.1.1, provides simple functions to retrieve popular names for categories such as cats, dogs, superheroes, and supervillains. It is designed for straightforward use cases requiring quick access to lists of themed names. The library has an infrequent release cadence, with the last update in January 2023.

pip install getname
INSTALL
IMPORT
SIG · GETNAME
G
getname
pythonv0.1.1
Install
2.6s avg
Import
10ms
Disk
18MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.010s · 20.1MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.6s · import 0.010s · 21MB
18MB installed
● package 18MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

getname
import getname

This quickstart demonstrates how to import the `getname` library and call its main functions to retrieve a single random name from each category.

import getname print("Random Cat Name:", getname.cat()) print("Random Dog Name:", getname.dog()) print("Random Superhero Name:", getname.superhero()) print("Random Supervillain Name:", getname.supervillain())
Debug
Known issues
gotchaFunctions like `getname.cat()` return a single random name (a string), not a list of names. If you need multiple names, you must call the function multiple times.
fix
To get multiple names, iterate and call the function repeatedly: `[getname.cat() for _ in range(3)]`
affects: 0.1.0+
gotchaThe library's name datasets are static and embedded within the package version. They do not update dynamically from an external source. New names are only added with a new library release.
fix
If you require updated or more extensive name lists, consider contributing to the project or using a different library that offers dynamic data sourcing.
affects: 0.1.0+
gotchaThere are no configuration options or arguments to control the number of names returned, specific attributes of names (e.g., gender, origin), or to filter the lists. Each function simply returns one random name from its internal list.
fix
The library is designed for simplicity. For advanced name generation or filtering, you would need to implement custom logic around the returned names or choose a more feature-rich library.
affects: 0.1.0+
Errors
Common errors & fixes
AttributeError: module 'getname' has no attribute 'get_cat_name'
Attempting to call functions with an incorrect naming convention. The library uses direct category names as function names (e.g., `cat`, `dog`) rather than common 'get_' prefixes.
fix
Use the exact function names provided by the library: `getname.cat()`, `getname.dog()`, `getname.superhero()`, `getname.supervillain()`.
TypeError: getname.cat() takes 0 positional arguments but 1 was given
Attempting to pass arguments to functions like `getname.cat()`, perhaps expecting to specify count or filters. The functions in `getname` do not accept any arguments.
fix
Call the functions without any arguments: `getname.cat()`. To get multiple names, call the function multiple times in a loop or list comprehension.
Upgrade
Version history
0.1.1latest on PyPI · released Aug 23, 2015
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
getname — pip install getname · libregistry