Skip to main content

A Python package to make naming Toons easier!

Project description

Name-a-toon

A Python library that exists to make generation of toon names slightly easier!

Installing

To install the latest version of name_a_toon, open your favorite command terminal and use the following command:

pip install name_a_toon

If for whatever reason you are unable to install name_a_toon through pip, you can also install it through the latest source distribution released on GitHub. Download the .whl file and open your favorite command terminal. Navigate to wherever the file was downloaded and run the following command:

pip install [file]

Usage

The primary (and really, only) use for name_a_toon is the naming of Toons using the the phase_3/etc/NameMasterEnglish.txt file. Any similarly formatted file will work just as well.

To access this file, extract phase_3 from the command line using Panda3d:

multify -xf phase_3.mf

After doing this, drag and drop phase_3/etc/NameMasterEnglish.txt into the directory with your Python files. For the rest of this guide, this file will be referred to as names.txt. Your directory should look similar to this:

| names.txt
| nametest.py

You can now open your Python file and program! Here's an example program that generates a random toon name:

import name_a_toon

namelist = name_a_toon.NameList.from_file("names.txt")
print(name_a_toon.Name.random(namelist).to_string())

A list of toon names generated by name-a-toon: Claire, Palebee, Duke Palespeed, annd Mr. Crumbleblabber.

License

Code in name_a_toon is licensed under the MIT License.

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

name_a_toon-0.0.1.tar.gz (14.0 kB view hashes)

Uploaded Source

Built Distribution

name_a_toon-0.0.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page