Skip to main content

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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page