Drive any agent against any W3C WoT Thing, over any transport. No per-integration server.
Project description
thingctx
Drive any agent against any W3C Web of Things Thing, over any transport. The integration is a JSON Thing Description, not a server you run.
Install
pip install thingctx[all]
# or pick extras: thingctx[llm] [http] [mqtt] [validate] [mcp]
Use
import thingctx
# Out-of-the-box agent loop
host = await thingctx.from_url("https://api.example.com/.well-known/wot")
print(await host.chat("what's the forecast for Cairo?"))
Own the loop? Get tool specs and route calls yourself:
client = thingctx.ThingClient.from_registry(thingctx.from_arg("./registry/"))
specs, invoke = client.as_tools()
await invoke("pump.set_speed", {"rpm": 1500})
Closed agent (Claude Desktop, Copilot)? Bridge a registry of descriptions to MCP:
thingctx-mcp ./registry/
Docs and source
Full README, examples, and design notes: https://github.com/thingctx/thingctx
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thingctx-0.1.3.tar.gz.
File metadata
- Download URL: thingctx-0.1.3.tar.gz
- Upload date:
- Size: 37.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
829e1a6a53ae68885fb6b932470393a26c0b7627d66cf4a8a6d7eb950f1e4507
|
|
| MD5 |
c91b2bfd01e45473915f1ad9edd53f4b
|
|
| BLAKE2b-256 |
909bc36edda3d5cab5989093060cde71bfa6b85bd1cc047dc40818264d4589f7
|
Provenance
The following attestation bundles were made for thingctx-0.1.3.tar.gz:
Publisher:
release.yml on thingctx/thingctx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thingctx-0.1.3.tar.gz -
Subject digest:
829e1a6a53ae68885fb6b932470393a26c0b7627d66cf4a8a6d7eb950f1e4507 - Sigstore transparency entry: 1820888523
- Sigstore integration time:
-
Permalink:
thingctx/thingctx@8b3c94af3d157c42fdffe2679f7d9644e8bf2e72 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/thingctx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8b3c94af3d157c42fdffe2679f7d9644e8bf2e72 -
Trigger Event:
push
-
Statement type:
File details
Details for the file thingctx-0.1.3-py3-none-any.whl.
File metadata
- Download URL: thingctx-0.1.3-py3-none-any.whl
- Upload date:
- Size: 34.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b51618168579f53768fb04ed4dee8ec550a63f37052925053f898ef554d9859
|
|
| MD5 |
6ca90837e2c87acabedcaf5ecb9ca6a4
|
|
| BLAKE2b-256 |
04f27fa81f8585ce88cb0f0d63578597878cd4b7e9bd722ecec6dbed122c38b7
|
Provenance
The following attestation bundles were made for thingctx-0.1.3-py3-none-any.whl:
Publisher:
release.yml on thingctx/thingctx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thingctx-0.1.3-py3-none-any.whl -
Subject digest:
3b51618168579f53768fb04ed4dee8ec550a63f37052925053f898ef554d9859 - Sigstore transparency entry: 1820888888
- Sigstore integration time:
-
Permalink:
thingctx/thingctx@8b3c94af3d157c42fdffe2679f7d9644e8bf2e72 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/thingctx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8b3c94af3d157c42fdffe2679f7d9644e8bf2e72 -
Trigger Event:
push
-
Statement type: