Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for ua-stache-api, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size ua_stache_api-2.0.0-py3-none-any.whl (3.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size ua_stache_api-2.0.0.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page