Skip to main content

xyz17711-websearch

Publish PyPI Python versions License

Typed Python client for websearch, part of the 17711.xyz microservice fleet -- pay-per-call APIs settled in USDC via x402, listed on x402scan. See the Python family README for the full guide (payment configuration, LangChain integration, logging, error handling) -- this page only covers what's specific to this one package.

Install

pip install "xyz17711[websearch]"

Methods

Method Description
get_task_status Polls for the result of a task enqueued by a *_async tool
search_web Web search API for agents: search the web and get result titles, URLs and snippets as JSON ($0.005, x402)
search_web_async [Deprecated - use websearch_search_web] Enqueues a websearch_search_web job and returns a task id immediately ($0.005, x402)

Every method above has both a sync form and an async form (the a-prefixed sibling, e.g. aget_task_status next to get_task_status), sharing one underlying client.

Quickstart

from xyz17711_websearch import Client

client = Client()  # talks to https://api.17711.xyz/registry/websearch by default
# see the Methods table above for every available call and its request/response model

Pass another base URL (self-hosted instance, test server) as the first argument: Client("https://my-host.example/registry/websearch").

LangChain

pip install "xyz17711-websearch[langchain]"
from xyz17711_websearch import Client
from xyz17711_websearch.langchain_tools import WebsearchToolkit

client = Client()
tools = WebsearchToolkit(client=client).get_tools()

License

MIT -- see the repository's own LICENSE.

Metadata

Release files for xyz17711-websearch 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xyz17711-websearch 0.1.0
File Size Uploaded
xyz17711_websearch-0.1.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xyz17711-websearch 0.1.0
File Interpreter ABI Platform
xyz17711_websearch-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / xyz17711_websearch-0.1.0.tar.gz

Download URL xyz17711_websearch-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f53189e50933f89915c94d3465f1b7be75b4c0026db440aab73e896fa3cbf13b
BLAKE2b-256 checksum
How to use checksums
2aab0c3f29bacdbe9deb9297d5614b51da9555b28388686acdaad104879f8707
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / xyz17711_websearch-0.1.0-py3-none-any.whl

Download URL xyz17711_websearch-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1ee4a1d0fdd7033564788f199d86787c3fb66984931abb0e45b243f552cb769
BLAKE2b-256 checksum
How to use checksums
0c3adb7d489a1a6a02ae832a9509e1f21a071b2db6da0fdf53019af8eae40616
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page