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 python -m nose ./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
Built Distribution
File details
Details for the file ua_stache_api-2.1.1.tar.gz
.
File metadata
- Download URL: ua_stache_api-2.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af15c0998adfb1dc15831e441ea721fb92d1561f6470da1e4eeef11d35334b48 |
|
MD5 | 0e3b388a94c657b4881606d1fd3920b8 |
|
BLAKE2b-256 | 3b7da9085f92a6839b1bb104115c63439acecc5ef7932d5a69344ab81069b9f7 |
File details
Details for the file ua_stache_api-2.1.1-py3-none-any.whl
.
File metadata
- Download URL: ua_stache_api-2.1.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffe060b7b6ab8b94c9168d8b1b18453407632067591080baf3c9fe1e8136d80d |
|
MD5 | b0da60904305dd239e8f3c90ef4b21f9 |
|
BLAKE2b-256 | 1674631ab934325f1e8643fe7736075f6c3959985b1e26487e7e22e992374b2c |