Module gamslib.objectcsv
Tools for managing object and datastream metadata in CSV files for GAMS projects.
This package provides utilities to read, write, validate, and manipulate metadata stored in
object.csv and datastreams.csv files, which accompany GAMS bags but are not part of the
bag itself.
Main components:
- ObjectCSVManager: Manages metadata for a single object and its datastreams. Handles reading, writing, validating, merging, and updating CSV files.
- ObjectCollection: Aggregates metadata from multiple objects into a single CSV file and distributes updates back to individual object directories. Useful for batch editing and synchronization.
- dublincore: Functions for accessing and processing Dublin Core metadata from 'DC.xml' files, including language preference utilities.
- create_csv: Initializes CSV files for all objects in a project.
- manage_csv: Collects metadata from all objects into a single CSV for efficient editing, and updates individual object directories from the aggregated data.
- xlsx: Converts CSV files to XLSX format and vice versa, enabling spreadsheet-based editing and avoiding encoding issues common with CSV imports/exports.
Sub-modules
gamslib.objectcsv.create_csv-
Create object.csv and datastreams.csv files for GAMS objects …
gamslib.objectcsv.defaultvalues-
Default values and namespaces for datastream metadata in GAMS projects …
gamslib.objectcsv.dsdata-
Datastream metadata model for GAMS object CSV files …
gamslib.objectcsv.dublincore-
Dublin Core metadata access for GAMS objects …
gamslib.objectcsv.exceptions-
Custom exceptions for the GAMSlib object CSV module …
gamslib.objectcsv.manage_csv-
Functions to collect and update object and datastream CSV files for GAMS projects …
gamslib.objectcsv.objectcollection-
Aggregate and manage CSV/XLSX metadata for multiple GAMS objects …
gamslib.objectcsv.objectcsvmanager-
Manage CSV metadata for GAMS objects and their datastreams …
gamslib.objectcsv.objectdata-
CSV data model for a single GAMS object …
gamslib.objectcsv.utils-
Utility functions for the objectcsv module …
gamslib.objectcsv.xlsx-
Utilities to convert object and datastream CSV files to XLSX format and back …