A more flexible string generator
Project description
randstr-plus
A slightly more flexible string generator
Functions
randstr(min_length: int = 5, max_length: int = 25, min_tokens: int = 1, max_tokens: int = 5, lowercase_letters: bool = True, uppercase_letters: bool = True, punctuation: bool = True, numbers: bool = True) -> str
Return a single string generated from random characters according to the given parameters.
Keyword Arguments:
min_length {int} -- minimum total character length (default: {5})
max_length {int} -- maximum total character length (default: {25})
min_tokens {int} -- minimum total tokens/words (default: {1})
max_tokens {int} -- maximum total tokens/words (default: {5})
lowercase_letters {bool} -- allow lowercase letters (default: {True})
uppercase_letters {bool} -- allow uppercase letters (default: {True})
punctuation {bool} -- allow punctuation characters (default: {True})
numbers {bool} -- allow numbers (default: {True})
Returns:
str -- generated string
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
randstr-plus-0.0.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for randstr_plus-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb1722e458fc15445aedcee957a9f187cd75134c6c15859d0f3d7e33914f34a4 |
|
MD5 | 670f43243be5c7198b5a5d7839aa6402 |
|
BLAKE2b-256 | a6ecd8e41d113fe561e9aa7efd5bba1bcd11c142e7bdd6da3078d4f45f293b08 |