Skip to main content

A database-backed ORM for CIM datasets.

Project description



pip install cimpyorm


Some documentation can be found at readthedocs.


import cimpyorm

Loading datasets from cimpyorm-.db file
session, m = cimpyorm.load(r"Path/To/DatabaseFile") # Load an existing .db file

Parsing datasets
session, m = cimpyorm.parse(r"Path/To/Folder/Containing/Export") # Parse a .xml export (also creates a cimpyorm-.db file of the export)

To configure additional schemata (currently only the schema for the CGMES profiles are distributed with the application), create additional subfolders in the /res/schemata/ directory containg the schema RDFS.

Running the tests

You can run the included test-suite by running cimpyorm.test_all().

Querying datasets
all_terminals = session.query(m.Terminal).all()
names_of_ConductingEquipment = [ for t in all_terminals]

Bug reports/feature requests

Please use the Issue Tracker.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cimpyorm, version 0.9.1
Filename, size File type Python version Upload date Hashes
Filename, size cimpyorm-0.9.1-py3-none-any.whl (714.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size cimpyorm-0.9.1.tar.gz (658.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page