Skip to main content

dnd-name-generator

Free D&D character name generator — a tiny, dependency-free Python CLI and library that builds lore-fitting Dungeons & Dragons names by race and gender. Runs offline, no signup, no API key.

Prefer one-click in the browser? Use the free web version: namewell.foundagent.net/dnd-name-generator

Install

pip install dnd-name-generator

Use it from the command line

# 10 random names
dnd-name-generator

# 5 feminine elf names
dnd-name-generator --race elf --gender feminine --count 5

# short alias
dndname -r dragonborn -n 3

Example output:

$ dnd-name-generator -r dwarf -g masculine -n 5
Thorin
Durgrim
Balek
Khazdin
Gimnor

Use it as a library

from dnd_name_generator import generate, generate_many

generate("Tiefling", "Feminine")      # -> 'Kallieth'
generate_many(3, race="Orc")          # -> ['Grishnak', 'Moguk', 'Rokgor']

generate() is pure given an optional rnd callable, so you can seed it for reproducible names:

import random
from dnd_name_generator import generate
generate("Elf", "Feminine", rnd=random.Random(7).random)  # deterministic

Supported races

Human · Elf · Dwarf · Orc · Halfling · Tiefling · Dragonborn

Each race draws from its own pools of starting sounds, optional middles, and endings, so an elf reads like an elf and an orc reads like an orc. Genders: Masculine, Feminine, or Any (random).

How it works

Every name stitches one starting sound + optional middle + ending from race-specific syllable pools, then capitalizes the result. Names are built from common sound fragments — not copied from any sourcebook — so you can use them for any character, NPC, or one-shot with no restrictions.

The same engine powers the free web tool: More generators at NameWell → (fantasy, gamertag, band, team, and 15+ other name generators).

License

MIT

Metadata

Release files for dnd-name-generator 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dnd-name-generator 0.1.0
File Size Uploaded Provenance Actions
dnd_name_generator-0.1.0.tar.gz 6.5 kB Without provenance Details for dnd_name_generator-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dnd-name-generator 0.1.0
File Interpreter ABI Platform Actions
dnd_name_generator-0.1.0-py3-none-any.whl Python 3 none any Details for dnd_name_generator-0.1.0-py3-none-any.whl

Total release size: 13.5 kB

Release files / dnd_name_generator-0.1.0.tar.gz

Download URL dnd_name_generator-0.1.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
198bc5c2492ccbfdc52b172e907b7a91a3af4cc7fc30b3ec5f75f97527625f7a
BLAKE2b-256 checksum
How to use checksums
53b088281f2d34e7cbc8cfa7b980559119a01a8b10acb61573f4725d009d1a54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / dnd_name_generator-0.1.0-py3-none-any.whl

Download URL dnd_name_generator-0.1.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
254d4d0cc8ddea1d1d89f531e53ecc42c420173b8678534dbdb84d6a3ffefbe0
BLAKE2b-256 checksum
How to use checksums
c35a9c6930c012403312c5e86539a33a224abe50d7d1837ce1997f5ae6868782
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for dnd-name-generator 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page