Skip to main content

**dworshak-access** is a lightweight library. 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 lightweight library.

Purpose

Allow a program 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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dworshak_access-0.1.7.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dworshak_access-0.1.7-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file dworshak_access-0.1.7.tar.gz.

File metadata

  • Download URL: dworshak_access-0.1.7.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dworshak_access-0.1.7.tar.gz
Algorithm Hash digest
SHA256 c9c63f13b7c22d1272f8c3effb16333244f8bb6ea33df6c39fb1f6de963315ed
MD5 5a24cbd864def71f402642892556c299
BLAKE2b-256 c26097cac540aac337ca87a0260625af8c4f13f8f4ef8e232cd4523b74295e9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dworshak_access-0.1.7.tar.gz:

Publisher: publish.yml on City-of-Memphis-Wastewater/dworshak-access

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dworshak_access-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for dworshak_access-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a1dee58562ce695264e3fb98310cd67eee698ddd6403b671ea3608c895ca8d6a
MD5 7ffa2693486ae20b8b5986bd2db7f935
BLAKE2b-256 fb0979faefcbc053e613fd17928d50e182f452760259fdad86e52bd4a829cf06

See more details on using hashes here.

Provenance

The following attestation bundles were made for dworshak_access-0.1.7-py3-none-any.whl:

Publisher: publish.yml on City-of-Memphis-Wastewater/dworshak-access

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page