Skip to main content

Python package for generating strings with random characters.

Project description

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


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

randstr-random-1.1.3.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file randstr-random-1.1.3.tar.gz.

File metadata

  • Download URL: randstr-random-1.1.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for randstr-random-1.1.3.tar.gz
Algorithm Hash digest
SHA256 e539cdb8dc8bd919229fabef37cfda390a3a74b8e917cfa1709c1e89cb4ae5d7
MD5 2addbc4d60cfe6f5a57f0dd7f1934447
BLAKE2b-256 72386fc63fc43b745ee7ca25655fe7bcd123f6324a3e18c4db42f81744f04935

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page