Configuration loader from a TOML file
Project description
Configuration utility for common Python applications and services. FYI, “settei” (設定) means settings in Japanese. :)
Loading a configuration is easy
Suppose you use Flask with Settei.
from flask import Flask from settei import Configuration, config_property class WebConfiguration(Configuration): """Load Configuration:: [web] debug = true """ #: debug option debug = config_property('web.debug', bool, default=False) conf = WebConfiguration.from_path(pathlib.Path('.') / 'dev.toml') app = Flask(__name__) if __name__ == '__main__': app.run(debug=conf.debug)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size settei-0.7.3-py3-none-any.whl (20.5 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size settei-0.7.3.tar.gz (20.4 kB) | File type Source | Python version None | Upload date | Hashes View |