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.dev0.tar.gz (1.2 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.dev0-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shhh-0.0.0.dev0.tar.gz
  • Upload date:
  • Size: 1.2 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.dev0.tar.gz
Algorithm Hash digest
SHA256 b176bb4779265e292b66369f30a6c9c2a9813587524f7f4cd8746b36b18fd27c
MD5 cb54c7c42015fb913eea96208c739119
BLAKE2b-256 ca61e381a0e57177e8464346fad9dcbf0eeefd6fddbdc1faf2bad2da11e31a0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shhh-0.0.0.dev0-py3-none-any.whl
  • Upload date:
  • Size: 1.7 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.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 c378deda3cc9112758a0c4e687fb6c746e473f4a7bdb68f2e76ace2d39c81d52
MD5 9544d714322266df08395f4118755db1
BLAKE2b-256 4522ae818ed0a16cc45d2c6d6803e2bc454c0198b012e3ce19777220af6cdd22

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