File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22This example shows how to load app settings from a TOML file, and from
33environment variables, filtered by "APP_" prefix.
44"""
5+
56from config .common import ConfigurationBuilder
67from config .env import EnvVars
78from config .toml import TOMLFile
Original file line number Diff line number Diff line change 33environment variables, filtered by "APP_" prefix and obtained from a .env file
44(this is optional!), and how values can be overridden.
55"""
6+
67from config .common import ConfigurationBuilder
78from config .env import EnvVars
89from config .json import JSONFile
Original file line number Diff line number Diff line change 22This example illustrates a way to override settings from a common file, using an
33environment specific settings file.
44"""
5+
56import os
67from dataclasses import dataclass
78
Original file line number Diff line number Diff line change 11"""
22This example shows how nested values can be overridden using strings.
33"""
4+
45from config .common import ConfigurationBuilder , MapSource
56
67builder = ConfigurationBuilder (
Original file line number Diff line number Diff line change 22This example shows how to override nested properties using environment
33variables.
44"""
5+
56import os
67
78from config .common import ConfigurationBuilder , MapSource
You can’t perform that action at this time.
0 commit comments