This release is a pre-release and may not be stable for production use.
cimhub-opendss
OpenDSS converter for CIMHub: OpenDSS .dss decks to and from CIM (cim18v17). DssReader parses a deck into native
records. DssImporter maps them to .cimtbl text (one file per DSS class, values copied verbatim in the deck's
units), and cimtables builds the CIM model from that text. DssExporter reads a CIM model through the
cimhub-core getters and DssWriter writes a deck that DssReader and the importer read back.
pip install --pre cimhub-opendss # also installs cimhub-core
Python 3.11 or later.
Quickstart
from cimhub_opendss import DssReader, cim_to_dss, dss_to_cim
# IEEE13Nodeckt.dss and IEEELineCodes.dss: cimhub_opendss/tests/decks/IEEE/IEEE13_original/ in the repository
network = dss_to_cim(DssReader("IEEE13Nodeckt.dss").read_all(), name="IEEE13", artifact_dir="ieee13_cimtbl")
cim_to_dss(network, "ieee13_export.dss")
dss_to_cim(model, *, name, authority=..., length_unit=None, network=None, artifact_dir=None)returns the CIM network.nameis the model name and the master file stem. Withoutartifact_dirthe.cimtblfiles go to a temporary directory that is removed after loading.length_unitoverrides the deck's line length unit.cim_to_dss(network, destination, **opts)writes the deck. Options go toDssExporter().to_model:name_source('name','mrid'or'uri'; default$CIMHUB_NAME_SOURCE, else'mrid') andcircuit_source, the EnergySource to write asNew Circuitwhen the model has several.
What is supported
| DSS class | Import | Export |
|---|---|---|
| Circuit / Vsource | yes | yes |
| Line (matrix, sequence and geometry impedance), LineCode, LineGeometry, LineSpacing, WireData, CNData, TSData | yes | yes |
| Transformer, XfmrCode, RegControl | yes | yes |
| Load, Capacitor, CapControl | yes | yes |
| PVSystem, Storage, Generator | yes | yes |
| Reactor | yes | yes |
| Bus coordinates | yes | yes |
The master .cimtbl lists, in a comment, every DSS class in the deck that no mapper reads yet, with its record
count. The exporter raises, naming the classes and counts, when the CIM model holds conducting equipment of a class it
does not export. Unknown fields, unmapped enumerations and unresolved references raise on import. A deck without a
New Circuit, or with a second one, raises.
Documentation
- OpenDSS to
.cimtblmapping spec - CIM to OpenDSS export spec
- Documentation site source
- CIMHub architecture and converter API
BSD 3-Clause. Source and issues: https://github.com/PNNL-CIM-Tools/CIMHub.
License and attribution
BSD 3-Clause. See LICENSE. Contributors are listed in AUTHORS.
This software was created under a project sponsored by the U.S. Department of Energy's Office of Electricity, an agency of the United States Government. Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights.
PACIFIC NORTHWEST NATIONAL LABORATORY
operated by BATTELLE
for the UNITED STATES DEPARTMENT OF ENERGY
under Contract DE-AC05-76RL01830
Metadata
Release files for cimhub_opendss 2.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cimhub_opendss-2.1.0a1.tar.gz | 348.2 kB | Without provenance | Details for cimhub_opendss-2.1.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cimhub_opendss-2.1.0a1-py3-none-any.whl | Python 3 | none | any | Details for cimhub_opendss-2.1.0a1-py3-none-any.whl |
Total release size: 719.7 kB
Release files / cimhub_opendss-2.1.0a1.tar.gz
| Download URL | cimhub_opendss-2.1.0a1.tar.gz |
|---|---|
| Size | 348.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a301fa5834a6e2ba453c030cec6b7f2e8890a020e0b6563cb0db18a902ffa3f5
|
|
BLAKE2b-256 checksum How to use checksums |
32cb1f69abb777c3c8fcb45277acf9610ad8f4724e8678b3532d6580d4860d7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / cimhub_opendss-2.1.0a1-py3-none-any.whl
| Download URL | cimhub_opendss-2.1.0a1-py3-none-any.whl |
|---|---|
| Size | 371.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
932875082928483bd916a9008a9ceaadc09139949c23dc1b1efc7f3eded5757b
|
|
BLAKE2b-256 checksum How to use checksums |
711de41d46e69cd94432ae69135bdca1196400d1d25f3a47a5678eb9fc39c50f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for cimhub_opendss 2.1.0a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.