Skip to content

DrugoLebowski/tomler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOMLer

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"]

About

A simple reader for TOML configuration files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages