python random strings


a python lib for generate random string 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

Sample Code ✏️


from python_random_strings import random_strings


a = random_strings.random_lowercase(6)
print(a)

a = random_strings.random_uppercase(6)
print(a)

a = random_strings.random_letters(6)
print(a)

a = random_strings.random_digits(6)
print(a)

a = random_strings.random_hexdigits(6)
print(a)

a = random_strings.random_octdigits(6)
print(a)

a = random_strings.random_punctuation(6)
print(a)

a = random_strings.random_printable(6)
print(a)

sample output ?

hueioj
GAVKDF
rENOtb
653665
c25Ba6
540322
"=*$^<
)|~6yZ

GitHub - TorhamDev/python_random_strings at pythonawesome.com
a python lib for generate random string and digits and special characters or A combination of them - GitHub - TorhamDev/python_random_strings at pythonawesome.com