A simple Python-based password management tool that allows users to store, update, and copy passwords to the clipboard. Passwords are stored using Python’s built-in shelve module, enabling persistent storage between sessions.
-
Install Python (if not already installed) and ensure the following modules are available:
pyperclipshelve(comes with Python by default)
You can install
pyperclipusing:pip install pyperclip
-
Place the script in a folder of your choice, for example:
C:\Users\YourName\PasswordManager -
(Optional) Add the script’s directory to the system
PATHto run it from anywhere:- Press
Startand search for:Edit environment variables for your account. - Under System variables, find the
Pathvariable and click Edit. - Click New, then paste the folder path (e.g.,
C:\Users\YourName\PasswordManager). - Click OK to save.
- Press
You can run the script in two ways:
- Press
Win + Rto open the Run dialog and typepm - Or, run it from the Command Prompt
If no argument or more than one argument is passed:
pmThe program displays a menu with options to:
- Update a password
- Copy a password
To add or update a password, run:
pm updateYou’ll be prompted to enter the account name and password.
To copy a password to the clipboard, run:
pm accountNameIf the account name exists in the stored data, its password will be automatically copied to your clipboard.
Passwords are not encrypted. The stored data is readable by any Python script with access to the same shelve file. Use with caution and avoid storing sensitive credentials without proper encryption.