Skip to main content

Allows the caller to easily get 'secret' information from stache entries at [https://stache.arizona.edu].

Project description

UA-Stache-API

Allows the caller to easily get "secret" information from stache entries at [https://stache.arizona.edu].

Motivation

To make a python API that could generically get information from stache.

Code Example

from ua_stache_api import ua_stache_api


key, url = ua_stache_api.get_entry(file_name)
ua_stache_api.auth(key, url)

Where file_name is the name of file with content such as:

{
    "X-STACHE-READ-KEY": "stache_read_key",
    "endpoint": "stache_endpoint"
}

stache secret must be a JSON-able dictionary that can be nested.

Installation

pip install --user ua-stache-api

Tests

cd ./ua_stache_api/tests nosetests ./test_ua_stache_api.py

Credits

sterns1 raflopjr RyanJohannesBland

License

MIT

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

ua_stache_api-2.0.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

ua_stache_api-2.0.1-py3-none-any.whl (3.5 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