libnamegen
Package containing various name generation methods. Originally on my NameGenerator project.
Features
- Easy to use
- Imported as module
- Always tested before release
- Officially supports latest two 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.
Metadata
Release files for libnamegen 3.1.1.post2
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 | |
|---|---|---|---|---|
| libnamegen-3.1.1.post2.tar.gz | 16.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| libnamegen-3.1.1.post2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.2 kB
Release files / libnamegen-3.1.1.post2.tar.gz
| Download URL | libnamegen-3.1.1.post2.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
340593fdcfeb175809962e3739abd30a27c246922fb79da729875cec9cbb8735
|
|
BLAKE2b-256 checksum How to use checksums |
0b166ba3045a7cf7c8bafb3597bfadc6cc752e783670b3dd7b473a2e139fb028
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Release files / libnamegen-3.1.1.post2-py3-none-any.whl
| Download URL | libnamegen-3.1.1.post2-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3eadd0848a2dec66feed10b80b8bdffc2aaf33266f0ccd85594c68a7d0fda52
|
|
BLAKE2b-256 checksum How to use checksums |
3d8f54300f870cb401d4d838ce0b939b6b2154decd1e40e9c5cb578c0a3eb5f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Security for libnamegen 3.1.1.post2
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.