# 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
```bash
pip install generatepwd
```
## Usage
- Run the CLI with default options (default length - 12, default complexity - SIMPLE):
```bash
generatepwd
```
Or use the `generatepwd`:
```bash
generatepwd -l 16 -c HIGH
```
Options:
- `-l`, `--length`: Password length (default: 12)
- `-c`, `--complexity`: Complexity level (`SIMPLE`, `MEDIUM`, `HIGH`, default: `SIMPLE`)
Example:
```bash
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "generatepwd",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "password, generator, cli, security",
"author": null,
"author_email": "Sriram Dhanaraj <sriramdvhere@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/0e/85/38227497e89261813ca9f1ddfbe679ca7c9a63e89e2ebe72de73e212ebf9/generatepwd-1.0.2.tar.gz",
"platform": null,
"description": "# generatepwd\r\n\r\nA simple Python CLI tool for generating secure passwords with customizable length and complexity.\r\n\r\n## Features\r\n\r\n- Supports three complexity levels:\r\n - **SIMPLE**: Lowercase letters only\r\n - **MEDIUM**: Mixed uppercase and lowercase letters\r\n - **HIGH**: Mixed letters, digits, and special characters\r\n- Input validation for length (integer between 1 and 100) and complexity\r\n- Colored CLI output for success and error messages using `click`\r\n- Modular design with strategies, validators, and distribution calculator\r\n\r\n## Installation\r\n\r\n- Install using pip command\r\n\r\n```bash\r\npip install generatepwd\r\n```\r\n\r\n## Usage\r\n\r\n- Run the CLI with default options (default length - 12, default complexity - SIMPLE):\r\n\r\n```bash\r\ngeneratepwd\r\n```\r\n\r\nOr use the `generatepwd`:\r\n\r\n```bash\r\ngeneratepwd -l 16 -c HIGH\r\n```\r\n\r\nOptions:\r\n\r\n- `-l`, `--length`: Password length (default: 12)\r\n- `-c`, `--complexity`: Complexity level (`SIMPLE`, `MEDIUM`, `HIGH`, default: `SIMPLE`)\r\n\r\nExample:\r\n\r\n```bash\r\ngeneratepwd -l 20 -c medium\r\n# Output: Generated Password: fRLsSiPlnYaNtgpMfPQY\r\n```\r\n\r\n## Contributing\r\n\r\nContributions, issues, and feature requests are welcome. Please open an issue or submit a pull request.\r\n\r\n## License\r\n\r\nMIT License\r\n\r\nCopyright (c) 2025 Sriram Dhanaraj\r\n\r\nPermission 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:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE 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.\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A command-line password generator with customizable complexity levels",
"version": "1.0.2",
"project_urls": {
"Homepage": "https://github.com/sriramdvhere/generatepwd",
"Issues": "https://github.com/sriramdvhere/generatepwd/issues",
"Repository": "https://github.com/sriramdvhere/generatepwd"
},
"split_keywords": [
"password",
" generator",
" cli",
" security"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "cc51d2e7e8769ee113bc2c3b0558150755fb4480831eec0caaa5c6891b47b669",
"md5": "6ed73a0be3abcf76c8d6520907983deb",
"sha256": "dc44123c3b1d1d35a1b8d74f66cfb87fd9d523f26b1d941ea4424dbe1b4d9286"
},
"downloads": -1,
"filename": "generatepwd-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6ed73a0be3abcf76c8d6520907983deb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 8382,
"upload_time": "2025-08-10T12:00:20",
"upload_time_iso_8601": "2025-08-10T12:00:20.832017Z",
"url": "https://files.pythonhosted.org/packages/cc/51/d2e7e8769ee113bc2c3b0558150755fb4480831eec0caaa5c6891b47b669/generatepwd-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "0e8538227497e89261813ca9f1ddfbe679ca7c9a63e89e2ebe72de73e212ebf9",
"md5": "876c4c859bcede74b2d6a27fa3e78b58",
"sha256": "2f10ec1e66d09536c8d28a0f229fb33a81eb092311d89a5ad282e3ce46328488"
},
"downloads": -1,
"filename": "generatepwd-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "876c4c859bcede74b2d6a27fa3e78b58",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 7912,
"upload_time": "2025-08-10T12:00:22",
"upload_time_iso_8601": "2025-08-10T12:00:22.598121Z",
"url": "https://files.pythonhosted.org/packages/0e/85/38227497e89261813ca9f1ddfbe679ca7c9a63e89e2ebe72de73e212ebf9/generatepwd-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-10 12:00:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sriramdvhere",
"github_project": "generatepwd",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "click",
"specs": [
[
"==",
"8.2.0"
]
]
},
{
"name": "build",
"specs": [
[
"==",
"0.10.0"
]
]
},
{
"name": "wheel",
"specs": [
[
"==",
"0.40.0"
]
]
}
],
"lcname": "generatepwd"
}