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.3-py3.6.egg
(6.8 kB
view hashes)