Name | wotpy2 JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | Python implementation of a W3C WoT Runtime and the WoT Scripting API |
upload_time | 2025-09-11 15:22:34 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | MIT License
Copyright (c) 2018 CTIC Centro Tecnologico
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
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# VO-WoT
This repository is an updated version of [WoTPy](https://github.com/agmangas/wot-py).
[](https://pypi.org/project/wotpy2/)
## Introduction
This repository is a fork of the original [WoTPy](https://github.com/agmangas/wot-py) repository.
WoTPy 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 [thingweb GitHub page](https://github.com/thingweb).
## Features
- Supports Python 3 with versions >= 3.9
- 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) |
| Zenoh binding | :heavy_check_mark: | [eclipse-zenoh/zenoh-python](https://github.com/eclipse-zenoh/zenoh-python) |
## Installation
```
pip install wotpy2
```
### 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.9 :: OK
Python 3.10 :: OK
Python 3.11 :: OK
Python 3.12 :: OK
Python 3.13 :: 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.
`WOTPY_TESTS_ZENOH_ROUTER_URL` defines the url of the Zenoh router. An example router url value is `tcp/192.168.1.1:7447` assuming the router is bound on the interface with the IP `192.168.1.1` and listens to port `7447`. Check the Zenoh router's output (`zenohd` command) for more info.
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.9 ./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
Move to the `docs` folder and run:
```
make html
```
Raw data
{
"_id": null,
"home_page": null,
"name": "wotpy2",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "Nikos Filinis <nfilinis@netmode.ntua.gr>, Dimitris Spatharakis <dspatharakis@netmode.ntua.gr>",
"keywords": "wot, iot, gateway, fog, w3c",
"author": null,
"author_email": "Andres Garcia Mangas <andres.garcia@fundacionctic.org>",
"download_url": "https://files.pythonhosted.org/packages/46/a5/019ef8ccd3567d6b73c6a6395a0e6722318008a6ba86e8561b74004b5c03/wotpy2-0.1.0.tar.gz",
"platform": null,
"description": "# VO-WoT\n\nThis repository is an updated version of [WoTPy](https://github.com/agmangas/wot-py).\n\n[](https://pypi.org/project/wotpy2/)\n\n## Introduction\n\nThis repository is a fork of the original [WoTPy](https://github.com/agmangas/wot-py) repository.\n\nWoTPy 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 [thingweb GitHub page](https://github.com/thingweb).\n\n## Features\n- Supports Python 3 with versions >= 3.9\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| Zenoh binding | :heavy_check_mark: | [eclipse-zenoh/zenoh-python](https://github.com/eclipse-zenoh/zenoh-python) |\n\n\n## Installation\n```\npip install wotpy2\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.9 :: OK\nPython 3.10 :: OK\nPython 3.11 :: OK\nPython 3.12 :: OK\nPython 3.13 :: 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\n`WOTPY_TESTS_ZENOH_ROUTER_URL` defines the url of the Zenoh router. An example router url value is `tcp/192.168.1.1:7447` assuming the router is bound on the interface with the IP `192.168.1.1` and listens to port `7447`. Check the Zenoh router's output (`zenohd` command) for more info.\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.9 ./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\nMove to the `docs` folder and run:\n\n```\nmake html\n```\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2018 CTIC Centro Tecnologico\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.",
"summary": "Python implementation of a W3C WoT Runtime and the WoT Scripting API",
"version": "0.1.0",
"project_urls": {
"Repository": "https://gitlab.eclipse.org/eclipse-research-labs/nephele-project/wot-py-2.git"
},
"split_keywords": [
"wot",
" iot",
" gateway",
" fog",
" w3c"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "84324f864e9fb38b2a81efe019370273280c512dc5b148eaef66da0d80308507",
"md5": "e1174d65f96c3323f2d14833b3aee6d9",
"sha256": "49147f6a7b4b88d1e5aab3159402b9afd9fa40bd7462368fb58c7f60fd8ee9c6"
},
"downloads": -1,
"filename": "wotpy2-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e1174d65f96c3323f2d14833b3aee6d9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 129990,
"upload_time": "2025-09-11T15:22:32",
"upload_time_iso_8601": "2025-09-11T15:22:32.693117Z",
"url": "https://files.pythonhosted.org/packages/84/32/4f864e9fb38b2a81efe019370273280c512dc5b148eaef66da0d80308507/wotpy2-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "46a5019ef8ccd3567d6b73c6a6395a0e6722318008a6ba86e8561b74004b5c03",
"md5": "aca9897f4c600b1a46ddc60145958bc8",
"sha256": "0320ee69f9bbaac883315310aaab3be6b00aaa8b8e029bcce0a88233d16432ff"
},
"downloads": -1,
"filename": "wotpy2-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "aca9897f4c600b1a46ddc60145958bc8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 89823,
"upload_time": "2025-09-11T15:22:34",
"upload_time_iso_8601": "2025-09-11T15:22:34.156964Z",
"url": "https://files.pythonhosted.org/packages/46/a5/019ef8ccd3567d6b73c6a6395a0e6722318008a6ba86e8561b74004b5c03/wotpy2-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-11 15:22:34",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "wotpy2"
}