pypass-tool
is a Python-based password management utility that allows users to generate random passwords and store them inside a file for easy recall. It will check for password strength and provide options to adjust the length of the password and exclude specific characters. Users can choose to generate passwords using the command line (CLI), a web browser, or a desktop app.
Features | Installation | Build from scratch | Usage | Package Usage | Development | Contributing
- Command-Line Interface (CLI): Default interface for generating and managing passwords from the terminal.
- Desktop GUI: Simple graphical interface using Tkinter for generating passwords on your desktop.
- Web Interface: Web-based interface built with Flask for managing passwords through a browser.
To install pypass-tool
directly from PyPI:
pip install pypass-tool
You can also clone the repository and build the package yourself.
- Clone the repository and navigate to the project directory:
git clone https://github.com/h471x/password_generator.git
cd password_generator
- Build the package:
python setup.py sdist bdist_wheel
- Install the package:
pip install dist/pypass_tool-*.whl
Once the package is installed, you can use the pypass
command with different interfaces:
-
CLI Mode (default):
pypass
-
Desktop GUI Mode:
pypass gui
-
Web Interface Mode:
pypass web
Open your browser and navigate to
http://127.0.0.1:5000
.
You can also use pypass-tool
as a package in your own scripts. Here's an example:
from pypass import PasswordGenerator
def main():
# Create an instance of PasswordGenerator
new_pass = PasswordGenerator()
# Set the desired password length and characters to exclude
new_pass.set_password_length(16)
new_pass.exclude_characters("weak12345")
# Generate the password with the specified settings
password = new_pass.generate_password()
# Get the password strength
strength = new_pass.evaluate_strength(password)
# Print the generated password
print(f"Generated Password : {password}")
# print the password strength
print(f"Password Strength : {strength}")
if __name__ == "__main__":
main()
To modify or extend the functionality, ensure you have the required dependencies installed. You can add new features to the CLI, desktop, or web interface as per the structure.
The required dependencies for the project are listed in setup.py
:
- Flask (for the web interface)
- Tkinter (for the desktop GUI; included with Python)
Install the required dependencies using:
pip install -r requirements.txt
Feel free to fork this repository, open issues, or submit pull requests with improvements or bug fixes.