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. Usesexoclaw.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). Dropslitellmin favour of routing through the sameOpenAIStreamingProviderthe 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.
Release files for exoclaw-tools-web 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| exoclaw_tools_web-0.2.0.tar.gz | 25.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| exoclaw_tools_web-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.6 kB
Release files / exoclaw_tools_web-0.2.0.tar.gz
| Download URL | exoclaw_tools_web-0.2.0.tar.gz |
|---|---|
| Size | 25.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
486335138792bc2714fea2d14f0d67136100ad9c53c6c400c9a247945f96dc4c
|
|
BLAKE2b-256 checksum How to use checksums |
8d8d60a4402bf480a4cc66ce961a55a7d8ddb21475869c68e48fdcb1dd8e818d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / exoclaw_tools_web-0.2.0-py3-none-any.whl
| Download URL | exoclaw_tools_web-0.2.0-py3-none-any.whl |
|---|---|
| Size | 28.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee4dc13ea1a5d39555a39aa5d5438e32fd44d1ee27092e7c58d9bed9b91f3cc8
|
|
BLAKE2b-256 checksum How to use checksums |
0e80c70910766255e8e8b02841ba726321a95b2f46a12578c5e8d6a76cf0605b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|