Skip to main content

Oathkeeper Package

Project description

Oathkeeper

Created for internal Greendeck use only. Can be used for non-commercial purposes.

Greendeck oathkeeper

A simple library to keeps and maintains all your secret keys, API keys, connection strings and environment variables in a safe place for you to use. Just like Ser Jamie kept his oaths.

You don't need to worry about deployment or maintenance. All you need:

  1. Install the Library
  2. Signup on oathkeeper.greendeck.co or contact developers@greendeck.co

About Oathkeeper

Oathkeeper is your omnipresent dictionary of key value pairs. Think of Oathkeeper as remote JSON object. It is compatible with all JSON serializable data-types.

Install from pip

https://pypi.org/project/oathkeeper/

pip install oathkeeper

How to use ?

import Oathkeeper class
from oathkeeper import Oathkeeper
initialize Oathkeeper client connection as per your requirements
# declare variables
oathkeeper_EMAIL = <YOUR_oathkeeper_EMAIL> # signup here: oathkeeper.greendeck.co
oathkeeper_PASSWORD = <YOUR_oathkeeper_EMAIL> # signup here: oathkeeper.greendeck.co
oathkeeper_ENV = <YOUR_oathkeeper_ENV> # This can be a string; for example, "production", "testing", "staging" etc.
# The default values are oathkeeper_ENV='default'

# Now initialize the Oathkeeper Object
oathkeeper = Oathkeeper(oathkeeper_EMAIL, oathkeeper_PASSWORD, oathkeeper_ENV)
using Oathkeeper

Once, you have the Oathkeeper object for a particular environment. You can set or save key value pairs and get values for any key in that particular environment.

oathkeeper.get(key) # will return the value for the key in your Oathkeeper object. The key needs to be present.
oathkeeper.set(key, value) # will set the key to the provided value in your Oathkeeper object.

How to build your pip package

In the parent directory

  • python setup.py sdist bdist_wheel
  • twine upload dist/*

references

Thank You

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

oathkeeper-0.0.7.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file oathkeeper-0.0.7.tar.gz.

File metadata

  • Download URL: oathkeeper-0.0.7.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for oathkeeper-0.0.7.tar.gz
Algorithm Hash digest
SHA256 31b147cdb1d5fa8d2e677256663e07c5a5a5c51d5630ad52b1e870d79f519d7c
MD5 2eba706db17dc258c2c883ca767cfe39
BLAKE2b-256 543002ee5a27e13f94143f5485faf6330c6f0ead67eee087081b95297b37433a

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