Settei
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)
Metadata
Release files for settei 0.7.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| settei-0.7.3.tar.gz | 20.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| settei-0.7.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.0 kB
Release files / settei-0.7.3.tar.gz
| Download URL | settei-0.7.3.tar.gz |
|---|---|
| Size | 20.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbcf77184829c46442375395ebaefdd9ce9db4ca1e2ed5fc2bea6075ab98b3c9
|
|
BLAKE2b-256 checksum How to use checksums |
9feba7306bfa21ee4a2bd9ab1ff664f114390eb572aec1dc22cb37a76bc318eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / settei-0.7.3-py3-none-any.whl
| Download URL | settei-0.7.3-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
339fc77463602e3085bdc2a44ccd252d21d9f6da8c54b8d371d817cc0f9dea9b
|
|
BLAKE2b-256 checksum How to use checksums |
10e488e0cbd443c9197ab168d95a822fb81be43ed00a302e8be6ab1f2848d0c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|