petname
Generate human-readable, random object names
What it is and what it does
Petname is a lightweight name generator that produces random, human-readable identifiers by combining adverbs, adjectives, and animal names. It implements RFC1178 to ensure names are pronounceable and memorable while remaining decentralized and secure. The package works both as a command-line utility and as a Python library, with no external runtime dependencies.
Developers typically use petname to generate unique names for containers, virtual machines, hostnames, or any system that needs human-friendly random identifiers. It offers configuration options for word count, letter limits per word, custom separators, and complexity levels (easy, standard, or complex words). The package has been actively maintained since its initial release in 2014 and receives regular updates.
Use it for:
- Generate unique container or pod names in orchestration systems
- Create memorable hostnames for servers or network devices
- Produce random identifiers for test environments or temporary resources
- Build user-friendly naming schemes for cloud instances or virtual machines
- Generate pronounceable names for logging, tracing, or debugging contexts
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Generates random, pronounceable names by combining adverbs, adjectives, and animal names following RFC1178, useful for hostnames, container names, and other identifiers.
Yes. Petname is a simple, dependency-free utility with active maintenance, no known vulnerabilities, and a permissive license. It solves a specific, practical problem (generating memorable random names) with minimal overhead. Install it if you need pronounceable identifiers for infrastructure, testing, or naming tasks.
Install
petname on PyPI
pip
pip install petnameuv
uv add petnamepoetry
poetry add petnameInstalling petname
Before you install
Low install friction with no runtime dependencies and a pure-Python wheel. Actively maintained with a recent commit on 2026-02-15.
License in practice
Licensed under Apache2 (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install petname
import petname
name = petname.Generate(2, '-')
print(name) # e.g., 'wiggly-yellowtail'
Verify before relying
- Whether the package supports Python 3 only or maintains compatibility with Python 2 (requires_python is unspecified)
- Whether word lists (adverbs.txt, adjectives.txt, names.txt) are bundled or must be installed separately
Package facts
| License | Apache2 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 180 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 536,565/month — #6,125 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: petname-2.9-py3-none-any.whl
Keywords: random, name, uuid
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
coolnameGenerates random human-readable names and…
permissive · top 5,000 on PyPI
randomnameGenerates random memorable identifiers by…
permissive · top 5,000 on PyPI
random-slugsGenerates random word-based slugs with…
unclear · top 15,000 on PyPI
friendlywordsGenerates random human-readable strings from…
permissive · top 15,000 on PyPI
unique-namerGenerates unique, human-readable names and…
permissive · top 15,000 on PyPI
wonderwordsGenerates random English words and sentences…
permissive · top 15,000 on PyPI
codenamizeGenerates consistent, human-readable codenames…
permissive · top 15,000 on PyPI
haikunatorGenerates random Heroku-style names composed of…
permissive · top 15,000 on PyPI
rstrGenerates random strings from custom alphabets,…
permissive · top 5,000 on PyPI
xkcdpassGenerates strong, memorable passphrases by…
permissive · top 15,000 on PyPI