Skip to main content

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 random or string module 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rnd-1.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for rnd-1.0.1.tar.gz
Algorithm Hash digest
SHA256 38efdc3b0e4c4b2acb8cf0bf4f045ea1fc07cf2ba33b02fd2b7bcef4fef4cc70
MD5 3f0123c0feeed16d10f1c29815d5f107
BLAKE2b-256 2d6d5327ffbfad8aef579910a1e9d62cab66674cb6e8f22bdb89932fc9288c90

See more details on using hashes here.

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

Hashes for rnd-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4e1dceacdc0c9720e2a2b0f4db4d8a9e8b6937ea326bc54dd8f8ccadf1bb218
MD5 4f90a180bc2ca006b35825e7de6682af
BLAKE2b-256 7450449769738ff0fe0f5b557b6de3bd818571fd678f829fbb126cd8a0f72ee6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page