A database-backed ORM for CIM datasets.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cimpyorm-0.10.1.tar.gz.
File metadata
- Download URL: cimpyorm-0.10.1.tar.gz
- Upload date:
- Size: 659.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dea8f56b5e173500189ccba8475f4945f5820328a37f12a9cf9f21eeebb71fc
|
|
| MD5 |
d7762072571ec272f12b4622601609b2
|
|
| BLAKE2b-256 |
2d1a7f91b8ced259364e9467c4fb56c8fb517ddecec57614b751cd1785136f46
|
File details
Details for the file cimpyorm-0.10.1-py3-none-any.whl.
File metadata
- Download URL: cimpyorm-0.10.1-py3-none-any.whl
- Upload date:
- Size: 713.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
110e6841807d24df7cd0aa8cf0e1eae705f06f0eb061e14c23c41d49499606a2
|
|
| MD5 |
cc25aee6640a2634020fa7e4e18fc1f8
|
|
| BLAKE2b-256 |
a786d312008f8e115c7ab65559700850dff1e05758255fa1f6cc89b204685888
|