Skip to main content

A command-line password generator with customizable complexity levels

Project description

generatepwd

A simple Python CLI tool for generating secure passwords with customizable length and complexity.

Features

  • Supports three complexity levels:
    • SIMPLE: Lowercase letters only
    • MEDIUM: Mixed uppercase and lowercase letters
    • HIGH: Mixed letters, digits, and special characters
  • Input validation for length (integer between 1 and 100) and complexity
  • Colored CLI output for success and error messages using click
  • Modular design with strategies, validators, and distribution calculator

Installation

  • Install using pip command
pip install generatepwd

Usage

  • Run the CLI with default options (default length - 12, default complexity - SIMPLE):
generatepwd

Or use the generatepwd:

generatepwd -l 16 -c HIGH

Options:

  • -l, --length: Password length (default: 12)
  • -c, --complexity: Complexity level (SIMPLE, MEDIUM, HIGH, default: SIMPLE)

Example:

generatepwd -l 20 -c medium
# Output: Generated Password: fRLsSiPlnYaNtgpMfPQY

Contributing

Contributions, issues, and feature requests are welcome. Please open an issue or submit a pull request.

License

MIT License

Copyright (c) 2025 Sriram Dhanaraj

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

generatepwd-1.0.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

generatepwd-1.0.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file generatepwd-1.0.1.tar.gz.

File metadata

  • Download URL: generatepwd-1.0.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for generatepwd-1.0.1.tar.gz
Algorithm Hash digest
SHA256 209ef0e2f84efbd569fd69d3b83c02d13800f488fc21dd3a08f53a85da6e296c
MD5 e0c11a12fdb1c895c777e47d7a4cb8bb
BLAKE2b-256 d9c182e7f62968c5dd9f241f075c6c8fa388ee464f19ca9c57061966a2c749ee

See more details on using hashes here.

File details

Details for the file generatepwd-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: generatepwd-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for generatepwd-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11ef654f7c8eea01feabd2be5a1346f50e6144fb628dde4b14b6074f5f1dfd6b
MD5 80547be0f9e3544036a8e2721d4438a4
BLAKE2b-256 e118c45933aa575b632731928c8c599478ed8d0e93b3f9f8406965eb9bd3e986

See more details on using hashes here.

Supported by

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