gamspreprocessor.objectcsv¶
The csv submodule provides function to create and manage the csv files containing addition metadata
for an object (object.csv) and datastreams (datastreams.csv).
The important functions API wise are:
- create_csv_files() - Generate object and datastream CSV files for a project tree
- collect_csv_files - Collect per-object CSV files into a combined XLSX or CSV export
- update_csv_files - Update per-object CSV files from a combined XLSX or CSV export
gamspreprocessor.objectcsv
¶
Public API for working with GAMS object CSV files.
These helpers mirror the CSV-related CLI commands, but are callable directly from Python.
resolve_project_toml
¶
Resolve the project TOML file used by the CSV workflow.
create_csv_files
¶
create_csv_files(projectroot, configfile=None, force_overwrite=False, update=False, use_subjects_as_tags=False)
Generate object and datastream CSV files for a project tree.
collect_csv_data
¶
Collect per-object CSV files into a combined XLSX or CSV export.
update_csv_files
¶
Update per-object CSV files from a combined XLSX or CSV export.
csv_to_xlsx
¶
Convert combined CSV files into one XLSX file.
xlsx_to_csv
¶
Convert one XLSX file into the combined CSV files.