Skip to main content

Web tools for exoclaw — HTML→Markdown converter, web_fetch, web_search. Cross-runtime (CPython + MicroPython).

Project description

exoclaw-tools-web

Web tools for exoclaw agents — pure-Python, cross-runtime (CPython + MicroPython).

Tools

  • web_fetch — GET a URL and return its content as Markdown. Uses exoclaw.http.HTTPClient (cross-runtime) for the fetch and a stdlib-only HTML→Markdown state-machine converter for the conversion. Bounded output (~32 KB on chip, ~128 KB on CPython).
  • web_search — answer a query via an OpenAI-compatible LLM with a web-search plugin enabled (e.g. OpenRouter's {"plugins": [{"id": "web"}]} extra-body). Drops litellm in favour of routing through the same OpenAIStreamingProvider the agent already speaks to.

Converter

exoclaw_tools_web.convert(html_str) -> str is the HTML→Markdown converter. State machine, no re, no html.parser. Passes 113/131 of turndown's regression-test fixtures on default options (the 18 known fails all use turndown options we don't mirror — referenced links, atx headings, custom code-block fences, etc.).

License

MIT.

The vendored test fixtures under tests/fixtures/ are derived from the turndown test suite (MIT 2017 Dom Christie) — see tests/fixtures/NOTICE.

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

exoclaw_tools_web-0.1.0.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

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

exoclaw_tools_web-0.1.0-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file exoclaw_tools_web-0.1.0.tar.gz.

File metadata

  • Download URL: exoclaw_tools_web-0.1.0.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for exoclaw_tools_web-0.1.0.tar.gz
Algorithm Hash digest
SHA256 874731e5f250ecd4d68c03480e66c197f2998206c975150056247b6d08d65fb3
MD5 793b3a99c8768ee75605452503868da2
BLAKE2b-256 0f6f0823c61aaf50893cd388e3bbe681a0c365fe045394fbaa35f29f2815096a

See more details on using hashes here.

File details

Details for the file exoclaw_tools_web-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: exoclaw_tools_web-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for exoclaw_tools_web-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93a1721f69960526ece380acbfd923aca14d855731eab575b3f1c27a432bedec
MD5 142c69409d2eb0d9be98da29283d340e
BLAKE2b-256 fae673e1ca272b54cfbd99454d5063d3ee745211cf4c5547aa0139a8b4db13f8

See more details on using hashes here.

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