boilerplatecode 0.0.2 Documentation

Library template for ‘how to publish a python package on pypi’ video tutorial.

boilerplatecode package contains the following tools:

  • PasswordGenerator - generates a random password

Note

Getting boilerplatecode

$ pip install boilerplatecode

$ pip install --upgrade boilerplatecode

PasswordGenerator

Automatic password generator

Logic

Generates a password of a length specified by the user. The password is generated using the uppercase letters, lowercase letters, numbers 0 to 9 and special characters.

Initialize PasswordGenerator .. code-block:: python

from boilerplatecode import PasswordGenerator

pg = PasswordGenerator(12) # initialize with password length of 12 characters

Parameters

  • password_length [default=None]

    Number of desired symbols in the password to be generated.

Methods

  • generate()

    Generate a new password.

Attributes

  • password

    Last generated password.

Examples

from boilerplatecode import PasswordGenerator
pg = PasswordGenerator(12)