https://github.com/torhamdev/python_random_strings
a python lib for generate random string and digits and special characters or A combination of them
https://github.com/torhamdev/python_random_strings
digits python python3 random random-string special-characters string strings
Last synced: 3 months ago
JSON representation
a python lib for generate random string and digits and special characters or A combination of them
- Host: GitHub
- URL: https://github.com/torhamdev/python_random_strings
- Owner: TorhamDev
- License: agpl-3.0
- Created: 2021-11-12T09:46:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-17T18:08:48.000Z (about 3 years ago)
- Last Synced: 2025-04-11T19:08:32.514Z (3 months ago)
- Topics: digits, python, python3, random, random-string, special-characters, string, strings
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python random strings
 [](./LICENSE)
> a python library to generate random strings and digits and special characters or a combination of them
## installation 🛠
```bash
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 ✏️
```pythonfrom python_random_strings import random_strings
a = random_strings.random_lowercase(6)
print(a)
output => hueioja = random_strings.random_uppercase(6)
print(a)
output => GAVKDFa = random_strings.random_letters(6)
print(a)
output => rENOtba = random_strings.random_digits(6)
print(a)
output => 653665a = random_strings.random_hexdigits(6)
print(a)
output => c25Ba6a = random_strings.random_octdigits(6)
print(a)
output => 540322a = random_strings.random_punctuation(6)
print(a)
output => "=*$^<a = random_strings.random_printable(6)
print(a)
output => )|~6yZa = random_strings.random_whitespace(6)
print(a)
output => \t\n\r\t\n\x0c
```