Skip to main content

Generates a random password.

Project description

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

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

pypw-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file pypw-1.0.0.tar.gz.

File metadata

  • Download URL: pypw-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pypw-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e276f0e481a4e2f3da40f2558fc5c5621396202590a6b8e3479c4c0c8065139d
MD5 d42f5a3749db1f5f4b24564235695ed0
BLAKE2b-256 52b3797726171fb253dd617fee53d547a89536238ee7cb07a366071f46a4ef9e

See more details on using hashes here.

Supported by

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