Skip to main content

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.

Metadata

Release files for configcalc 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for configcalc 0.1.3
File Size Uploaded
configcalc-0.1.3.tar.gz 16.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for configcalc 0.1.3
File Interpreter ABI Platform
configcalc-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 24.1 kB

Release files / configcalc-0.1.3.tar.gz

Download URL configcalc-0.1.3.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fa67c1ddacf704f546bc90c5e4110c0303bfa9422b566674b7a0d6b058e24a7a
BLAKE2b-256 checksum
How to use checksums
0f0c90c8b6a603e37cfcc9570795457bae57c05ca7dd7aabec65cdd928d44c9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 24, 2025.

Transparency log

Release files / configcalc-0.1.3-py3-none-any.whl

Download URL configcalc-0.1.3-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e25f9727eb4cd0cfcd8318b1ebfb7af18579f8952ad9dabb307a775d90af92dc
BLAKE2b-256 checksum
How to use checksums
91272115d1834ed5e6229e1f188eb97dda8fd5a6e7c22ed7040adfc0d761da85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 24, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page