PyNameGen is a CLI for libnamegen
Project description
PyNameGen
Robust CLI for libnamegen. Originally on my NameGenerator project.
Features
- Easy to use
- CLI with simple arguments
- Always tested before release
- Supports latest three versions of Python 3
How to Install
Run the command pip install pynamegen
. If you want to specify a specific Python version to use for pip, use a command such as pip3
or pip3.8
.
PyNameGen requires the packages libnamegen
and libprogress
, but those will automatically be installed by pip.
FAQ
What versions of Python are compatible?
PyNameGen is built for Python 3. It is tested on the latest three versions on Python 3 by a few different continuous integration services.
Documentation
Command-Line Interface
Use defaults (100 names, debug enabled, classic method, write names to names.txt):
$ pynamegen
Generating names...
[####################] 100% [100/100]...done
Preparing list to write to file...done
Opening file...
Writing names...
[####################] 100% [100/100]...done
Saving file...
Finished!
Show help menu (use any of the three options in brackets):
$ pynamegen [--help | -h | help]
Usage:
pynamegen [options]
Options:
amt: Amount of names to generate
debug: Whether or not to output debug information
method: Which name generation method to use
Example:
pynamegen amt=50 debug=True file=mynames.txt method=classic
Generate 250 names:
$ pynamegen amt=250
Generating names...
[####################] 100% [250/250]...done
Preparing list to write to file...done
Opening file...
Writing names...
[####################] 100% [250/250]...done
Saving file...
Finished!
Generate default amount of names with debug disabled:
$ pynamegen debug=False
(no output)
Generate names and place in file usernames.txt:
$ pynamegen file=usernames.txt
Generating names...
[####################] 100% [100/100]...done
Preparing list to write to file...done
Opening file...
Writing names...
[####################] 100% [100/100]...done
Saving file...
Finished!
Generate names and place in file users.txt inside the directory "example-names" (Directory must already exist!)
$ pynamegen file=example-names/users.txt
Generating names...
[####################] 100% [100/100]...done
Preparing list to write to file...done
Opening file...
Writing names...
[####################] 100% [100/100]...done
Saving file...
Finished!
Generate 50 names with debug enabled and place in namelist.txt:
$ pynamegen amt=50 debug=True file=namelist.txt
Generating names...
[####################] 100% [50/50]...done
Preparing list to write to file...done
Opening file...
Writing names...
[####################] 100% [50/50]...done
Saving file...
Finished!
The default name generation method is classic, and looks like 'TheAssignmentanatorifier_90'.
The generation method random looks like 'XaYyaknkCoH8'.
You can change the generation method used by using the argument 'method=[method]' and replace [method] with the correct method.
$ pynamegen method=random
Generating names...
[####################] 100% [100/100]...done
Preparing list to write to file...done
Opening file...
Writing names...
[####################] 100% [100/100]...done
Saving file...
Finished!
License
PyNameGen is licensed under the GPLv3 license. For more information, please refer to LICENSE.txt
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
Built Distribution
File details
Details for the file pynamegen-3.0.1.tar.gz
.
File metadata
- Download URL: pynamegen-3.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad9545c4d39126f6c35e6a40043a2e7d70faad99a77808ea790f58eeab6bcdbd |
|
MD5 | a04b4732e63c59c5c181e7c3292717c9 |
|
BLAKE2b-256 | 4f604e4cc27b4b1b96275a05128b897324dd8df3c468ddcf57504b4194df8347 |
File details
Details for the file pynamegen-3.0.1-py3-none-any.whl
.
File metadata
- Download URL: pynamegen-3.0.1-py3-none-any.whl
- Upload date:
- Size: 16.6 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b42eabe6167b96c0ab771786dd9b3bf8586f2c570b3594b88b2d1c7cb8332209 |
|
MD5 | 2a30f83bf941707d5d6a7a8aeeb2a062 |
|
BLAKE2b-256 | 3d38cdd825a0b8b5e93ec9486bfc074437c5b201946962153ce7df445d822faa |