Skip to main content

Very simple password manager for my python projects

Project description

MyPass

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": {
    "password": "myPa$$w0rd"
  },
  "mongo": {
    "password": "mongopass"
  }
}

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

from mypwd import getpwd

login = "jarberan"
password = getpwd("mongo")
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.1.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

mypwd-0.1.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mypwd-0.1.0.tar.gz
  • Upload date:
  • Size: 14.2 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.1.0.tar.gz
Algorithm Hash digest
SHA256 df3591b0a0c99f3f77bf115cf80de9e097d0c91c3bf4ce65030cde83b27bb317
MD5 af21cb07249ec7911b466b02ca2f4986
BLAKE2b-256 200d51b0d636d114c3a076658ce9661a8b43ff15ae41c94576acc2aa48cb28fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mypwd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc869fc83b7ee1d897ee607e571a9765eb34ae7a7619a497e29ec7fff817d7e2
MD5 52d3b8687de71a7e50a9c5e83dbe732d
BLAKE2b-256 61d89f9c1ab88ca7fae4b671e3c895a515db141294e008d112de7923813b69ca

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