Fantasy Name Generator
A random name generator that produces names aligning (more or less) with common conventions for fantasy characters in fictional media such as Dungeons and Dragons or World of Warcraft.
Installation
python3 -m pip install fantasynames
Or if your project is using Poetry:
poetry add fantasynames
Usage
The following name generating methods are provided for a variety of different stereotypical fantasy "races", as well as a few different "medieval-y" languages:
import fantasynames as names
names.elf()
# Example outputs: 'Farathia Eaviel', 'Iethian Willowblossom'
names.dwarf()
# Example outputs: 'Dagdr Steelbeard', 'Thorinna Ironstrike'
names.hobbit()
# Example outputs: 'Libby Honeyfoot', 'Flublius Sweetscone'
names.french()
# Example outputs: 'Richert Roublac', 'Clavena de Clardalle'
names.anglo()
# Example outputs: 'Brandin of Avonlyn', 'Kallem Davenmere'
names.human()
# Example outputs: 'Danric du Tourbloc', 'Sumia Sageholme'
Note that human() provides a diverse mix of different first and last name styles, including anglo() and french()...and more!
You can also pass a string argument to specify whether you want to recieve masculine or feminine names. By default, it's totally random:
names.human() # this will randomly generate either a male or female name
names.human('any') # this is equivalent to the above, in case you want to be specific
names.human('male') # this will generate a masculine name
names.human('female') # this will generate a feminine name
Contributing
Poetry
This package uses Poetry for package management. After checking out the repo, use poetry install to install all the required dependencies. Anytime you need to add a package, use:
poetry add PACKAGE_NAME_HERE
Linting / Formatting
We do code formatting with Python Black, additional linting with flake8, and type checking with mypy. Before opening a PR, please make sure to run all of these. Below is a helpful command to do them all at once:
poetry run black fantasynames && poetry run flake8 fantasynames && poetry run mypy fantasynames
Guides
If you want to make your own name generators, check out:
And then if you want to ramp up the complexity, take a look at:
Metadata
Release files for fantasynames 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fantasynames-0.1.2.tar.gz | 9.1 kB | Without provenance | Details for fantasynames-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fantasynames-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for fantasynames-0.1.2-py3-none-any.whl |
Total release size: 19.7 kB
Release files / fantasynames-0.1.2.tar.gz
| Download URL | fantasynames-0.1.2.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5935050f9285d53e616db7293dcc363a20403f459a44cbc7185c1eb474c63e8
|
|
BLAKE2b-256 checksum How to use checksums |
d2cc5579415a0d916b6be6c03d1d06e1c8a00e49bbf972c7becad8d28406085d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.7.7 Darwin/19.6.0
|
Release files / fantasynames-0.1.2-py3-none-any.whl
| Download URL | fantasynames-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dadc1c029ac07b707e7c7919ae387482eb758008820d41808d5b5a72882e8f27
|
|
BLAKE2b-256 checksum How to use checksums |
ba306794f3084e1773c5f194fcbc9f9cfadb09590dbdba57b987d1774372900e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.7.7 Darwin/19.6.0
|
Security for fantasynames 0.1.2
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.