settei 0.7.3
pip install settei
Latest version
Released:
Configuration loader from a TOML file
Navigation
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache 2.0)
- Author: Spoqa Creators
- Requires: Python >=3.4.0
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
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
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache 2.0)
- Author: Spoqa Creators
- Requires: Python >=3.4.0
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
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
Built Distribution
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 |