Skip to main content

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

Metadata

Release files for python-random-strings 0.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 python-random-strings 0.3
File Size Uploaded
python random strings-0.3.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-random-strings 0.3
File Interpreter ABI Platform
python_random_strings-0.3-py3-none-any.whl Python 3 none any Details

Total release size: 31.2 kB

Release files / python random strings-0.3.tar.gz

Download URL python random strings-0.3.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f3919c88a4f92afa62f00401a69299f8122016e627c358bcf2f2c4d435b671e4
BLAKE2b-256 checksum
How to use checksums
90682c1eefaaf65a95f343b764898190f450873cb799d4642d02ab58d1e3559a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / python_random_strings-0.3-py3-none-any.whl

Download URL python_random_strings-0.3-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fb0ecd5aad354aa3ac69d83e9c69177fb4fbcc138178bdf3b205cb4cd484b1b
BLAKE2b-256 checksum
How to use checksums
13fc8d20ab7c0319bb23238f1203c527b4eac043cc2b1f33ccc7cd56de157bf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.2

2 release files

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