Skip to main content

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

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)

Source distribution for eoq3pyecorempl 2.9.4
File Size Uploaded
eoq3pyecorempl-2.9.4.tar.gz 16.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eoq3pyecorempl 2.9.4
File Interpreter ABI Platform
eoq3pyecorempl-2.9.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

2.9.4 This release

2 release files

2.9.3

2 release files

2.9.2

2 release files

2.9.1

2 release files

2.9.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page