Skip to main content

A module to handle secrets outside of projects

Project description

Stored Secrets handling module in Python

storedsecrets is a module implementing a simple approach to keep your secrets (API keys, passwords, ...) outside of your project files, so that you can protect them better (e.g. in an encrypted archive, or any form of external volume), and you don't leak them accidentally through your favorite versioning tool and platform.

storedsecrets exposes a StoredSecrets class to handle your secrets.

Typical usage:

>>> import storedsecrets
>>> my_secrets = storedsecrets.StoredSecrets("mysecretfile.json")
>>> API_KEY = my_secrets.get('API_KEY')

If the path of the file is not absolute, it will be searched for in the directory named in env var SECRETS, or in ~/etc/secrets by default.

This is minimalist work for the moment.

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

storedsecrets-0.1.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

storedsecrets-0.1.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file storedsecrets-0.1.2.tar.gz.

File metadata

  • Download URL: storedsecrets-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.12.5 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.6

File hashes

Hashes for storedsecrets-0.1.2.tar.gz
Algorithm Hash digest
SHA256 452327750d643614d93ccdab492bc275079fb92cb9c963a8cbdb15a2a34ca8eb
MD5 f087c38cf126dc445f4180c6fa15d78b
BLAKE2b-256 3961f6d06606b49ef20367d905971a4d5b0f5a3b7e8b46cde1435da30f5a45e7

See more details on using hashes here.

File details

Details for the file storedsecrets-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: storedsecrets-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.12.5 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.6

File hashes

Hashes for storedsecrets-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7be76fd965e4966aba38434b7ef57d903df1c3a0c2135b417dcb685e61f19a79
MD5 50c9bb8bff14b241d585a80a8596dab1
BLAKE2b-256 51e3ec47b26b83ae08f9880b60ac6b84ea4b548733b42d22ba622fe5f6a3a6c3

See more details on using hashes here.

Supported by

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