vo-wot


Namevo-wot JSON
Version 0.18.3 PyPI version JSON
download
home_page
SummaryVirtual Object python implementation using a W3C WoT Runtime and the WoT Scripting API
upload_time2024-01-11 15:45:29
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT License Copyright (c) 2023 National Technical University of Athens Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords wot iot gateway fog w3c vo virtual object
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # VO-WoT

This repository is based on the Web of Things Python implementation [WoTPy](https://github.com/agmangas/wot-py).

[![PyPI](https://img.shields.io/pypi/v/vo-wot)](https://pypi.org/project/vo-wot/)

## Introduction

This repository is a fork of the original [WoTPy](https://github.com/agmangas/wot-py) repository.

VO-WoT is an experimental implementation of a [W3C WoT Runtime](https://github.com/w3c/wot-architecture/blob/master/proposals/terminology.md#wot-runtime) and the [W3C WoT Scripting API](https://github.com/w3c/wot-architecture/blob/master/proposals/terminology.md#scripting-api) in Python.

Inspired by the exploratory implementations located in the [Eclipse thingweb GitHub page](https://github.com/eclipse-thingweb/).

## Features
- Supports Python 3 with versions >= 3.8
- Fully-implemented `WoT` interface.
- Asynchronous I/O programming model based on coroutines.
- Multiple client and server [Protocol Binding](https://github.com/w3c/wot-architecture/blob/master/proposals/terminology.md#protocol-binding) implementations.

### Feature support matrix

|            Feature |  Python 3           | Implementation based on                                                 |
| -----------------: |  ------------------ | ----------------------------------------------------------------------- |
|       HTTP binding |  :heavy_check_mark: | [tornadoweb/tornado](https://github.com/tornadoweb/tornado)             |
| WebSockets binding |  :heavy_check_mark: | [tornadoweb/tornado](https://github.com/tornadoweb/tornado)             |
|       CoAP binding |  :heavy_check_mark: | [chrysn/aiocoap](https://github.com/chrysn/aiocoap)                     |
|       MQTT binding |  :heavy_check_mark: | [Yakifo/amqtt](https://github.com/Yakifo/amqtt)             |


## Installation
```
pip install vo-wot
```

### Development

To install in development mode with all the test dependencies:

```
pip install -U -e .[tests,docs]
```

Some WoTPy features (e.g. CoAP binding) are not available outside of Linux. If you have Docker available in your system, and want to easily run the tests in a Linux environment (whether you're on macOS or Windows) you can use the Docker-based test script:

```
$ WOTPY_TESTS_MQTT_BROKER_URL=mqtt://192.168.1.141 ./pytest-docker-all.sh
...
+ docker run --rm -it -v /var/folders/zd/02pk7r3954s_t03lktjmvbdc0000gn/T/wotpy-547bed6bacf34ddc95b41eceb46553dd:/app -e WOTPY_TESTS_MQTT_BROKER_URL=mqtt://192.168.1.141 python:3.9 /bin/bash -c 'cd /app && pip install -U .[tests] && pytest -v --disable-warnings'
...
Python 3.8 :: OK
Python 3.9 :: OK
Python 3.10 :: OK
Python 3.11 :: OK
```
`WOTPY_TESTS_MQTT_BROKER_URL` defines the url of the MQTT broker. It will listen to port `1883` by default. If your broker is set up in a different way, you can provide the port in the url as well.

You can also test only for a specific Python version with the `PYTHON_TAG` variable and the `pytest-docker.sh` script like this:

```
$ WOTPY_TESTS_MQTT_BROKER_URL=mqtt://192.168.1.141 PYTHON_TAG=3.8 ./pytest-docker.sh
```
### Development in VSCode with devcontainers
We have also provided a convenient `devcontainer` configuration to better recreate your local development environment. VSCode should detect it if you have the [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension installed.

## Docs
The documentation is currently hosted [here](https://netmode.gitlab.io/vo-wot/).

Alternatively to build the documentation, move to the `docs` folder and run:

```
make html
```


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "vo-wot",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Nikos Filinis <nfilinis@netmode.ntua.gr>, Dimitris Spatharakis <dspatharakis@netmode.ntua.gr>",
    "keywords": "wot,iot,gateway,fog,w3c,vo,virtual object",
    "author": "",
    "author_email": "Andres Garcia Mangas <andres.garcia@fundacionctic.org>",
    "download_url": "https://files.pythonhosted.org/packages/bb/68/e681af3f1e6c33ac5effe3b2a6a882bf451343d05eee9d70a6f38741a7b2/vo-wot-0.18.3.tar.gz",
    "platform": null,
    "description": "# VO-WoT\n\nThis repository is based on the Web of Things Python implementation [WoTPy](https://github.com/agmangas/wot-py).\n\n[![PyPI](https://img.shields.io/pypi/v/vo-wot)](https://pypi.org/project/vo-wot/)\n\n## Introduction\n\nThis repository is a fork of the original [WoTPy](https://github.com/agmangas/wot-py) repository.\n\nVO-WoT is an experimental implementation of a [W3C WoT Runtime](https://github.com/w3c/wot-architecture/blob/master/proposals/terminology.md#wot-runtime) and the [W3C WoT Scripting API](https://github.com/w3c/wot-architecture/blob/master/proposals/terminology.md#scripting-api) in Python.\n\nInspired by the exploratory implementations located in the [Eclipse thingweb GitHub page](https://github.com/eclipse-thingweb/).\n\n## Features\n- Supports Python 3 with versions >= 3.8\n- Fully-implemented `WoT` interface.\n- Asynchronous I/O programming model based on coroutines.\n- Multiple client and server [Protocol Binding](https://github.com/w3c/wot-architecture/blob/master/proposals/terminology.md#protocol-binding) implementations.\n\n### Feature support matrix\n\n|            Feature |  Python 3           | Implementation based on                                                 |\n| -----------------: |  ------------------ | ----------------------------------------------------------------------- |\n|       HTTP binding |  :heavy_check_mark: | [tornadoweb/tornado](https://github.com/tornadoweb/tornado)             |\n| WebSockets binding |  :heavy_check_mark: | [tornadoweb/tornado](https://github.com/tornadoweb/tornado)             |\n|       CoAP binding |  :heavy_check_mark: | [chrysn/aiocoap](https://github.com/chrysn/aiocoap)                     |\n|       MQTT binding |  :heavy_check_mark: | [Yakifo/amqtt](https://github.com/Yakifo/amqtt)             |\n\n\n## Installation\n```\npip install vo-wot\n```\n\n### Development\n\nTo install in development mode with all the test dependencies:\n\n```\npip install -U -e .[tests,docs]\n```\n\nSome WoTPy features (e.g. CoAP binding) are not available outside of Linux. If you have Docker available in your system, and want to easily run the tests in a Linux environment (whether you're on macOS or Windows) you can use the Docker-based test script:\n\n```\n$ WOTPY_TESTS_MQTT_BROKER_URL=mqtt://192.168.1.141 ./pytest-docker-all.sh\n...\n+ docker run --rm -it -v /var/folders/zd/02pk7r3954s_t03lktjmvbdc0000gn/T/wotpy-547bed6bacf34ddc95b41eceb46553dd:/app -e WOTPY_TESTS_MQTT_BROKER_URL=mqtt://192.168.1.141 python:3.9 /bin/bash -c 'cd /app && pip install -U .[tests] && pytest -v --disable-warnings'\n...\nPython 3.8 :: OK\nPython 3.9 :: OK\nPython 3.10 :: OK\nPython 3.11 :: OK\n```\n`WOTPY_TESTS_MQTT_BROKER_URL` defines the url of the MQTT broker. It will listen to port `1883` by default. If your broker is set up in a different way, you can provide the port in the url as well.\n\nYou can also test only for a specific Python version with the `PYTHON_TAG` variable and the `pytest-docker.sh` script like this:\n\n```\n$ WOTPY_TESTS_MQTT_BROKER_URL=mqtt://192.168.1.141 PYTHON_TAG=3.8 ./pytest-docker.sh\n```\n### Development in VSCode with devcontainers\nWe have also provided a convenient `devcontainer` configuration to better recreate your local development environment. VSCode should detect it if you have the [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension installed.\n\n## Docs\nThe documentation is currently hosted [here](https://netmode.gitlab.io/vo-wot/).\n\nAlternatively to build the documentation, move to the `docs` folder and run:\n\n```\nmake html\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 National Technical University of Athens  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Virtual Object python implementation using a W3C WoT Runtime and the WoT Scripting API",
    "version": "0.18.3",
    "project_urls": {
        "Documentation": "https://netmode.gitlab.io/vo-wot/",
        "Repository": "https://gitlab.eclipse.org/eclipse-research-labs/nephele-project/vo-wot.git"
    },
    "split_keywords": [
        "wot",
        "iot",
        "gateway",
        "fog",
        "w3c",
        "vo",
        "virtual object"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "00c2d642cc9a946d1e996f5db773b941214f01bdbd08d23a9454a47f2228c5c1",
                "md5": "5c01276a69c2674a4817c1abc20f046d",
                "sha256": "af862dc98f594c048cff2c2578226e4c33d19f2f6d177d5879825ef2b0bdd1ab"
            },
            "downloads": -1,
            "filename": "vo_wot-0.18.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5c01276a69c2674a4817c1abc20f046d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 121996,
            "upload_time": "2024-01-11T15:45:25",
            "upload_time_iso_8601": "2024-01-11T15:45:25.802513Z",
            "url": "https://files.pythonhosted.org/packages/00/c2/d642cc9a946d1e996f5db773b941214f01bdbd08d23a9454a47f2228c5c1/vo_wot-0.18.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bb68e681af3f1e6c33ac5effe3b2a6a882bf451343d05eee9d70a6f38741a7b2",
                "md5": "2f1b2f0c0512ba2a95a8ee42b9f9f987",
                "sha256": "449fd1e9939c346789b15a74f62456f7a4b3424ad452b7b062c9119f51918520"
            },
            "downloads": -1,
            "filename": "vo-wot-0.18.3.tar.gz",
            "has_sig": false,
            "md5_digest": "2f1b2f0c0512ba2a95a8ee42b9f9f987",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 83653,
            "upload_time": "2024-01-11T15:45:29",
            "upload_time_iso_8601": "2024-01-11T15:45:29.342852Z",
            "url": "https://files.pythonhosted.org/packages/bb/68/e681af3f1e6c33ac5effe3b2a6a882bf451343d05eee9d70a6f38741a7b2/vo-wot-0.18.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-11 15:45:29",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "vo-wot"
}
        
Elapsed time: 0.20523s