Skip to main content

A modular and typed yaml configuration system for python with easy secret support

Project description

A modular and typed yaml configuration system for python with easy secret support

Install

pip install buoyant.config or uv add buoyant.config

Example Usage

from typing import Annotated, Literal

from buoyant.config import ModularConfig

class ConfigBase(ModularConfig):
    CONFIG_PATH = "settings.test.yaml"
    CONFIG_PATH_FROM_ENV_VAR = "SETTINGS_PATH"


class LoggingConfig(ConfigBase):
    CONFIG_SECTION = "logging"
    level: Literal["info", "warning", "error"]


from buoyant.config.annotations.gsm import gsm_secret

class BackendConfig(ConfigBase):
    CONFIG_SECTION = "server"
    host: str
    api_key: Annotated[str, gsm_secret(project="buoyant-open-projects")]

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

buoyant_config-0.7.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

buoyant_config-0.7.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file buoyant_config-0.7.0.tar.gz.

File metadata

  • Download URL: buoyant_config-0.7.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for buoyant_config-0.7.0.tar.gz
Algorithm Hash digest
SHA256 c1dfd3d4f5d31d7f561dfe604e5fe5a010cafd44a5d8f526c205c8bc9ec20aeb
MD5 3a2b26b3badd6992cb097142090a90e1
BLAKE2b-256 5d06b5bdd00d5e29131e986cd059d21529d6f6827d39537bc26c559ba7f877fe

See more details on using hashes here.

File details

Details for the file buoyant_config-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: buoyant_config-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for buoyant_config-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3c1cad39208145dbdbd5be0f22beb87fcc90483853e6a39b71da6c04679b586
MD5 4792b587e298a3101a4b7280863dfa48
BLAKE2b-256 af454e1b0b69236bca95a2884045d1608ecf0a883089af5800ad19a19c72180c

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