Generating a random string
Project description
RandomChar
Install
pip install randomchar
How to use
Basic
import RandomChar
from RandomChar.Generator import CharType
char = RandomChar.create(CharType.LOWER)
print(char)
ex: xyfntp
Length
import RandomChar
from RandomChar.Generator import CharType
char = RandomChar.create(CharType.LOWER, length=10)
print(char)
ex: xyfntpqncy
Length default: 6
CharType
import RandomChar
from RandomChar.Generator import CharType
char = RandomChar.create(CharType.LOWER, CharType.UPPER, CharType.DIGITS, CharType.PUNCTUATION)
print(char)
ex: dp8N!n
Secure
import RandomChar
char = RandomChar.secure_create(length=16)
print(char)
ex: nAq1s_QhWe4t-3zP
Length default: 10
URL-safe, base64
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
randomchar-0.0.1.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file randomchar-0.0.1.tar.gz.
File metadata
- Download URL: randomchar-0.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
787118522aa2edef326ba7f6c2e9641aed973007c78229c30331129ceb653f6d
|
|
| MD5 |
aac2509c8dbec9832006e76762a58950
|
|
| BLAKE2b-256 |
b5ee05871743d06871d8a57e2a5e7901a99aa7701d96ef6b1d746229d7d368af
|
File details
Details for the file randomchar-0.0.1-py3-none-any.whl.
File metadata
- Download URL: randomchar-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46a92f136bad50679649c91c7ce6002896614f535b6a3a67a7309bb411b6e10a
|
|
| MD5 |
e653ac5cf6a2f77db1e3fd32ab66ab46
|
|
| BLAKE2b-256 |
8517a07cdc32de3f17405696f6d66742cae4ccd52711a977e0a878cdfbe33a13
|