Skip to main content

Very simple password manager for my python projects

Project description

MyPwd

Very simple password manager for my python projects.

I often forgot the passwords in my scripts and committed them to the repository. So I created a simple password manager so that it doesn't happen to me anymore.

Usage

Create file mypwd.json with passwords in your home directory. For example C:\Users\jarberan\mypwd.json

{
  "postgres": {
    "login": "john",
    "password": "myPa$$w0rd"
  },
  "mongo": {
    "login": "john",
    "password": "mongopass",
    "note": "Valid until end of month"
  }
}

Now you can access your passwords from python code and you will never commit password anymore.

import mypwd

login = mypwd.get_login("mongo")
password = mypwd.get_pwd("mongo")
note = mypwd.get_value("mongo", "note")

uri = f"mongodb://{login}:{password}@myserver.com/admin?retryWrites=true&w=majority"

Installation

Installation is simple:

pip install mypwd

or

python setup.py install

Contribution

Feel free create issue or pull request.

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

mypwd-0.2.0.tar.gz (14.6 kB view hashes)

Uploaded Source

Built Distribution

mypwd-0.2.0-py3-none-any.whl (14.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page