rwl / PyCIM

Python implementation of the Common Information Model.
http://rwl.github.io/PyCIM/api/
MIT License
77 stars 35 forks source link

IEC62325-351 compatibility #25

Closed JrtPec closed 7 years ago

JrtPec commented 7 years ago

Hi,

I'm building a Python client for the ENTSO-E API (European network of transmission system operators for electricity).

All API responses are formatted along IEC62325-351. (see https://www.entsoe.eu/major-projects/common-information-model-cim/cim-for-energy-markets/Pages/default.aspx, https://www.entsoe.eu/major-projects/common-information-model-cim/Pages/default.aspx)

Attached is a sample response I got. I tried running it through PyCIM, but it doesn't create any objects. What would it take to get this working? How can I assist?

rwl commented 7 years ago

PyCIM supports parsing and serialisation of CIM RDF/XML files according to IEC 61970-552.

You could just to parse the XML into a DOM tree and query for the data that you need:

https://gist.github.com/rwl/396e35aa41919714b0a1