A simple library and CLI tool for generating and validating pup names. RFC1178 but for pups.
- Generate pup names composed of adverbs, adjectives, and a noun (
pup). - Validate whether a pup name conforms to the expected format.
- Optionally append a short UUID suffix to ensure uniqueness.
- Command-line interface for your convenience.
pip install pup-nameGenerate one pup name:
pup-name generateGenerate multiple pup names:
pup-name generate --words 3 --separator "-" --count 5Validate a pup name:
pup-name validate rarely-right-pupPython:
from pup_name import generate, validate
name = generate(3, separator="-")
print(f"Generated pup name: {name}")
is_valid = validate(name, separator="-")
print(f"Is the name valid? {'Yes' if is_valid else 'No'}")