Metadata-Version: 2.1
Name: modpoll-wot
Version: 0.1.0a1
Summary: WoT Modbus configuration interpreter for Modpoll
Home-page: https://github.com/top-maker/modpoll
License: MIT
Author: Ying Shaodong
Author-email: helloysd@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: jsonschema (>=4.18,<5)
Requires-Dist: referencing (>=0.28.4,<1)
Project-URL: Documentation, https://top-maker.github.io/modpoll/v2/
Project-URL: Repository, https://github.com/top-maker/modpoll
Description-Content-Type: text/markdown

# modpoll-wot (experimental)

An independently versioned TM/TD configuration interpreter for Modpoll and future
compatible consumers. No Modbus execution, scheduler or MQTT service is included.

```sh
pip install modpoll-wot==0.1.0a1
python -m modpoll_wot meter.tm.json
```
See CONTRACT.md for the executable 0.1 subset and 1.x field mapping.

The loader validates bundled W3C TM/TD 1.1 schemas, the project extension
schema, and acquisition semantics. It does not execute Modbus requests.

```python
from modpoll_wot.loading import load_model
model = load_model("examples/modsim.tm.json", kind="tm", unit_id=1)
```

The application adapter is connected to the existing Modpoll poll/decode/output engine. Run checks from the repository root:

```sh
PYTHONPATH=packages/modpoll-wot python -m unittest discover -s packages/modpoll-wot/tests
```

The bundled W3C schemas identify themselves as 1.1-12-March-2025, retrieved from
https://www.w3.org/2022/wot/td-schema/v1.1 and
https://www.w3.org/2022/wot/tm-schema/v1.1. Standard validation does not
establish device correctness.

