OverviewΒΆ

The app uses a global config object to keep track of its config settings. See also Config Object.

The app must call make_config() during startup to obtain the config object.

Values come (mostly) from config files and/or the settings table. For more about those see:

Values are always strings in their raw format, as returned by get(). But the config object also has methods to coerce values to various types, e.g.:

The config object is also responsible for creating the app handler:

from wuttjamaican.conf import make_config

config = make_config()
app = config.get_app()

if config.get_bool('foo.bar'):
    print('YES for foo.bar')
else:
    print('NO for foo.bar')

with app.short_session() as session:
    print(session.bind)