**dworshak-access** is a light-weight library for local credential access. It exposes the **get_secret()** function, to allow a program to leverage credentials that have been established using the Drowshak CLI tool, which is a separate package.
Project description
dworshak-access is a light-weight library for local credential access. By adding dworshak-access as a dependency to your Python project, you enable your program or script to leverage credentials that have been established using the Drowshak CLI tool, which is a separate package.
Functions exposed in dworshak-access:
- check_vault() # For troubleshooting automated testing.
- get_secret() # The meat and potatoes.
Example
uv add dworshak-access
from dworshak_access import get_secret
service_name = "MyThirdFavoriteAPI"
item_id_u = "username"
item_id_p = "password"
un = get_secret(service_name,item_id_u)
pw = get_secret(service_name,item_id_p)
# Then use these in your program
Cryptography Library (When Building dworshak-access From Source or When Using It A Dependency in Your Project)
The only external Python library used is crytography, for the Fernet class.
On a Termux system, cryptography can (A) be built from source or (B) the precompiled python-crytography dedicated Termux package can be used.
A. Allow cryptography to build from source (uv is better at this compared to using pip)
pkg install rust binutils
uv sync
B. Use python-cryptography (This is faster but pollutes your local venv with other system site packages.)
pkg install python-cryptography
uv venv --system-site-packages
uv sync
uv venv --system-site-packages is a modern,faster alternative to python -m venv .venv --system-site-packages.
Because uv manages the build-time dependencies (setuptools-rust and cffi) in an isolated environment and coordinates the hand-off to the Rust compiler more robustly than pip, it is the recommended way to install cryptography from source on Termux.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dworshak_access-0.1.11.tar.gz.
File metadata
- Download URL: dworshak_access-0.1.11.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3df441e41fa23e2b7b32dda82e06a5a1b937de6da81e6cca4e402380ab2bcae7
|
|
| MD5 |
f89d120fc006f31e6a019933e8dfe394
|
|
| BLAKE2b-256 |
a9409687b33e8e78d669f29a428a68aa6b2133d44a94b8f470c831ffe0d71f2f
|
Provenance
The following attestation bundles were made for dworshak_access-0.1.11.tar.gz:
Publisher:
publish.yml on City-of-Memphis-Wastewater/dworshak-access
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dworshak_access-0.1.11.tar.gz -
Subject digest:
3df441e41fa23e2b7b32dda82e06a5a1b937de6da81e6cca4e402380ab2bcae7 - Sigstore transparency entry: 805352712
- Sigstore integration time:
-
Permalink:
City-of-Memphis-Wastewater/dworshak-access@08623ccbff9f57fb1182c7a554ab7e3dc3dc1c1c -
Branch / Tag:
refs/tags/v0.1.11 - Owner: https://github.com/City-of-Memphis-Wastewater
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@08623ccbff9f57fb1182c7a554ab7e3dc3dc1c1c -
Trigger Event:
release
-
Statement type:
File details
Details for the file dworshak_access-0.1.11-py3-none-any.whl.
File metadata
- Download URL: dworshak_access-0.1.11-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
506a031f27da8243b09cff20c2f99c9ac93a6ef6753fee674ed9244ce93b3372
|
|
| MD5 |
7380afc59064442ef0aa56c4b6febd87
|
|
| BLAKE2b-256 |
62ad5f0b06e2b27be13659b071199a355f57f27b54c0e9895b137da31b60581e
|
Provenance
The following attestation bundles were made for dworshak_access-0.1.11-py3-none-any.whl:
Publisher:
publish.yml on City-of-Memphis-Wastewater/dworshak-access
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dworshak_access-0.1.11-py3-none-any.whl -
Subject digest:
506a031f27da8243b09cff20c2f99c9ac93a6ef6753fee674ed9244ce93b3372 - Sigstore transparency entry: 805352716
- Sigstore integration time:
-
Permalink:
City-of-Memphis-Wastewater/dworshak-access@08623ccbff9f57fb1182c7a554ab7e3dc3dc1c1c -
Branch / Tag:
refs/tags/v0.1.11 - Owner: https://github.com/City-of-Memphis-Wastewater
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@08623ccbff9f57fb1182c7a554ab7e3dc3dc1c1c -
Trigger Event:
release
-
Statement type: