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)
Built Distribution
Close
Hashes for ua_stache_api-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98b5798a25b543624168d3d4efa8e95980db87e22e4107895ed6d26ba07b6b88 |
|
MD5 | fea9f6d03d446b8391440a0776284c18 |
|
BLAKE2b-256 | 64c7f0e2acfbdfa53d22677b2e1fc18de79805e1d3fc28ef982baae1b5de08e6 |