randstr-random
Python package for generating strings with random characters.
Make sure to have the latest version of Python 3 installed although this should work with previous versions.
To install the package with pip enter command in terminal:
pip install randstr-random
To uninstall the package with pip enter command in terminal:
pip uninstall randstr-random
| Method | Description |
|---|---|
randdigit()
|
Generates a random digit ranging from 0 to 9 (Digits in Decimal Number System) and returns it as a string. |
randalpha()
|
Generates a random lowercase letter from the english alphabet and returns it as a string. |
randspec()
|
Generates a random special character and returns it as a string. |
generate(string_length, seed_type)
|
Return a string with random values of designated int length (Cap of 10000).
The random value combos are selected by using a specific string for the seed_type argument. The seed_type argument value options (not case sensitive) are as follows: "al" - (Alphabet Lower) Random lowercase alphabet letters. "au" - (Alphabet Upper) Random uppercase alphabet letters. "dig" - (Digit) Random digits 0-9. "spec" - (Special) Random special characters. "ad" - (Alphabet Lower | Alphabet Upper | Digit) Random lowercase & uppercase alphabet letters. Random digits 0-9. "ads" - (Alphabet Lower | Alphabet Upper | Digit | Special) Random lowercase & uppercase alphabet letters. Random digits 0-9. Random special characters. |
isspec(arg)
|
Return true if all characters in arg string are special characters. |
isads(arg)
|
Return true if all characters in arg string are either upper/lower case alphabet, decimal or special characters. |
Metadata
Release files for randstr-random 1.1.3
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-random-1.1.3.tar.gz | 3.0 kB | Without provenance | Details for randstr-random-1.1.3.tar.gz |
Release files / randstr-random-1.1.3.tar.gz
| Download URL | randstr-random-1.1.3.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e539cdb8dc8bd919229fabef37cfda390a3a74b8e917cfa1709c1e89cb4ae5d7
|
|
BLAKE2b-256 checksum How to use checksums |
72386fc63fc43b745ee7ca25655fe7bcd123f6324a3e18c4db42f81744f04935
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
|
Security for randstr-random 1.1.3
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.