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.7.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

settei-0.7.0-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: settei-0.7.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.0

File hashes

Hashes for settei-0.7.0.tar.gz
Algorithm Hash digest
SHA256 4757df5d08205954409d0bd6dd1283e32c9db24b11e6d11e93306d8d3acc81c7
MD5 29aad12d458a4bf4c93a63305e766bdf
BLAKE2b-256 cdcb55a079988be50948d36b41ef497013cf308ee9dfe0144d806fb610d467c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: settei-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.0

File hashes

Hashes for settei-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a9886fb60ff943e1bb54dfa9a33b3b73a787cf29fdb41ef7dae7c04efba64af
MD5 485ccb501a7c3978abc840ca3a1e03a2
BLAKE2b-256 1c5f5f821459fd99239108e9fb7d90c6bdb8bf033f4580fd7f2d014fdf00d0c0

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