A simple reader for TOML configuration files.
Project description
A simple reader for configuration file with TOML syntax.
Usage
At first, import the module as follows
from tomler import Config
After that, you can call for the first time the configuration file as follows
config = Config('<path to the configuration file>', [True | False])
The second parameter is optional. It activates (or deactivates) the hot reloading of the configuration file each time a value is accessed.
The class Config implements the singleton pattern.
A value is accessed similarly a dictionary, in particular as follows
val = config["key_1/key_2/.../key_N"]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
tomler-0.1.4-py3.6.egg
(4.6 kB
view details)
File details
Details for the file tomler-0.1.4-py3.6.egg
.
File metadata
- Download URL: tomler-0.1.4-py3.6.egg
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a69c3a807a666d24596b0b372ef28d078c2bba90a235b99cf7ced41ee5260311 |
|
MD5 | ee4cad37d838454b52fdbbfa8edb608b |
|
BLAKE2b-256 | 33245153dbe3714fc6aa65bd1ecdb0d48e34d36b20e20eaea9b5132359038d19 |