Registry / auth-security / random-password-generator

random-password-generator

JSON →
library2.2.0pypypi✓ verified 85d ago

A simple and customizable random password generator for Python. Version 2.2.0 uses the secrets module for cryptographically secure passwords, with the API component separated into a separate package. Released irregularly.

pip install random-password-generator
INSTALL
IMPORT
SIG · RANDOM-PASSWORD-GE
R
random-password-generator
auth-securitypythonv2.2.0
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PasswordGenerator
from password_generator import PasswordGenerator
from random_password_generator import generate_password

Generate a 16-character password with numbers, uppercase, and symbols.

from random_password_generator import generate_password password = generate_password(length=16, numbers=True, uppercase=True, symbols=True) print(password)
Debug
Known issues
gotchaIn versions before 2.1.0, the library used the `random` module, which is not cryptographically secure. Always use version >=2.1.0 for secure generation.
fix
Upgrade to 2.1.0 or later with `pip install --upgrade random-password-generator`.
affects: <2.1.0
breakingIn v2.2.0, the API (web service) was separated into a new package. The library itself has zero dependencies now, but if you relied on the API endpoints, install `rpg-web` separately.
fix
If you need the web API, install `pip install rpg-web`. The library `random-password-generator` is now standalone.
affects: ==2.2.0
Upgrade
Version history
2.2.0latest on PyPI · released Jul 12, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
14
OpenAI (training)
1
Resources
random-password-generator — pip install random-password-generator · libregistry