Skip to main content

a python lib for generate random string and digits and special characters or A combination of them

Project description

python random strings

Python Licence


a python library to generate random strings and digits and special characters or a combination of them

installation 🛠

pip install python-random-strings

options 🖇

  1. Random Lower Case
  2. Random Upper Case
  3. Random Letters
  4. Random Digits
  5. Random Hex Digits
  6. Random Oct Digits
  7. Random Punctuation
  8. Random Printable
  9. Random Whitespace

Sample Code ✏️

from python_random_strings import random_strings


a = random_strings.random_lowercase(6)
print(a)
output => hueioj

a = random_strings.random_uppercase(6)
print(a)
output => GAVKDF

a = random_strings.random_letters(6)
print(a)
output => rENOtb

a = random_strings.random_digits(6)
print(a)
output => 653665

a = random_strings.random_hexdigits(6)
print(a)
output => c25Ba6

a = random_strings.random_octdigits(6)
print(a)
output => 540322

a = random_strings.random_punctuation(6)
print(a)
output => "=*$^<

a = random_strings.random_printable(6)
print(a)
output => )|~6yZ

a = random_strings.random_whitespace(6)
print(a)
output => \t\n\r\t\n\x0c

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

python random strings-0.3.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_random_strings-0.3-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file python random strings-0.3.tar.gz.

File metadata

  • Download URL: python random strings-0.3.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for python random strings-0.3.tar.gz
Algorithm Hash digest
SHA256 f3919c88a4f92afa62f00401a69299f8122016e627c358bcf2f2c4d435b671e4
MD5 26c7a15806ec300cc0b5eda9dd3409aa
BLAKE2b-256 90682c1eefaaf65a95f343b764898190f450873cb799d4642d02ab58d1e3559a

See more details on using hashes here.

File details

Details for the file python_random_strings-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for python_random_strings-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5fb0ecd5aad354aa3ac69d83e9c69177fb4fbcc138178bdf3b205cb4cd484b1b
MD5 39bbd5a4ac690f0c4ce2be94f6c664f6
BLAKE2b-256 13fc8d20ab7c0319bb23238f1203c527b4eac043cc2b1f33ccc7cd56de157bf3

See more details on using hashes here.

Supported by

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