TOML config files which can be merged and have calculated values.
Project description
configcalc
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.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file configcalc-0.1.3.tar.gz.
File metadata
- Download URL: configcalc-0.1.3.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa67c1ddacf704f546bc90c5e4110c0303bfa9422b566674b7a0d6b058e24a7a
|
|
| MD5 |
36f38e34580fe4030e6e5317b37cfda9
|
|
| BLAKE2b-256 |
0f0c90c8b6a603e37cfcc9570795457bae57c05ca7dd7aabec65cdd928d44c9d
|
Provenance
The following attestation bundles were made for configcalc-0.1.3.tar.gz:
Publisher:
python-publish.yml on raphaelproux/configcalc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
configcalc-0.1.3.tar.gz -
Subject digest:
fa67c1ddacf704f546bc90c5e4110c0303bfa9422b566674b7a0d6b058e24a7a - Sigstore transparency entry: 187417228
- Sigstore integration time:
-
Permalink:
raphaelproux/configcalc@ee43826a3fcdf44ca219097ef780198f829e0f4d -
Branch / Tag:
refs/pull/4/merge - Owner: https://github.com/raphaelproux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d2d0fbc6a4090b559c2fffeee595745b86855ee5 -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file configcalc-0.1.3-py3-none-any.whl.
File metadata
- Download URL: configcalc-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e25f9727eb4cd0cfcd8318b1ebfb7af18579f8952ad9dabb307a775d90af92dc
|
|
| MD5 |
28ca7eac524e81a46582c1cba976bfd6
|
|
| BLAKE2b-256 |
91272115d1834ed5e6229e1f188eb97dda8fd5a6e7c22ed7040adfc0d761da85
|
Provenance
The following attestation bundles were made for configcalc-0.1.3-py3-none-any.whl:
Publisher:
python-publish.yml on raphaelproux/configcalc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
configcalc-0.1.3-py3-none-any.whl -
Subject digest:
e25f9727eb4cd0cfcd8318b1ebfb7af18579f8952ad9dabb307a775d90af92dc - Sigstore transparency entry: 187417240
- Sigstore integration time:
-
Permalink:
raphaelproux/configcalc@ee43826a3fcdf44ca219097ef780198f829e0f4d -
Branch / Tag:
refs/pull/4/merge - Owner: https://github.com/raphaelproux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d2d0fbc6a4090b559c2fffeee595745b86855ee5 -
Trigger Event:
pull_request
-
Statement type: