Library containing name generation methods
Project description
libnamegen
Package containing various name generation methods. Originally on my NameGenerator project.
Features
- Easy to use
- Imported as module
- Always tested before release
- Supports latest three versions of Python 3
How to Install
Run the command pip install libnamegen
. If you want to specify a specific Python version to use for pip, use a command such as pip3
or pip3.8
.
libnamegen requires the package libprogress, but it will automatically be installed by pip.
Documentation
API
Generate one classic name without debug:
from libnamegen import classic
# this uses the defaults which are one name, debug disabled, and classic generator
print(classic.gen())
Generate seven classic names with debug:
from libnamegen import classic
print(classic.gen(count=7, debug=True))
# print(classic.gen(7, True)) # also valid
Prompt the user for the amount of names, enable debug, and generate classic names:
from libnamegen import classic
amt = input("Amount of names to generate >> ")
count = int(amt)
names = classic.gen(count, true)
for name in names:
print(name)
Generate one random name without debug:
from libnamegen import random
print(random.gen())
Generate one name using the random method 15 characters long:
from libnamegen import random
print(random.gen(length=15))
You can also import the entire libnamegen package, which will import all generation methods:
import libnamegen
print(libnamegen.classic.gen())
License
libnamegen is licensed under the GPLv3 license. For more information, please refer to LICENSE
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file libnamegen-3.1.1.tar.gz
.
File metadata
- Download URL: libnamegen-3.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1406db89dd4d6c3286ad67fc40ea5e05d9bc1d26de2f2c0cf8c750f27707af68 |
|
MD5 | 4529776f3598ed5e7d64b9cb39ced9f3 |
|
BLAKE2b-256 | 02a34fa701e93b2fc0294fa72b3e0bfed4f61f17e928ceee1f38c70e52430126 |