Skip to main content

excel-model-runner

This tool will take an Excel model (.xlsx), update any parameters as defined in the parameters file and calculate all cells, resulting in an Excel spreadsheet resembling the original, but with all formula cells replaced by the calculated values.

The parameter file can be either JSON file or a CSV file in the following format:


Config file

JSON:

{
   "Sheet name.Cell1": "Replacement value string",
   "Sheet name.Cell2": Replacement value float
}

Example: params.json

{
    "Variables.C2": "red",
    "Variables.C3": 0.8
}


CSV:

Sheet name.Cell1,Replacement value string
Sheet name.Cell2,Replacement value float

Example: params.csv

Variables.C2,red
Variables.C3,0.8

NOTE: Do NOT include a header row in the CSV



Usage:

usage: run-excel-model [-h] [--output_dir OUTPUT_DIR] [--run_dir RUN_DIR] source_file parameter_file

positional arguments:
  source_file           Excel (xlsx) file that contains
  parameter_file        Path to json or csv parameter file

optional arguments:
  -h, --help            show this help message and exit
  --output_dir OUTPUT_DIR
                        Optional output location. (Default: output)
  --run_dir RUN_DIR     Optional directory to store intermediate files. (Default: runs)

Metadata

Release files for excel-model-runner 0.1.0

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

Source distribution (sdist)

Source distribution for excel-model-runner 0.1.0
File Size Uploaded
excel-model-runner-0.1.0.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for excel-model-runner 0.1.0
File Interpreter ABI Platform
excel_model_runner-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / excel-model-runner-0.1.0.tar.gz

Download URL excel-model-runner-0.1.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2b81a67ce2f9c2b4e4b5313c43500a9fc4018a7e25efcb15ac6371d9d01d7222
BLAKE2b-256 checksum
How to use checksums
df3e7bb1d2f7a3609e06e570e11f0d9005d959995e9e24e0b8a9e7ccb28c2f19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.7.1 requests/2.27.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / excel_model_runner-0.1.0-py3-none-any.whl

Download URL excel_model_runner-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a981de1014e4e40d94db0bacdde2473d0273e3ae1a80ce6ab501ee61630a6e3c
BLAKE2b-256 checksum
How to use checksums
53e88bf08ef2905ca4d7ec40eea8ce25cc4764236b5345e7d4453af2c2281476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.7.1 requests/2.27.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

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