Configuration loader from a TOML file
Project description
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
settei-0.7.3-py3-none-any.whl
(20.5 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbcf77184829c46442375395ebaefdd9ce9db4ca1e2ed5fc2bea6075ab98b3c9
|
|
| MD5 |
d5533c349e0f98343db846fa5f56efb6
|
|
| BLAKE2b-256 |
9feba7306bfa21ee4a2bd9ab1ff664f114390eb572aec1dc22cb37a76bc318eb
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
339fc77463602e3085bdc2a44ccd252d21d9f6da8c54b8d371d817cc0f9dea9b
|
|
| MD5 |
2da1a78d5cdfcae203bea7ed4fbddd9a
|
|
| BLAKE2b-256 |
10e488e0cbd443c9197ab168d95a822fb81be43ed00a302e8be6ab1f2848d0c5
|