Skip to main content

Decouple config with support for secrets directory (e.g., Docker secrets)

Project description

Decouplet

  • A tiny wrapper around python-decouple that adds support for reading secrets from a directory (like Docker secrets).

Usage

from decouplet import config

DATABASE_PASSWORD = config("DATABASE_PASSWORD")

By default, it looks in /run/secrets/. Set SECRETS_PATH environment variable to override.

Secret have biggest priority than .env and environment variables.

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

decouplet-0.2.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

decouplet-0.2.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file decouplet-0.2.0.tar.gz.

File metadata

  • Download URL: decouplet-0.2.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for decouplet-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c7d659c51b05fbb2e3ac613b236776b16e2b714bc1a84701d19692e4e66e1e9a
MD5 8ec46b0e834d26731091f899b40faf0c
BLAKE2b-256 ad16a03b12b61c8a6e5b329ea24ab52ddcd424a1c425a94fdf078182964c484f

See more details on using hashes here.

File details

Details for the file decouplet-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: decouplet-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for decouplet-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd5a13ff6660ad1a5c683ea48889a76ff367a0cf22e9631b0bf2aa4e4b876601
MD5 d345a147e82cfb0774c170101cc14a55
BLAKE2b-256 8fc1f6ef098ec99963ef44d283411a5bf081bbc01c6134f61a2062c8e74a047f

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