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.2.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.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: decouplet-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 66e86b29561af5c10e2e2e933c933817623c174dc28958a06b6c2a361bf7a3c3
MD5 a58e776fe7256a567a12881a45aa3fdd
BLAKE2b-256 cc85460bec4899be9a704beb5084db4c51b453170764ed2186402c6e37c6a66a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: decouplet-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c69eef5307747456f6c7a8b6d4c6f6826e6aea0516083e64f532e15ad86361b4
MD5 8a4da646623788fee050b9533ceb6e88
BLAKE2b-256 abe668e2d1415efafe78b455eca0069cf8fa6304773a17475c5a10ef3fac0fa3

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