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. 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.
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 exoclaw_tools_web-0.2.0.tar.gz.
File metadata
- Download URL: exoclaw_tools_web-0.2.0.tar.gz
- Upload date:
- Size: 25.9 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
486335138792bc2714fea2d14f0d67136100ad9c53c6c400c9a247945f96dc4c
|
|
| MD5 |
a4ca9264f8ae2f540730587d191c3f30
|
|
| BLAKE2b-256 |
8d8d60a4402bf480a4cc66ce961a55a7d8ddb21475869c68e48fdcb1dd8e818d
|
File details
Details for the file exoclaw_tools_web-0.2.0-py3-none-any.whl.
File metadata
- Download URL: exoclaw_tools_web-0.2.0-py3-none-any.whl
- Upload date:
- Size: 28.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee4dc13ea1a5d39555a39aa5d5438e32fd44d1ee27092e7c58d9bed9b91f3cc8
|
|
| MD5 |
15fe18de543391c44def7ed592541197
|
|
| BLAKE2b-256 |
0e80c70910766255e8e8b02841ba726321a95b2f46a12578c5e8d6a76cf0605b
|