eoq3pyecorempl - A model persistance layer for EOQ3 based on pyecore
This is a model persitancy layer (MPL) based on pyecore. This MPL behaves similar to a WorkspaceDomain in EOQ2. A workspace directory containing M2 and M1 models in
- .ecore and .
- *.xml
format is parsed and uploaded to a domain as a workspace model.
Usage
Imports:
from eoq3pyecorempl import PyEcoreWorkspaceMpl
Init and connect the MPL:
mpl = PyEcoreWorkspaceMpl(WORKSPACE_PATH)
Load the workspace directory:
mpl.Load()
Connect to the domain and upload the workspace model:
mpl.Connect(domain)
Accessing a M2 model:
res = domain.Do( Get(Cls("workspacemdbmodel__Resource").Sel(Pth("name").Equ("oaam.ecore"))) )
Accessing a M2 model:
res = domain.Do( Get(Cls("workspacemdbmodel__Resource").Sel(Pth("name").Equ("MinimalFlightControl.oaam"))) )
Accessing the model content:
res = domain.Do( Get(Cls("workspacemdbmodel__Resource").Sel(Pth("name").Equ("MinimalFlightControl.oaam")).Idx(0).Pth("content")) )
See also pyeoq/Test/Eoq3/test_pyecorempl.py for working code.
Workspace
A valid WORKSPACE_PATH could look like
-
Meta
- oaam.ecore
-
MinimalFlightControl.oaam
-
Library.xml
Subfolders are not mandatory.
Such a workspace directory can be found at pyeoq/Test/Eoq3/testdata/Workspace.
Documentation
For more information see EOQ3 documentation: https://eoq.gitlab.io/doc/eoq3/
Author
2024 Bjoern Annighoefer
Metadata
Release files for eoq3pyecorempl 2.9.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eoq3pyecorempl-2.9.4.tar.gz | 16.1 kB | Without provenance | Details for eoq3pyecorempl-2.9.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eoq3pyecorempl-2.9.4-py3-none-any.whl | Python 3 | none | any | Details for eoq3pyecorempl-2.9.4-py3-none-any.whl |
Total release size: 34.3 kB
Release files / eoq3pyecorempl-2.9.4.tar.gz
| Download URL | eoq3pyecorempl-2.9.4.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0d6bd448fd9dccbc8e92112c2f6a0ee1a549ee2f5dc53f4813db318dd239bb2
|
|
BLAKE2b-256 checksum How to use checksums |
a23eef7688af00dc86cdcdb8b41a8585b6bed4decc157a7be4a9d25c028c7578
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / eoq3pyecorempl-2.9.4-py3-none-any.whl
| Download URL | eoq3pyecorempl-2.9.4-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2369b7feccbf5c41309a5881a3766d8ef4c832e1f6a3d46e1abd6ccf77cd7500
|
|
BLAKE2b-256 checksum How to use checksums |
e88cc3e17c5374552b6bcde769fd0d21478c756837a448e149646d81c27e9a63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for eoq3pyecorempl 2.9.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.