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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file mypwd-0.2.0.tar.gz.

File metadata

  • Download URL: mypwd-0.2.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for mypwd-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9d19ba02ce7223d89243978baff84e53fe1e6daad9b3c18d87074a471639fea2
MD5 c3cf570d9fcdfc53b219c1afb590f11c
BLAKE2b-256 23cc0c7f55bdadf02d106f9582042832815c8350b99dca5fd6d7cf732b896b6e

See more details on using hashes here.

File details

Details for the file mypwd-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mypwd-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for mypwd-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 153ac2da05c1bae4d8979280850cc1df8e9efe186af6fffa939c7b0c6050a23b
MD5 2b21611be5ae5ac95fb8e1c7cf2206c3
BLAKE2b-256 aec4e773a437ad7aec457de59b5d75a5c88fe80419b7d8f9e4285a5da67b6724

See more details on using hashes here.

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