skip to navigation
skip to content

settei 0.5.0

Configuration loader from a TOML file

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)
 
File Type Py Version Uploaded on Size
settei-0.5.0-py3-none-any.whl (md5, pgp) Python Wheel 3.6 2017-07-24 16KB
settei-0.5.0.tar.gz (md5, pgp) Source 2017-07-24 12KB