Skip to content

raphaelproux/configcalc

Repository files navigation

configcalc

PyPI - Version PyPI - Python Version


Configcalc is a library to handle TOML configuration files with formulas. Formulas can make simple operations between variables contained in other parts of the configuration or given by the user at runtime.

Documentation

Table of Contents

Installation

pip install configcalc

Usage

import configcalc as cc
config1 = cc.read_config_file(Path(r"path/to/config_file1.toml"))
config2 = cc.read_config_file(Path(r"path/to/config_file2.toml"))
merged_config = cc.merge_configs(config1, config2)
calculated_config = cc.perform_calculations(
        config=config,
    )

License

configcalc is distributed under the terms of the MIT license.

About

Package to make config files with embedded calculations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors