Skip to main content

Runs an Excel model (.xlsx) with parameters

Project description

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)

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

excel-model-runner-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

excel_model_runner-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file excel-model-runner-0.1.0.tar.gz.

File metadata

  • Download URL: excel-model-runner-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for excel-model-runner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2b81a67ce2f9c2b4e4b5313c43500a9fc4018a7e25efcb15ac6371d9d01d7222
MD5 4455448bf1ab9e62067bbcd043e94e50
BLAKE2b-256 df3e7bb1d2f7a3609e06e570e11f0d9005d959995e9e24e0b8a9e7ccb28c2f19

See more details on using hashes here.

File details

Details for the file excel_model_runner-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: excel_model_runner-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for excel_model_runner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a981de1014e4e40d94db0bacdde2473d0273e3ae1a80ce6ab501ee61630a6e3c
MD5 f96a609d584afad661bb4b692bcd986f
BLAKE2b-256 53e88bf08ef2905ca4d7ec40eea8ce25cc4764236b5345e7d4453af2c2281476

See more details on using hashes here.

Supported by

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