Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

The CLI below is included in modpoll-wot==0.2.0a2.

modpoll-wot new --title "meter"
modpoll-wot validate meter.tm.json
modpoll-wot validate meter.tm.json --kind tm --profile
modpoll-wot export meter.tm.json --host 127.0.0.1 --port 5020 --unit-id 7 -o meter.td.json
modpoll-wot validate meter.td.json

Use modpoll-wot --help and modpoll-wot validate --help for options. Validation reports each check separately with a tick or cross and an error detail on failure. Terminal markers are colored; redirected output has no ANSI colors, and NO_COLOR disables colors. The exit status is zero only on success. Structure validation is offline and rejects duplicate JSON keys; it does not check JSON-LD, references, device behavior or complete W3C conformance. Type is detected from the document, so use --kind tm for a known TM whose type might be missing. --profile checks the executable subset, accepting instance options and --param NAME=JSON when needed. new writes <title>.tm.json in the current directory by default; use -o to choose another path. It never overwrites a file. The starter is a standard TM skeleton; add profile 0.2 mappings before executable validation or export. Export accepts --target node-wot-0.9.2 for the documented subset and never overwrites files.

See profile.md for the current profile and CONTRACT.md for retained 0.1 profile support.

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

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

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

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.

Version 0.2.0a1 supports profile 0.2: standard Form mappings, explicit blocks, per-property decoding and TM-to-TD export. Profile 0.1 remains available for existing configurations.

Metadata

Release files for modpoll-wot 0.2.0a2

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

Source distribution (sdist)

Source distribution for modpoll-wot 0.2.0a2
File Size Uploaded Provenance Actions
modpoll_wot-0.2.0a2.tar.gz 34.3 kB Without provenance Details for modpoll_wot-0.2.0a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for modpoll-wot 0.2.0a2
File Interpreter ABI Platform Actions
modpoll_wot-0.2.0a2-py3-none-any.whl Python 3 none any Details for modpoll_wot-0.2.0a2-py3-none-any.whl

Total release size: 75.6 kB

Release files / modpoll_wot-0.2.0a2.tar.gz

Download URL modpoll_wot-0.2.0a2.tar.gz
Size 34.3 kB
Tags Source
SHA-256 checksum
How to use checksums
42df645c38638408a9de72b0f80c4186b33872bc1511598239984d88fd07245f
BLAKE2b-256 checksum
How to use checksums
c490a9799454bcf39b73521400db64236e10b04d4b53feef0e39d7eb30b9e7ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.15 Linux/7.0.0-1017-azure

Release files / modpoll_wot-0.2.0a2-py3-none-any.whl

Download URL modpoll_wot-0.2.0a2-py3-none-any.whl
Size 41.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d5a4e67b40de9367afa20715b420f3b63ceef45c8b8d0ca05bc6a9ea75e8c29
BLAKE2b-256 checksum
How to use checksums
f0a4992a88d9ab6b83d5efb034820e4ff88cc71c77258e8a6fc89fdac780c0a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.15 Linux/7.0.0-1017-azure

Security for modpoll-wot 0.2.0a2

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.

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