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

Uploaded Source

Built Distributions

settei-0.5.2-py3.7.egg (40.7 kB view details)

Uploaded Source

settei-0.5.2-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: settei-0.5.2.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for settei-0.5.2.tar.gz
Algorithm Hash digest
SHA256 bd79966872fa66327c34f86e9301023377ea991820b1a227e6e91cf3b66a93ec
MD5 9e5993183f0761364c8cafe532640bc5
BLAKE2b-256 8e4eecaa32b838664d19da6b29f19a7c471f5848aa851f33844e576e9fbedbff

See more details on using hashes here.

File details

Details for the file settei-0.5.2-py3.7.egg.

File metadata

  • Download URL: settei-0.5.2-py3.7.egg
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for settei-0.5.2-py3.7.egg
Algorithm Hash digest
SHA256 9748277fb54b40479bd3ab4f91c966e46707e856b6425622d82b299fc7d03a6e
MD5 3638339524effabcf828149714394fb4
BLAKE2b-256 42051810027e264befe6456c2526405c0981dbc61c74373e0522781c068122f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: settei-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for settei-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a98e413b50dcf90721e89b25014850613fb84fc0515df5ee1ae0df5af6842ab7
MD5 a81d69e4f933790827ddcb853a293d6f
BLAKE2b-256 0d550b9be1a465a348e8d23747de6c05da46b1c07a7249aff2b90960f86098f4

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