Skip to main content

xyberos-web-search

Web search abstraction plugin — RFC-0019, M5. One WebSearch contract (search(query, top_k) -> list[Result]), many providers behind it: DuckDuckGo (free, no API key — the default), plus Tavily, Serper, Brave, Exa, Firecrawl. Each adapter is a thin, stdlib-only urllib call; the plugin exposes a single typed web_search tool.

Install

pip install xyberos-web-search         # from PyPI

# development (editable, from this repo):
pip install -e ./web-search

Usage

from xyberos import create_app
from xyberos_web_search import WebSearchPlugin

app = create_app()
app.load_plugin(WebSearchPlugin())   # default: duckduckgo - free, no API key

app.tools.execute("web_search", None, query="xyberos", top_k=5)

Provider + key resolution (explicit args, then env):

Provider provider API key env
DuckDuckGo (default) duckduckgo — (free, keyless)
Tavily tavily TAVILY_API_KEY
Serper serper SERPER_API_KEY
Brave brave BRAVE_API_KEY
Exa exa EXA_API_KEY
Firecrawl firecrawl FIRECRAWL_API_KEY

WEB_SEARCH_PROVIDER selects the default provider (default duckduckgo). Paid providers raise a clear ProviderError when their key is missing.

Use the contract directly (provider-agnostic)

from xyberos_web_search import get_web_search

search = get_web_search("serper")   # reads SERPER_API_KEY
for result in search.search("xyberos", top_k=3):
    print(result.title, result.url, result.snippet)

Design

  • Contract — WebSearch protocol + SearchResult(title, url, snippet, score, extra).
  • Adapters — thin, dependency-free, with an injectable request transport so tests run without a network.
  • Tool — the plugin registers web_search(query: str, top_k: int = 5) through the public FunctionTool API.

Examples

  • examples/web_search.py — CLI example; needs an API key (see README).

Tests

pip install pytest
pytest tests/

Adapters are tested against canned responses via a fake transport — no network required.

Ship location

Plugin (xyberos.plugins entry point). Depends on M2's HTTP patterns.

Metadata

Release files for xyberos-web-search 0.2.1

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

Source distribution (sdist)

Source distribution for xyberos-web-search 0.2.1
File Size Uploaded Provenance Actions
xyberos_web_search-0.2.1.tar.gz 10.3 kB With provenance Details for xyberos_web_search-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xyberos-web-search 0.2.1
File Interpreter ABI Platform Actions
xyberos_web_search-0.2.1-py3-none-any.whl Python 3 none any Details for xyberos_web_search-0.2.1-py3-none-any.whl

Total release size: 20.5 kB

Release files / xyberos_web_search-0.2.1.tar.gz

Download URL xyberos_web_search-0.2.1.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
554b5acb7fe516811dbba65ec9bb2d71e3066fbb5dea4defd4afc889c7907403
BLAKE2b-256 checksum
How to use checksums
ee53791867370c080ab7e6eba04c95d94109de489bea6ec5606361f619faeb17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / xyberos_web_search-0.2.1-py3-none-any.whl

Download URL xyberos_web_search-0.2.1-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77fdba039361c3c3db5ff51c51b96ba735282370422703e86e8b5d752d9918fd
BLAKE2b-256 checksum
How to use checksums
22740f1f97622db132a1869fc14df9fd46813e6bd9d5ea60855ed06d9ec9fdd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Security for xyberos-web-search 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xyberos_web_search-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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