Skip to main content

Generate Random password

Project description

PyGeneratePassword is a Python package that provides a simple tool to generate random passwords with customizable parameters. You can easily create secure passwords for various applications and scenarios.


You can install PyGeneratePassword using pip, the Python package manager. Open your terminal or command prompt and run the following command:

pip install PyGeneratePassword


from PyGeneratePassword import PasswordGenerate

# Generate a random password with default settings
password = PasswordGenerate()
print("Generated Password:", password)

# Generate a password with custom settings (e.g., length and character set)
custom_password = PasswordGenerate(length=16, use_digits=True, use_special_chars=True)
print("Custom Password:", custom_password)


The above usage example will produce output similar to the following:

Generated Password: W!lA0$qVnS7C
Custom Password: ZS4jB9$+xQvH6D!2


The PasswordGenerate class supports the following options:

  • length (default is 12): Specify the length of the generated password.

  • use_digits (default is True): Include digits (0-9) in the password.

  • use_special_chars (default is True): Include special characters in the password.

You can customize these options to create passwords that meet your specific requirements.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyGeneratePassword-0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

PyGeneratePassword-0.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

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