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.1.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

eoq3pyecoreutils-2.9.1-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eoq3pyecoreutils-2.9.1.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for eoq3pyecoreutils-2.9.1.tar.gz
Algorithm Hash digest
SHA256 8f7da73f36cf29734f6cc0ce5d7622d0c4cb13da60f4481b54cfef7dff99a30d
MD5 dc855acd088b48bf1048023dc07644d9
BLAKE2b-256 69854d5390d17b938bebbef4bfd1f4d8b77e90ba679ca53557b16342a70603f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for eoq3pyecoreutils-2.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c1b0d5c4f5f0fa9523cb425800e42044a3d64fe5adafa55708b594131ff255a
MD5 549617c277d7d8392ed6d3fb21994885
BLAKE2b-256 c99ada8b101408242501ed5ef8a635ca8cb7be021197ca178b5ce134764f5b15

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