Skip to main content

Free D&D character name generator (CLI + library) — lore-fitting Dungeons & Dragons names by race and gender, offline, no signup.

Project description

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

Project details


Download files

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

Source Distribution

dnd_name_generator-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dnd_name_generator-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dnd_name_generator-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for dnd_name_generator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 198bc5c2492ccbfdc52b172e907b7a91a3af4cc7fc30b3ec5f75f97527625f7a
MD5 835faa909a64df8f5154d55d572b6b01
BLAKE2b-256 53b088281f2d34e7cbc8cfa7b980559119a01a8b10acb61573f4725d009d1a54

See more details on using hashes here.

File details

Details for the file dnd_name_generator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dnd_name_generator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 254d4d0cc8ddea1d1d89f531e53ecc42c420173b8678534dbdb84d6a3ffefbe0
MD5 7fd7a488818ff12f28e744602f08fc2f
BLAKE2b-256 c35a9c6930c012403312c5e86539a33a224abe50d7d1837ce1997f5ae6868782

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 Pingdom Monitoring Sentry Error logging StatusPage Status page