Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thingctx-0.1.2.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thingctx-0.1.2-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file thingctx-0.1.2.tar.gz.

File metadata

  • Download URL: thingctx-0.1.2.tar.gz
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for thingctx-0.1.2.tar.gz
Algorithm Hash digest
SHA256 30824ff3e31755df45b417b6b6e46b41fc29f00c238d3f89e00c90843346ec04
MD5 54d0e6c96bf955f84ae99914d07f8732
BLAKE2b-256 5a86433f443cb8004e3ab756740ffc5c3165f9ebad58b94129a39586b2511e44

See more details on using hashes here.

Provenance

The following attestation bundles were made for thingctx-0.1.2.tar.gz:

Publisher: release.yml on thingctx/thingctx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file thingctx-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: thingctx-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for thingctx-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0059811723bd78ebae84211b19a0b4e89bae93b33a1ef80ff739d2b529f72b52
MD5 416fd4effc09eda5641202dce4e4f03a
BLAKE2b-256 bd66513958965b1549bf381dbf1c4f98f0e71d0fbcc609d3e0ee93aee2d1f769

See more details on using hashes here.

Provenance

The following attestation bundles were made for thingctx-0.1.2-py3-none-any.whl:

Publisher: release.yml on thingctx/thingctx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page