random-password-generator
Simple and custom random password generator for python
What it is and what it does
This is a lightweight, dependency-free password generator that creates random passwords with configurable constraints. You instantiate a PasswordGenerator object, optionally set properties like minimum length (default 6), maximum length (default 16), character composition requirements (uppercase, lowercase, numbers, special characters), and exclusion rules, then call generate() to produce a password. It also supports generating passwords from a custom character set or ensuring no duplicate characters. The library is marked Production/Stable, though development has been dormant since 2021-07-12.
The package is straightforward for basic password generation tasks in scripts, CLI tools, or applications that need to create credentials programmatically. It has no external dependencies, making it trivial to integrate. However, because maintenance is inactive, you should verify that its randomness approach meets your security requirements before using it in contexts where credential strength is critical.
Use it for:
- Generate default random passwords in CLI tools or admin scripts without adding external dependencies.
- Create passwords with specific character composition rules (e.g., minimum uppercase, lowercase, numbers, special characters).
- Exclude certain characters from generated passwords to avoid ambiguous or problematic symbols.
- Generate non-duplicate-character passwords for systems requiring character variety.
- Build a custom password from a given character set with a specified length.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Generates random passwords with configurable length, character composition, and exclusion rules, with no external dependencies.
Yes, if you need lightweight, zero-dependency password generation for non-critical use cases. The permissive MIT license and low install friction make it easy to adopt. However, the dormant maintenance status (last release 2021-07-12) means no active support or security updates; verify that its randomness approach aligns with your security requirements before using it in production systems.
Install
random-password-generator on PyPI
pip
pip install random-password-generatoruv
uv add random-password-generatorpoetry
poetry add random-password-generatorInstalling random-password-generator
Before you install
Low friction: pure Python wheel with zero runtime dependencies. Maintenance is dormant—last release was 2021-07-12 and last commit 2024-01-29—so expect no active bug fixes or feature updates, though marked Production/Stable.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial or private projects with minimal restrictions.
Quickstart
pip install random-password-generator
from random_password_generator import PasswordGenerator
pwo = PasswordGenerator()
pwo.generate()
Verify before relying
- Whether the package uses the secrets module for cryptographic randomness on Python 3.6+ as claimed in the changelog.
- Current compatibility with Python versions beyond 3.7, given classifiers list only up to 3.7 but no explicit requires_python constraint.
- Whether the randomness approach meets security requirements for production credential generation.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 1,859 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 171,627/month — #10,361 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: random_password_generator-2.2.0-py3-none-any.whl
Keywords: random, password, generator, different, lengths
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
password-strengthEvaluates password strength and validates…
permissive · top 15,000 on PyPI
rstrGenerates random strings from custom alphabets,…
permissive · top 5,000 on PyPI
wonderwordsGenerates random English words and sentences…
permissive · top 15,000 on PyPI
xkcdpassGenerates strong, memorable passphrases by…
permissive · top 15,000 on PyPI
shortuuidGenerates concise, URL-safe unique identifiers…
permissive · top 1,000 on PyPI
python-timeoutGenerates random timeouts between specified…
unclear · top 15,000 on PyPI
nanoidGenerates cryptographically secure,…
permissive · top 5,000 on PyPI
faker-e164Generates fake E164-formatted phone numbers for…
permissive · top 15,000 on PyPI
hashidsGenerates short, unique, non-sequential hashes…
permissive · top 5,000 on PyPI
coolnameGenerates random human-readable names and…
permissive · top 5,000 on PyPI