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

Uploaded Source

Built Distribution

settei-0.7.3-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: settei-0.7.3.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

File hashes

Hashes for settei-0.7.3.tar.gz
Algorithm Hash digest
SHA256 fbcf77184829c46442375395ebaefdd9ce9db4ca1e2ed5fc2bea6075ab98b3c9
MD5 d5533c349e0f98343db846fa5f56efb6
BLAKE2b-256 9feba7306bfa21ee4a2bd9ab1ff664f114390eb572aec1dc22cb37a76bc318eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: settei-0.7.3-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

File hashes

Hashes for settei-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 339fc77463602e3085bdc2a44ccd252d21d9f6da8c54b8d371d817cc0f9dea9b
MD5 2da1a78d5cdfcae203bea7ed4fbddd9a
BLAKE2b-256 10e488e0cbd443c9197ab168d95a822fb81be43ed00a302e8be6ab1f2848d0c5

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