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

Overview

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
You might also like...
glip is a module for retrieve ip address like local-ip, global-ip, external-ip as string.

gle_ip_info glip is a module for retrieve ip address like local-ip, global-ip, external-ip as string.

Creates a C array from a hex-string or a stream of binary data.

hex2array-c Creates a C array from a hex-string. Usage Usage: python3 hex2array_c.py HEX_STRING [-h|--help] Use '-' to read the hex string from STDIN.

A string to hashtags module

A string to hashtags module

A simple package for handling variables in string.

A simple package for handling string variables. Welcome! This is a simple package for handling variables in string, You can add or remove variables wi

Python program to do with percentages and chances, random generation.

Chances and Percentages Python program to do with percentages and chances, random generation. What is this? This small program will generate a list wi

A simple and easy to use collection of random python functions.

A simple and easy to use collection of random python functions.

A simple Python app that generates semi-random chord progressions.

chords-generator A simple Python app that generates semi-random chord progressions.

A random cats photos python module

A random cats photos python module

A Random Password Generator made from Python
A Random Password Generator made from Python

Things you need Python Step 1 Download the python file from Releases Step 2 Go to the directory where the python file is and run it Step 3 Type the le

Comments
  • Changed the logic of the program

    Changed the logic of the program

    Hi Torham , I changed the logic of the random_strings library to use random.sample and string library instead of actually declaring the characters. I changed all of the random_strings class functions to staticmethod because they didn't use self. I also added tests , and i ran them manually too , and they all pass. I also added runtests.py file. This way you can easily run the tests with pre-defined configurations to show logs and etc. I also added a function to generate random whitespaces. I changed README.MD file too. If the program has any problem , Please inform me.

    opened by SepehrRasouli 1
Owner
Torham
Towards the future and beyond :۰)
Torham
An okayish python script to generate a random Euler circuit with given number of vertices and edges.

Euler-Circuit-Test-Case-Generator An okayish python script to generate a random Euler circuit with given number of vertices and edges. Executing the S

Alen Antony 1 Nov 13, 2021
Dependency injection lib for Python 3.8+

PyDI Dependency injection lib for python How to use To define the classes that should be injected and stored as bean use decorator @component @compone

Nikita Antropov 2 Nov 9, 2021
Genart - Generate random art to sell as nfts

Genart - Generate random art to sell as nfts Usage git clone

Will 13 Mar 17, 2022
Generate random german words

Generate random german words / Generiere zufällige deutsche Wörter Getting Started Pip install with pip install zufallsworte Install the library with

Maximilian Freitag 5 Mar 24, 2022
Create password - Generate Random Password with Passphrase

Generate Random Password with Passphrase This is a python code to generate stron

null 1 Jan 18, 2022
These scripts look for non-printable unicode characters in all text files in a source tree

find-unicode-control These scripts look for non-printable unicode characters in all text files in a source tree. find_unicode_control.py should work w

Siddhesh Poyarekar 25 Aug 30, 2022
RapidFuzz is a fast string matching library for Python and C++

RapidFuzz is a fast string matching library for Python and C++, which is using the string similarity calculations from FuzzyWuzzy

Max Bachmann 1.7k Jan 4, 2023
A string extractor module for python

A string extractor module for python

Fayas Noushad 4 Jul 19, 2022
A hashtag from string extract python module

A hashtag from string extract python module

Fayas Noushad 3 Aug 10, 2022
Package that allows for validate and sanitize of string values.

py.validator A library of string validators and sanitizers Insipired by validator.js Strings only This library validates and sanitizes strings only. P

Sanel Hadzini 22 Nov 8, 2022