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

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)

    1. pkg install rust binutils
    1. uv sync

B. Use python-crypography (This is faster but pollutes your local venv with other system site packages.)

    1. pkg install python-crypography
    1. uv venv --system-site-packages
    1. uv sync

uv venv --system-site-packages is a modern alternative to python -m venv .venv --system-site-packages

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.5.tar.gz (3.4 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.5-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dworshak_access-0.1.5.tar.gz
  • Upload date:
  • Size: 3.4 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.5.tar.gz
Algorithm Hash digest
SHA256 e3f226cb111db98dd384a42164341e340e1c6df0b262196061beb48801ca8c21
MD5 ca6aac4194d8d904849fcf1f3c95156f
BLAKE2b-256 ef6b00691c77973c0c9223709b3e26b417b81d2a9b6b296a2b31ba8fd70aa654

See more details on using hashes here.

Provenance

The following attestation bundles were made for dworshak_access-0.1.5.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.5-py3-none-any.whl.

File metadata

File hashes

Hashes for dworshak_access-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c49a6ee46fcc52e4e20c0057f0770c93a2e180e88d534985392bc804c394a7f5
MD5 554625379bf55caf8121d68f8d5df707
BLAKE2b-256 6717e7dc31a1221148a236b3a7ca49c4dfbbdfd10a1df8dee58a21e40b28537f

See more details on using hashes here.

Provenance

The following attestation bundles were made for dworshak_access-0.1.5-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