Skip to main content
# Model2Code converter

Convert an xWoT meta-model to executable python code.

# Installation

## End Users

pip install xWoTModelTranslator

## Developers

### Final installation

from a terminal launch

sudo python setup.py install --record files.txt

this will compile and install the project to the pyhton libraries (eg. /usr/local/lib/python2.7/dist-packages/XWoT_Model_Translator-1.1-py2.7.egg). Furthermore it will install three scripts in /usr/local/bin/:
* physical2virtualEntities
* model2Python
* model2WADL
The configuration and logging.conf are copied into /etc/Model2WADL/ but it is possible to overwrite them either by placing a file with the same name (but prefixed with a dot eg. .logging.conf) in the user home directory or a file with the same name in the current working directory.

### Development installation

from a terminal launch

sudo python setup.py develop --record files.txt

does the same as before but, uses links instead of copying files.

### Clean Working directory

To clean the working directory

sudo python setup.py clean --all
sudo rm -rf build/ dist/ xWoTModelTranslator.egg.egg-info/ files.txt


# Uninstall

## Method 1
cat files.txt |sudo xargs rm -rf

## Method 2

First find the installed package with pip and the uninstall it

~/Documents/Programming/Python/Model2WADL [master|✚ 1…1]
12:13 $ pip freeze |grep xWot*
3:xWoTModelTranslator==1.1
~/Documents/Programming/Python/Model2WADL [master|✚ 1…1]
12:13 $ sudo pip uninstall xWoTModelTranslator
Uninstalling xWoTModelTranslator:
/Library/Python/2.7/site-packages/xWoTModelTranslator-1.1-py2.7.egg
/usr/local/bin/model2Python
/usr/local/bin/model2WADL
/usr/local/bin/physical2virtualEntities
Proceed (y/n)? y
Successfully uninstalled xWoTModelTranslator
~/Documents/Programming/Python/Model2WADL [master|✚ 1…1]
12:13 $


# Utilisation

The package provide two scripts: _physical2virtualEntities_ and _model2Python_. The first one is used to enhance an xWoT model (created with the according Eclipse plugin see https://github.com/aruppen/architecture4xwot for how to get this eclipse plug-in) containing only the virtual side of a Device with the corresponding virtual side. The second script takes a final xWoT model and translates it into code skeletons. The code sekeltons reflects the chosen hierarchy as a RESTful webservice based on python and autobahn.

Metadata

Release files for xWoTModelTranslator 1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xWoTModelTranslator 1.6
File Size Uploaded Provenance
xWoTModelTranslator-1.6.tar.gz 1.0 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for xWoTModelTranslator 1.6
File Interpreter ABI Platform
xWoTModelTranslator-1.6-py2.7.egg Legacy Egg format - - Details

Total release size: 2.2 MB

Release files / xWoTModelTranslator-1.6.tar.gz

Download URL xWoTModelTranslator-1.6.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
a90ada5b06901e6b3b16dc7de1da34782b09dc3e335377ba0fd2e1dead5495f2
BLAKE2b-256 checksum
How to use checksums
2a12edaa4f60f643ee5b643a0f180d905491bebf60dbea2d1b1276394bfd7da1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / xWoTModelTranslator-1.6-py2.7.egg

Download URL xWoTModelTranslator-1.6-py2.7.egg
Size 1.2 MB
Tags Egg
SHA-256 checksum
How to use checksums
61403f5e731860f29003682ac6be2cc0581d104f77d525a9887e5bb0d696df02
BLAKE2b-256 checksum
How to use checksums
d1aa3695a78bdc349e038621ddcca0db52fbfeb2a386386e81ed4c483de5fcf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for xWoTModelTranslator 1.6

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.

Release history Release notifications | RSS feed

This release

1.6 This release

2 release files No provenance

1.1

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