An advanced, customizable random string generator without using random or string.
Project description
rnd
rnd is an advanced, customizable random string generator written in Python.
It avoids using the random or string modules and gives you complete control over character sets and generation behavior.
Features
- No
randomorstringmodule dependency - Customizable character sets (lowercase, uppercase, digits, symbols, emojis, custom)
- Emoji and symbol support
- Presets for common use cases (alphanumeric, emoji-only, password-safe, etc.)
- Unique character enforcement
- Prefix and suffix support
- Command-line interface (CLI)
Installation
pip install rnd
Usage
Python
from rnd import rnd
print(rnd(length=16)) # default
print(rnd(length=12, mode="emoji-only"))
print(rnd(length=10, upper=True, digits=False, emojis=True))
CLI
rnd -l 20 --mode password-safe
rnd -l 16 --prefix "ID_" --emojis --symbols
Preset Modes
| Mode | Description |
|---|---|
| alphanumeric | Letters (lower/upper) and numbers |
| emoji-only | Emojis only |
| password-safe | Strong password with symbols |
| symbols-only | Only symbols |
| uppercase | Uppercase letters only |
| numeric | Digits only |
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
rnd-1.0.1.tar.gz
(4.2 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
rnd-1.0.1-py3-none-any.whl
(5.3 kB
view details)
File details
Details for the file rnd-1.0.1.tar.gz.
File metadata
- Download URL: rnd-1.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38efdc3b0e4c4b2acb8cf0bf4f045ea1fc07cf2ba33b02fd2b7bcef4fef4cc70
|
|
| MD5 |
3f0123c0feeed16d10f1c29815d5f107
|
|
| BLAKE2b-256 |
2d6d5327ffbfad8aef579910a1e9d62cab66674cb6e8f22bdb89932fc9288c90
|
File details
Details for the file rnd-1.0.1-py3-none-any.whl.
File metadata
- Download URL: rnd-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4e1dceacdc0c9720e2a2b0f4db4d8a9e8b6937ea326bc54dd8f8ccadf1bb218
|
|
| MD5 |
4f90a180bc2ca006b35825e7de6682af
|
|
| BLAKE2b-256 |
7450449769738ff0fe0f5b557b6de3bd818571fd678f829fbb126cd8a0f72ee6
|