Skip to main content

TOML config files which can be merged and have calculated values.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

configcalc-0.1.3.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

configcalc-0.1.3-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

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

Hashes for configcalc-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fa67c1ddacf704f546bc90c5e4110c0303bfa9422b566674b7a0d6b058e24a7a
MD5 36f38e34580fe4030e6e5317b37cfda9
BLAKE2b-256 0f0c90c8b6a603e37cfcc9570795457bae57c05ca7dd7aabec65cdd928d44c9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for configcalc-0.1.3.tar.gz:

Publisher: python-publish.yml on raphaelproux/configcalc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for configcalc-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e25f9727eb4cd0cfcd8318b1ebfb7af18579f8952ad9dabb307a775d90af92dc
MD5 28ca7eac524e81a46582c1cba976bfd6
BLAKE2b-256 91272115d1834ed5e6229e1f188eb97dda8fd5a6e7c22ed7040adfc0d761da85

See more details on using hashes here.

Provenance

The following attestation bundles were made for configcalc-0.1.3-py3-none-any.whl:

Publisher: python-publish.yml on raphaelproux/configcalc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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