Generates a random password. Can be used as a stand-alone CLI program or imported into projects.
Installation:
python setup.py install
pip install pypw
Usage:
pypw -l 20 - Generate a random password that is 20 characters long pypw -s "TurnTh1sIntoMyP4ssW()RD" --no-mixed - Generate a password from -s without mixed casing pypw -h - Display the help screen
API:
pypw.RandomPassword(sequence=None, mixedCases=True)
sequence(str): The string you want to create a password from
mixedCases(bool): Generate mixed casing on letters
returns: <pypw.RandomPassword instance>
randomBool()
returns: True/False
randCase(sequence)
- Randomizes the casing on a string or list
sequence(str/list): The string to randomize casing on
returns: List of characters
generateRandomPW(length=None, alpha=True, digits=True, symbols=True)
- Generate a random password chosen by PyPW
length(int): Defines how many characters you want in the generated password
alpha(bool): Choose to use alphabetical characters in randomly generated password or not
digits(bool): Choose to use digits (0-9) in randomly generated password or not
symbols(bool): Choose to use symbols in randomly generated password or not
returns: Dict with result, score, ranking and phonetic
generatePW()
- Generate password from the arguments passed to RandomPassword
returns: Dict with result, score, ranking and phonetic
phonetic(sequence)
- Generate a 'phrase' to (hopefully) help the user remember the password. (Not guaranteed to make sense!)
sequence(str): The string you want to generate a phonetic phrase on
returns: Str
strength(sequence)
- Calculate the strength of the password based on length, digits, symbols and casing
returns: Tuple
Metadata
Release files for pypw 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pypw-1.0.0.tar.gz | 3.9 kB | Without provenance | Details |
Release files / pypw-1.0.0.tar.gz
| Download URL | pypw-1.0.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e276f0e481a4e2f3da40f2558fc5c5621396202590a6b8e3479c4c0c8065139d
|
|
BLAKE2b-256 checksum How to use checksums |
52b3797726171fb253dd617fee53d547a89536238ee7cb07a366071f46a4ef9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pypw 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.