excel-model-runner-0.1.0
توضیحات
Runs an Excel model (.xlsx) with parameters
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | excel-model-runner-0.1.0 |
| نام | excel-model-runner |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Matthew Printz |
| ایمیل نویسنده | matt@jataware.com |
| آدرس صفحه اصلی | https://github.com/dojo-modeling/excel-model-runner |
| آدرس اینترنتی | https://pypi.org/project/excel-model-runner/ |
| مجوز | MIT |
# 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:
<br>
## 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
}
```
<br>
<br>
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
<br>
<br>
## 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)
```
نیازمندی
| مقدار | نام |
|---|---|
| >=8.0.4,<9.0.0 | click |
| >=1.2.2,<2.0.0 | formulas |
| >=3.0.9,<4.0.0 | openpyxl |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl excel-model-runner-0.1.0:
pip install excel-model-runner-0.1.0.whl
نصب پکیج tar.gz excel-model-runner-0.1.0:
pip install excel-model-runner-0.1.0.tar.gz