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

Uploaded Source

Built Distribution

settei-0.6.0-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: settei-0.6.0.tar.gz
  • Upload date:
  • Size: 17.9 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.6.0.tar.gz
Algorithm Hash digest
SHA256 5436dd0ab9ff5043778340b51e04beddfc4bb6854223c8c6371239f3c461f735
MD5 526360474b49601aa26a6aca82997638
BLAKE2b-256 4be71748907cdf2ab59c14a4b2bd332469f00d910ed3de91c14a4321b1587415

See more details on using hashes here.

File details

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

File metadata

  • Download URL: settei-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 25.7 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 168d750317e03dc72810730cd5bb4b6897bd79ed2778b92b86098e3d87c40280
MD5 0ed554d0beb376c10409c4d66725f055
BLAKE2b-256 ba306a3c9d21606ec2cdec92eae96868219e9659e0f8a400c6f546e1ebe8dd43

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