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
Metadata
Release files for randstr-plus 0.0.2
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 | Actions |
|---|---|---|---|---|
| randstr-plus-0.0.2.tar.gz | 3.7 kB | Without provenance | Details for randstr-plus-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| randstr_plus-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for randstr_plus-0.0.2-py3-none-any.whl |
Total release size: 7.5 kB
Release files / randstr-plus-0.0.2.tar.gz
| Download URL | randstr-plus-0.0.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
525705afea1144f6f3fd84fa8f61a6c6736384b286ed31053fe6d33aa647e7c4
|
|
BLAKE2b-256 checksum How to use checksums |
00d630631aaf88ea2668d3c27c131e1159bffc7a81632a3730be93b5ddce7c6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.8.5 Linux/4.19.128-microsoft-standard
|
Release files / randstr_plus-0.0.2-py3-none-any.whl
| Download URL | randstr_plus-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d7b902c2918eb4d561f23f723ce2abf509f1a883bb3e0862bc3cce886a61e58
|
|
BLAKE2b-256 checksum How to use checksums |
8c58ceef728964eae2004b19ca855924c6dcd3890ef04e2b3ff66fdd3ce15e8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.8.5 Linux/4.19.128-microsoft-standard
|
Security for randstr-plus 0.0.2
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.