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.3.tar.gz (37.2 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.3-py3-none-any.whl (34.7 kB view details)

Uploaded Python 3

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

Hashes for thingctx-0.1.3.tar.gz
Algorithm Hash digest
SHA256 829e1a6a53ae68885fb6b932470393a26c0b7627d66cf4a8a6d7eb950f1e4507
MD5 c91b2bfd01e45473915f1ad9edd53f4b
BLAKE2b-256 909bc36edda3d5cab5989093060cde71bfa6b85bd1cc047dc40818264d4589f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for thingctx-0.1.3.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.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

Hashes for thingctx-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3b51618168579f53768fb04ed4dee8ec550a63f37052925053f898ef554d9859
MD5 6ca90837e2c87acabedcaf5ecb9ca6a4
BLAKE2b-256 04f27fa81f8585ce88cb0f0d63578597878cd4b7e9bd722ecec6dbed122c38b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for thingctx-0.1.3-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