Python implementation of a W3C WoT Runtime and the WoT Scripting API
:warning: Please note that this project is currently behind the current version of the W3C WoT specifications. Our intention is to get it up to speed and implement the latest Thing Description and Scripting API versions. However, we cannot provide a timeframe for this update.
Inspired by the exploratory implementations located in the thingweb GitHub page.
- Supports Python 2.7 and Python 3.
- Multicast discovery based on mDNS.
- Asynchronous I/O programming model based on coroutines.
- Multiple client and server Protocol Binding implementations.
Feature support matrix
|Feature||Python 2.7||Python 3||Implementation based on|
WoTPy is based on the Tornado Framework. Users therefore have two different API options to write code based on coroutines:
- Users on Python 3 may use the native asyncio module. This is, in fact, the recommended approach. It should be noted that Tornado on Python 3 acts basically as a wrapper around
- Users on Python 2.7 are restricted to writing Tornado coroutines (
asynciois not available on Python 2.7).
pip install wotpy
To install in development mode with all the test dependencies:
pip install -U -e .[tests]
To run the tests in all supported environments:
Move to the
docs folder and run:
If you attempt to build the docs on a non-Linux platform or with Python 2.7
_autosummary will complain about being unable to import the unsupported modules (e.g. MQTT on Python 2.7). In this case the docs will be missing the sections regarding unsupported features.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size wotpy-0.15.1-py3-none-any.whl (151.7 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size wotpy-0.15.1.tar.gz (97.1 kB)||File type Source||Python version None||Upload date||Hashes View|