descriptionPython implementation of the Common Information Model
homepage URLhttp://www.pycim.org
repository URLhttps://github.com/rwl/PyCIM.git
ownerr.w.lincoln@gmail.com
last changeThu, 1 Jul 2021 05:50:18 +0000 (1 07:50 +0200)
last refreshFri, 17 May 2024 00:49:14 +0000 (17 02:49 +0200)
content tags
add:
README.rst
|travis| |pythons| |wheel|

**PyCIM is deprecated. See** CIMpy_ **instead.**

============
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).

.. _Python: http://www.python.org/
.. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools/
.. _Git: http://git-scm.com/
.. _GitHub: http://github.com/
.. _iPython: http://ipython.scipy.org
.. _`website`: http://rwl.github.io/PyCIM/
.. _`API documentation`: http://rwl.github.io/PyCIM/api/
.. _`CIMpy`: https://github.com/sogno-platform/cimpy

.. more shields at http://shields.io
.. |travis| image:: https://travis-ci.org/rwl/PyCIM.svg?branch=master
    :target: https://travis-ci.org/rwl/PyCIM
.. |pythons| image:: https://img.shields.io/pypi/pyversions/PyCIM.svg
    :target: https://pypi.python.org/pypi/PyCIM
.. |wheel| image:: https://img.shields.io/pypi/format/PyCIM.svg
    :target: https://pypi.python.org/pypi/PyCIM
shortlog
2021-07-01 Richard LincolnUpdate README.rstmaster
2019-03-28 Richard LincolnFixing website and API documentation links
2017-08-23 Richard LincolnAdding status section to README.
2017-02-18 Sam BullMerge pull request #23 from rwl/add-codecov
2017-02-18 Sam BullAdd test coverage collection via codecov23/head
2017-02-18 Richard LincolnMerge pull request #22 from rwl/add-authors-file
2017-02-15 Sam BullCreate Authors fileadd-authors-file22/head
2017-02-12 Richard LincolnMerge pull request #21 from emily-opus1/support_base_vo...
2017-02-12 Richard LincolnMerge pull request #20 from emily-opus1/energy_consumer...
2017-02-12 emilyFixed set syntax error for python 2.621/head
2017-02-12 emilyAdded support for association between base voltage...
2017-02-05 emilyAdded pfixed and qfixed attributes to EnergyConsumerPhase20/head
2017-02-03 Sam BullRelease 15.15.0v15.15.0
2017-02-03 Sam BullMerge pull request #19 from emily-opus1/per_length_impe...
2017-02-03 emily-opus1Merge pull request #1 from greatestape/use_pytest_raises19/head
2017-02-03 Sam BullConfigure pytest for PyCIM's test file naming
...
tags
7 years ago v15.15.0
7 years ago v15.14.0
12 years ago v15.13.4
12 years ago v15.13.3
12 years ago v15.13.2
12 years ago v15.13.1
13 years ago v14.15.2
13 years ago v14.15.1
13 years ago v14.12a1
13 years ago v14.02 Version 14.02
heads
2 years ago master
5 years ago gh-pages
7 years ago add-authors-file
12 years ago java