Skip to main content

A collection of pyecore to EOQ3 bridging tools.

Project description

eoq3pyecoreutils - pyecore-eoq3 bridge

An auxilary package for using eoq3 with pyecore, e.g. value type and model conversion as well as operation conversion and Concepts wrappers.

Usage

eoq3 has a programmatic and CLI interface.

Programatic

from eoq3pyecoreutils.ecorefiletoeoqfile import EcoreFileToEoqFile
from eoq3pyecoreutils.eoqfiletoecorefile import EoqFileToEcoreFile

m2EcoreFile = "testdata/Workspace/Meta/oaam.ecore"
m1EcoreFile = "testdata/Workspace/MinimalFlightControl.oaam"

LoadEcoreFile(m2EcoreFile,domain,options=resource.options,config=resource.config)
LoadEcoreFile(m1EcoreFile,domain,metafile=m2EcoreFile,options=resource.options,config=resource.config)

SaveEcoreFile(m2EcoreFileSaved, rootObj, domain, options=resource.options)
SaveEcoreFile(m1EcoreFileSaved, rootObj, domain, metafile=m2EcoreFile, options=resource.options)
SaveEcoreFile(m1EcoreFileSaved, rootObj, domain, metafile=m2EcoreFileSaved, saveMetamodelInAddition=True, options=resource.options)

CLI inteface

eoq and ecore file conversion:

python -m eoq3pyecoreutils.cli.ecorefiletoeoqfilecli --infile "m2model.ecore" --outfile "m2model.eoq"

python -m eoq3pyecoreutils.cli.ecorefiletoeoqfilecli --infile "m1model.ecore" --outfile "m1model.eoq" --metafile "m2model.ecore"

python -m eoq3pyecoreutils.cli.eoqfiletoecorefilecli --infile "m2model.eoq" --outfile "m2model.ecore"

python -m eoq3pyecoreutils.cli.eoqfiletoecorefilecli --infile "m1model.eoq" --outfile "m1model.eoq" --metafile "m2model.ecore"

File downloading:

python -m eoq3pyecoreutils.cli.saveecorefiletcpcli --outfile "m2model.ecore" --rootobj "(/*MDB/*M2MODELS:0)"  --host "127.0.0.1" --port 6141

python -m eoq3pyecoreutils.cli.saveecorefilewscli --outfile "m1model.xmi" --rootobj "(/*MDB/*M1MODELS:0)"  --metafile "m2model.ecore" -savemetamodel 1 --host "127.0.0.1"  --port 5141

File uploading:

python -m eoq3pyecoreutils.cli.loadecorefiletcpcli --infile "m2model.ecore" --host "127.0.0.1" --port 6141

python -m eoq3pyecoreutils.cli.loadecorefilewscli --infile "m2model.ecore" --host "127.0.0.1" --port 5141

python -m eoq3pyecoreutils.cli.loadecorefilewscli --infile "m1model.xmi" --metafile "m2model.ecore" --host "127.0.0.1" --port 5141

Documentation

For more information see EOQ3 documentation: https://eoq.gitlab.io/doc/eoq3/

Author

2024 Bjoern Annighoefer

Project details


Download files

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

Source Distribution

eoq3pyecoreutils-2.9.0.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

eoq3pyecoreutils-2.9.0-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

Details for the file eoq3pyecoreutils-2.9.0.tar.gz.

File metadata

  • Download URL: eoq3pyecoreutils-2.9.0.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for eoq3pyecoreutils-2.9.0.tar.gz
Algorithm Hash digest
SHA256 796d99d8738726ef038a6913b46b2e6d75b1a1089361c91934b6aefda6d80951
MD5 456a0b1b1bd1f8738a6f04d3f1565f09
BLAKE2b-256 332242eb219f8a7ceed9f26155257f5be5fcd6473d35df228029d7794e7825af

See more details on using hashes here.

File details

Details for the file eoq3pyecoreutils-2.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for eoq3pyecoreutils-2.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7175e306da175aff0bce61a20861fff2080932f5d1703195cd7c2842c32ad83
MD5 93310b177e0fc7a218133636f2d6d942
BLAKE2b-256 d10f4cc5bea2ac936d9c3bd793000e480d4b5e8f7cb6fd38b38b5ec7cd12a1e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page