Skip to main content

Simple random generator for rpg item names.

Project description

Build Status types

rpg namer

This is a simple package to generate random item names from pre-compiled lists of descriptions and item types

Some example names generated:

Lusca's Fists
Consternation Dress
The Intimidation Footpads
Kushtaka's Spangenhelm
The Actual Nasal Helmet
Yuki-Onna's Greaves
Footguards of the Edged Antaeus
Trepidity Warboots of the Svartálfar
Possible Anklet
Horrible Trousers
Tanktop of the Shikoku
Legwraps of the Dismay Familiar Spirit
Suit of the Real Suangi
Devilish Gloves of the Heikegani

Installing and Usage

Installation

python -m pip install rpg_namer

Upgrading

python -m pip install rpg_namer --upgrade

Basic Usage

from rpg_namer import RPGItems


gen = RPGItems()
print(gen.random_item())

# Output: Horrible Trousers

Additional overrides for the items, adjectives and target nouns are provided as keywords, and support list functionality:

from rpg_namer import RPGItems

override_items = ['buckler']
override_nouns = ['serpent']
override_adjectives = ['flaming']


gen = RPGItems(items=override_items,
               adjectives=override_adjectives,
               nouns=override_nouns)
print(gen.random_item())

# Output: Flaming Buckler of the Serpent

Generation of the item name will be done using random selections from each list and fabricated by static item formats in the class. For additional suggested formats, or new word lists, please add a suggestion via branch/PR.

Word List generation

Generation of the word lists or stripping tools from source can eb found under the examples directory which includes some base code for generating word lists and formatting python lists for consumption. This can assit in new list generation.

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

rpg_namer-1.0.1.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

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

rpg_namer-1.0.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file rpg_namer-1.0.1.tar.gz.

File metadata

  • Download URL: rpg_namer-1.0.1.tar.gz
  • Upload date:
  • Size: 27.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.7

File hashes

Hashes for rpg_namer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ed904e8365a0d422497e38501412fcdc78bfa77432e855cd6804708d5aa0bb1c
MD5 0ecc1b564134f7844244058fd7d21040
BLAKE2b-256 990ac27a9a74fa15eb05fdeac5e78e9ae36ceaea838dabec4634b38c78a8b336

See more details on using hashes here.

File details

Details for the file rpg_namer-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: rpg_namer-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.7

File hashes

Hashes for rpg_namer-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b300ec8dc8c27480d9135168893ff2f9074948abc5d0bda3aaebc8dd30bfead
MD5 bd1d2b2c6745c6ff660ac2b036ebd81b
BLAKE2b-256 9460ce5d7e9947ce0426b5f41233c49e724461a03859381bd350abd53799e6b6

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