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, Modsim and future compatible consumers. No Modbus execution, scheduler or MQTT service is included.

uv add --prerelease allow modpoll-wot      # or: pip install --pre modpoll-wot
uvx --prerelease allow modpoll-wot validate device.tm.json --profile

Import from modpoll_wot only; its submodules are not a public interface. The package ships py.typed.

It is developed in the modpoll repository together with modpoll and modsim, and released with tags modpoll-wot-v<version>. Releases 0.3.0a1 to 0.6.0a2 came from a separate modpoll-wot repository (now archived); their history was carried over.

The existing TM CLI is available in modpoll-wot==0.2.0a2. Version 0.5.0a1 adds the shared tool session credentials file and modiohub: references (modpoll_wot.session). Version 0.4.0a1 adds simulation data (--kind data) and verification report schema 3. Version 0.3.0a3 removes the modpoll:audit plan; a full read uses modpoll:acquisition. Version 0.3.0a2 renames verification report fields to product and chassis (schema 2). Version 0.3.0a1 adds point and model fingerprints and the verification report schema, and removes the device metadata schema; see CONTRACT.md.

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
modpoll-wot fingerprint meter.tm.json
modpoll-wot validate-report report.json --model meter.tm.json
modpoll-wot validate meter.data.json --kind data

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 the profile 0.2-only execution policy.

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("meter.tm.json", unit_id=1)

Development

Install mise, then run the source tests, build the wheel and sdist, and smoke-test the installed wheel:

mise trust
mise install
mise run check

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. Current development source rejects profile 0.1. This compatibility removal is not yet published; use a new immutable release version when promoting it, then update consumer pins.

Releases

Released versions and tags are immutable.

  1. On main, set version in pyproject.toml to a new version and merge it through a pull request whose CI passes, including the consumer job.
  2. Push the tag v<version> at that commit. The release workflow checks the tag, tests and builds, publishes to PyPI, verifies the registry installation and records a GitHub prerelease with the built files.
  3. Update the exact modpoll-wot pin in each consumer repository in its own pull request.

A failed publish never replaces an existing version: rerun the failed job, or release a new version.

Metadata

Release files for modpoll-wot 0.7.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.7.0a2
File Size Uploaded Provenance Actions
modpoll_wot-0.7.0a2.tar.gz 65.8 kB Without provenance Details for modpoll_wot-0.7.0a2.tar.gz

Built distribution (wheel)

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

Total release size: 121.3 kB

Release files / modpoll_wot-0.7.0a2.tar.gz

Download URL modpoll_wot-0.7.0a2.tar.gz
Size 65.8 kB
Tags Source
SHA-256 checksum
How to use checksums
85bcaa86f9e09c053c95809dacb2f98d2ea75eed4d01ba3190792aa4d7b426e2
BLAKE2b-256 checksum
How to use checksums
e0b879286942f34d2b9bf2bb4f9ee5e08affb3b8405d9358d6bfdb95a33745b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

Download URL modpoll_wot-0.7.0a2-py3-none-any.whl
Size 55.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4a9a2424da56571fb9a25dce7009fbea53b9c0a9b8b5d4c78d08cf535dd57ae
BLAKE2b-256 checksum
How to use checksums
4a83774a869670ab621f22bcc288b97acd99cb6ec5c32b14889fc9a626d601d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for modpoll-wot 0.7.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