Skip to main content

travis pythons wheel

Introduction

PyCIM is a Python implementation of the IEC Common Information Model.

Current features include:

  • Support for IEC 61970 15v13 and IEC 61968 11v05,

  • Legacy support for IEC 61970 14v15 and IEC 61968 10v31,

  • Profiles of the CIM, including: - Common Power Systems Model (CPSM) (CIM v14) - Common Distribution Power System Model (CDPSM) (CIM v14 and v15) - European Network of Transmission System Operators for Electricity (ENTSO-E) (CIM v14),

  • Class and attribute documentation integrated as Python doc-strings,

  • Transparent bi-directional reference handling using Python properties,

  • CIM RDF/XML parsing and serialisation according to IEC 61970-552.

Installation

PyCIM has no dependencies beyond Python 2.6 or later. It can be easy_installed using setuptools:

$ easy_install PyCIM

Alternatively, download and unpack the tarball and install:

$ tar zxf PyCIM-XX.XX.tar.gz
$ python setup.py install

On UNIX systems, use sudo for the latter command if you need to install the scripts to a directory that requires root privileges:

$ sudo python setup.py install

The development Git repository can be cloned from GitHub:

$ git clone https://github.com/rwl/PyCIM.git

Quick start

To parse a CIM RDF/XML file:

In[1]: import logging

In[2]: logging.basicConfig(level=logging.INFO)

In[3]: from PyCIM import cimread

In[4]: d = cimread('path/to/input_file.xml')
INFO:PyCIM.RDFXMLReader:Created 5660 CIM objects in 1.04s.

The cimread function returns a Python dictionary that maps UUIDs to CIM objects. To serialise the dictionary of objects:

In[5]: from PyCIM import cimwrite

In[6]: cimwrite(d, 'path/to/output_file.xml')
INFO:PyCIM.RDFXMLWriter:5660 CIM objects serialised in 1.14s.

For further information refer to the website and the API documentation.

License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Credits

PyCIM is developed by Richard Lincoln (r.w.lincoln@gmail.com).

Release files for PyCIM 15.15.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyCIM 15.15.0
File Size Uploaded
PyCIM-15.15.0.tar.gz 1.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyCIM 15.15.0
File Interpreter ABI Platform
PyCIM-15.15.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 4.8 MB

Release files / PyCIM-15.15.0.tar.gz

Download URL PyCIM-15.15.0.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
63fae4d69b1112f93413181f2da4eaeb233ea52e5c1b3fa827fb4d1fa907bef1
BLAKE2b-256 checksum
How to use checksums
359a38948e73501a772ac06c101cba8fc389c5c0c5446c650a27687896474757
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyCIM-15.15.0-py2.py3-none-any.whl

Download URL PyCIM-15.15.0-py2.py3-none-any.whl
Size 3.0 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f4f0740e7e6182f455525cf8dcd82ca84375ed8b515d0dac0e025851203fe337
BLAKE2b-256 checksum
How to use checksums
da0fa4b63f1d093fad0eb5360ed8ea98922dba916380f7bdeec4b976886d0099
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

15.15.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page