Quick StartΒΆ

Install with:

pip install wuttjamaican

Create a config file, e.g. my.conf:

[foo]
bar = A
baz = 2
feature = true
words = the quick brown fox

In your app, load the config and reference its values as needed:

from wuttjamaican.conf import make_config

config = make_config('/path/to/my.conf')

# this call..                        ..returns this value

config.get('foo.bar')                # 'A'

config.get('foo.baz')                # '2'
config.get_int('foo.baz')            # 2

config.get('foo.feature')            # 'true'
config.get_bool('foo.feature')       # True

config.get('foo.words')              # 'the quick brown fox'
config.get_list('foo.words')         # ['the', 'quick', 'brown', 'fox']

For more info see:

You can also define your own command line interface; see:

  • Command

  • Subcommand