Skip to content

RWTH-IAEW/cimpyorm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1434060 · Oct 19, 2023

History

82 Commits
Oct 19, 2023
Sep 28, 2023
Feb 9, 2021
Jun 6, 2021
Sep 28, 2023
Sep 27, 2023
Sep 27, 2023
Feb 9, 2021
Jul 11, 2021
Feb 9, 2021
Jul 11, 2021
Jul 11, 2021
Jan 17, 2019
Feb 9, 2021
Oct 19, 2023

Repository files navigation

Installation

PyPI:

pip install cimpyorm


Documentation

Some documentation can be found at readthedocs.


Usage

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 = [t.ConductingEquipment.name for t in all_terminals]

Bug reports/feature requests

Please use the Issue Tracker.