Skip to main content

Configuration loader from a TOML file

Project description

Documentation Status https://badge.fury.io/py/settei.svg https://travis-ci.org/spoqa/settei.svg

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

settei-0.2.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

settei-0.2.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file settei-0.2.0.tar.gz.

File metadata

  • Download URL: settei-0.2.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for settei-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8dd8827a6a1003535bc2562e46910e7d185e0e5d4c776ac629fdbe8e1d048f57
MD5 5b196b192b5a3b78241b6d8533b3c302
BLAKE2b-256 81efc0e56555fd431d016c9c8f93b375e0e2ed2320126c0476fd5450d7789a44

See more details on using hashes here.

File details

Details for the file settei-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for settei-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b590b8a61c74f7bb0c079180005d6fdf824cd43cf68b375703b64410a23db26
MD5 fe2185ee1e07194d96c48b7a7fb1c896
BLAKE2b-256 0f6d065cfa49e8c8e8c3ac8e14eef0f502e10e04004d78b1164c50b58f262da1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page