Metadata-Version: 2.4
Name: cimhub_gridlabd
Version: 2.1.0
Summary: CIMHub GridLAB-D converter: .glm -> .cimtbl -> cim18v17
Author: Tylor Slay, Kapil Duwadi, Nathan Gray, Andy Fisher
Author-email: Alex Anderson <19935503+AAndersn@users.noreply.github.com>, Craig Allwardt <3979063+craig8@users.noreply.github.com>
Maintainer-email: Pacific Northwest National Laboratory <gridappsd@pnnl.gov>
License-Expression: BSD-3-Clause
Project-URL: Homepage, https://github.com/PNNL-CIM-Tools/CIMHub
Project-URL: Bug Tracker, https://github.com/PNNL-CIM-Tools/CIMHub/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cimhub-core<2.2,>=2.1.0
Requires-Dist: cim-topology<0.2,>=0.1.2
Requires-Dist: cim-tables<0.3,>=0.2.0
Requires-Dist: linkml-runtime~=1.9.5
Requires-Dist: pyyaml
Provides-Extra: time-points
Requires-Dist: cimhub-core[time-points]<2.2,>=2.1.0; extra == "time-points"
Provides-Extra: solve
Requires-Dist: gridlabd~=6.0.0; extra == "solve"
Dynamic: license-file

# cimhub_gridlabd

GridLAB-D (`.glm`) to and from CIM (cim18v17). Import goes through `.cimtbl` artifacts: `GlmReader` reads a `.glm` into the native
LinkML dataclasses, the mappers write one `.cimtbl` document per GLM class, and cimtables builds the CIM from that
text. Export (`GlmExporter`, `cim_to_glm`) reads CIM through the core getters and writes a `.glm` with `GlmWriter`.
Plan: `.development/GLM_REWRITE_PLAN.md`; specs: `docs/CIMTBL_MAPPING.md` (import), `docs/EXPORT_MAPPING.md` (export).

```bash
pip install --pre cimhub-gridlabd      # also installs cimhub-core
pip install --pre "cimhub-gridlabd[solve]"   # also the GridLAB-D engine (the gridlabd wheel)
```

Python 3.11 or later. Version 2.1 is in alpha.

## Documentation

- [Documentation](https://pnnl-cim-tools.github.io/CIMHub/gridlabd/): user guide, conversion reference, developer docs and the LinkML schema reference
- [GridLAB-D to `.cimtbl` mapping spec](https://github.com/PNNL-CIM-Tools/CIMHub/blob/main/cimhub_gridlabd/docs/CIMTBL_MAPPING.md)
- [CIM to GridLAB-D export spec](https://github.com/PNNL-CIM-Tools/CIMHub/blob/main/cimhub_gridlabd/docs/EXPORT_MAPPING.md)
