Skip to main content

Simple environment secret accessor for Python.

Project description

Shhh

Shhh is a dead simple secret accessor, that retrieves environment secrets, and secrets from files.

Installation

To install Shhh, use:

pip install shhh

With Poetry, do:

poetry add shhh

Usage

The only function is Shhh is get_secret. It returns an environment variable, unless a file exists on path provided in XXX_FILE variable. For example:

username: str = get_secret("APP_USERNAME")

Shhh searches for a file on path provided in APP_USERNAME_FILE variable and, if it exists, returns its content. Otherwise, returns the value of APP_USERNAME variable.

License

Shhh is licensed under MIT.


Copyright (c) 2026 Anatoly Frolov (anafro). All Rights Reserved.
contact@anafro.ru

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

shhh-0.0.0.dev1.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

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

shhh-0.0.0.dev1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file shhh-0.0.0.dev1.tar.gz.

File metadata

  • Download URL: shhh-0.0.0.dev1.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.2 Linux/6.18.7-arch1-1

File hashes

Hashes for shhh-0.0.0.dev1.tar.gz
Algorithm Hash digest
SHA256 0b65b3fbaf5435d4920c9e990178b99cc41fdde4439c2172c5aabaf07d2380eb
MD5 6ecd4e86a0879c256f17c76d4de6a731
BLAKE2b-256 07ebcaee094c907c65519c6b655955d2f8dad1061c5c3e0154868a22a13f27bc

See more details on using hashes here.

File details

Details for the file shhh-0.0.0.dev1-py3-none-any.whl.

File metadata

  • Download URL: shhh-0.0.0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.2 Linux/6.18.7-arch1-1

File hashes

Hashes for shhh-0.0.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 7814fd6891ca9a033c3e20215731c2c8a4e82f587ba76e32467d44c00038819a
MD5 5e71d642ad763b913e0b510270cce150
BLAKE2b-256 2b0c8063f0b32a072c2d36f6d99f77ce557dadc0e30acd28e8aae0f05fc3ab2f

See more details on using hashes here.

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