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.2.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.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: generatepwd-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 2f10ec1e66d09536c8d28a0f229fb33a81eb092311d89a5ad282e3ce46328488
MD5 876c4c859bcede74b2d6a27fa3e78b58
BLAKE2b-256 0e8538227497e89261813ca9f1ddfbe679ca7c9a63e89e2ebe72de73e212ebf9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: generatepwd-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc44123c3b1d1d35a1b8d74f66cfb87fd9d523f26b1d941ea4424dbe1b4d9286
MD5 6ed73a0be3abcf76c8d6520907983deb
BLAKE2b-256 cc51d2e7e8769ee113bc2c3b0558150755fb4480831eec0caaa5c6891b47b669

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