simple-rands
a very simple tool to generate random string with digits and numbers.
Install
pip install simple-rands
Usage
import simple_rands
import string
# optional: set seed for generator
simple_rands.seed(12345)
# generate a random string with uppercase letter, lowercase letter, and number
length = 16
print(simple_rands.gen(length))
# generate base32 data
print(simple_rands.gen(length, char_pool=string.ascii_uppercase + "234567"))
Metadata
Release files for simple-rands 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simple_rands-0.1.2.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simple_rands-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.5 kB
Release files / simple_rands-0.1.2.tar.gz
| Download URL | simple_rands-0.1.2.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d35c63136e1701966c3b24d8dcd87bcb68f1444d5e7a3d96b27cdcd4bb7b1d92
|
|
BLAKE2b-256 checksum How to use checksums |
7e3f401b6112b03c78a3dca5fd24871c1da9ea190239565c18e1cb0cd62490eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.4 CPython/3.13.12 Windows/11
|
Release files / simple_rands-0.1.2-py3-none-any.whl
| Download URL | simple_rands-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73a26876c5632598c7e7a5f00dafbd8418a55dee6ea5e49165c229dd15ef5cef
|
|
BLAKE2b-256 checksum How to use checksums |
0fca018526baecdd5b03393100d7cdd2a4feed03da76f7737525f31c2776594b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.4 CPython/3.13.12 Windows/11
|