Skip to main content

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.

Back to Top


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)

Source distribution for randstr-random 1.1.3
File Size Uploaded
randstr-random-1.1.3.tar.gz 3.0 kB Details

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

Release history Release notifications | RSS feed

This release

1.1.3 This release

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page