This is a simple command-line password manager built using Python and SQLAlchemy. It allows users to create accounts, store passwords, view stored passwords, remove passwords, and manage account credentials in a secure manner.
- Create Account: Add a new account to the password manager.
- Add Password: Store a password for a specific account.
- List Passwords: View all stored passwords (for demonstration purposes, ideally, you'd secure this).
- Remove Password: Delete a stored password for a specific account.
- Retrieve Password: Retrieve a password for a specific account.
- Python 3.x
- SQLAlchemy (for database management)
- Click (for CLI commands)
-
Clone the repository:
git clone https://github.com/yourusername/password-manager-cli.git cd password-manager-cli -
Create a virtual environment (optional but recommended):
Copy
python3 -m venv venv- Install dependencies
Copy
pip install -r requirements.txt
Ensure you have the necessary dependencies installed for this project: Copy
click==8.0.3
sqlalchemy==1.4.23
The following commands are available:
- Create a New Account
- To create a new account in the password manager:
Copy
python password_manager.py add-account <account_name>
Example: Copy
python password_manager.py add-account example_account- Add a Password to an Account
- To add a password to an existing account:
Copy
python password_manager.py add-password-cli <account_name> <password> Copy
python password_manager.py add-password-cli example_account MySuperSecretPassword- List All Passwords
- To view all passwords stored in the password manager:
Copy
python password_manager.py list-passwords- Remove a Password
- To remove a stored password for a specific account:
Copy
python password_manager.py remove-password <account_name>- Retrieve a Password
- To retrieve the password for a specific account:
Copy
python password_manager.py get-password <account_name>- requirements.txt # Contains your project dependencies
- README.md # Project description and instructions
- main.py # Main entry point for the CLI application
- model.py # Contains your ORM models and database-related code
Distributed under MIT License
Emmanuel Njeru - Gmail