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

Uploaded Source

Built Distribution

settei-0.5.4-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: settei-0.5.4.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for settei-0.5.4.tar.gz
Algorithm Hash digest
SHA256 3bb85c15991c958b2ac9073277026a5254500f19e4de62d496abbadcfe73bf49
MD5 9560912bc13e43c3268b1fb48c4717b6
BLAKE2b-256 5dac447b3e33f8c1c31984258438670d1a02dd964de0f45e52d7e734cb8e5a8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: settei-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for settei-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e98ad0b34106b9c910487dec093b073bf0630eda06e7ff694190ada261b357e6
MD5 7c1ffd3b7ad53f209545fb6a984ec629
BLAKE2b-256 f3451ca80dc39287973601b6e3f4ce9586ce7f33e3e23cee1ca43e57488acfc9

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