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
Metadata
Release files for ua-stache-api 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ua_stache_api-2.1.1.tar.gz | 3.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ua_stache_api-2.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / ua_stache_api-2.1.1.tar.gz
| Download URL | ua_stache_api-2.1.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af15c0998adfb1dc15831e441ea721fb92d1561f6470da1e4eeef11d35334b48
|
|
BLAKE2b-256 checksum How to use checksums |
3b7da9085f92a6839b1bb104115c63439acecc5ef7932d5a69344ab81069b9f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.5 Darwin/21.6.0
|
Release files / ua_stache_api-2.1.1-py3-none-any.whl
| Download URL | ua_stache_api-2.1.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ffe060b7b6ab8b94c9168d8b1b18453407632067591080baf3c9fe1e8136d80d
|
|
BLAKE2b-256 checksum How to use checksums |
1674631ab934325f1e8643fe7736075f6c3959985b1e26487e7e22e992374b2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.5 Darwin/21.6.0
|
Security for ua-stache-api 2.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.