Skip to main content

bub-web-search

Provider-selectable web tools for bub, covering two capabilities:

  • web.search: search the web, backed by one search provider
  • web.read: read a webpage as clean markdown, backed by one reader provider

Each capability has its own provider dimension, so they can be mixed freely (e.g. SearXNG for search, Jina for reading).

Search providers

Set BUB_SEARCH_PROVIDER (or provider in the web-search: config section) to enable exactly one search provider:

  • ollama
  • searxng
  • jina
  • deepseek

If the provider is unset it is inferred from which provider-specific configuration is present. If nothing resolves, web.search is not registered.

Reader providers

There is no explicit reader selector: web.read is enabled by configuring a reader-capable platform: a jina_api_key (Jina Reader) or a deepseek_api_key (DeepSeek Fetch). When both are present, Jina Reader wins. Without either, web.read is not registered.

Installation

bub install bub-web-search

Run bub onboard to select a provider and write its configuration interactively.

Ollama

Required:

  • BUB_SEARCH_PROVIDER=ollama
  • BUB_SEARCH_OLLAMA_API_KEY

Optional:

  • BUB_SEARCH_OLLAMA_API_BASE
    • Default: https://ollama.com/api

The web.search tool accepts query and max_results.

Jina

Required:

  • BUB_SEARCH_PROVIDER=jina for search; BUB_SEARCH_JINA_API_KEY alone already enables the web.read reader
  • BUB_SEARCH_JINA_API_KEY

Optional:

  • BUB_SEARCH_JINA_SEARCH_BASE
    • Default: https://s.jina.ai
  • BUB_SEARCH_JINA_READER_BASE
    • Default: https://r.jina.ai
  • BUB_SEARCH_JINA_TIMEOUT_SECONDS
    • Default: 30

The web.search tool accepts query. The web.read tool accepts url and returns the page content as markdown.

All settings can also be written to the web-search: section of the Bub config file, e.g.:

web-search:
  provider: jina
  jina_api_key: jina_...

or mixing platforms per capability (SearXNG searches, Jina reads):

web-search:
  provider: searxng
  searxng_base_url: https://searx.example.com
  jina_api_key: jina_...

DeepSeek

Uses DeepSeek's Search & Fetch API with the same API key as the DeepSeek chat models.

Required:

  • BUB_SEARCH_PROVIDER=deepseek for search; BUB_SEARCH_DEEPSEEK_API_KEY alone already enables the web.read reader (unless a Jina key is also set)
  • BUB_SEARCH_DEEPSEEK_API_KEY

Optional:

  • BUB_SEARCH_DEEPSEEK_API_BASE
    • Default: https://api.deepseek.com
  • BUB_SEARCH_DEEPSEEK_TIMEOUT_SECONDS
    • Default: 30

The web.search tool accepts query (at most 128 characters, supports operators such as site:, -site:, "phrase", lang:, after:, before:) and max_results (clamped to 1–50). The web.read tool accepts url and returns the page content as markdown.

SearXNG

Required:

  • BUB_SEARCH_PROVIDER=searxng
  • BUB_SEARCH_SEARXNG_BASE_URL

Optional:

  • BUB_SEARCH_SEARXNG_TIMEOUT_SECONDS
    • Default: 10
  • BUB_SEARCH_SEARXNG_DEFAULT_LANGUAGE
  • BUB_SEARCH_SEARXNG_DEFAULT_SAFE_SEARCH
    • 0 off, 1 moderate, 2 strict
    • Default: 1
  • BUB_SEARCH_SEARXNG_USER_AGENT
    • Default: bub-web-search/1.0
  • BUB_SEARCH_SEARXNG_AUTH_HEADER
  • BUB_SEARCH_SEARXNG_AUTH_VALUE

The searxng.search tool accepts:

  • query
  • max_results
  • categories
  • engines
  • language
  • time_range
  • safe_search

The SearXNG instance must allow JSON responses from its /search endpoint.

Replace the package with bub-web-search, set BUB_SEARCH_PROVIDER=searxng, and rename the environment variables:

  • BUB_SEARXNG_SEARCH_BASE_URL to BUB_SEARCH_SEARXNG_BASE_URL
  • other BUB_SEARXNG_SEARCH_* variables to BUB_SEARCH_SEARXNG_*

Metadata

Release files for bub-web-search 0.1.2

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

Source distribution (sdist)

Source distribution for bub-web-search 0.1.2
File Size Uploaded Provenance Actions
bub_web_search-0.1.2.tar.gz 10.2 kB Without provenance Details for bub_web_search-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 24.1 kB

Release files / bub_web_search-0.1.2.tar.gz

Download URL bub_web_search-0.1.2.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a3ff6f0281d7179e59d31102204c4d7801958073bf86f26006345db022d0b20a
BLAKE2b-256 checksum
How to use checksums
d696250410e830e0be4c0156c7ef965415d304cafa502a218709465123059c2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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 / bub_web_search-0.1.2-py3-none-any.whl

Download URL bub_web_search-0.1.2-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59b7eebdde1b2bde96aff92024df992fb663e48d0ba9fbab320935d860dc59a4
BLAKE2b-256 checksum
How to use checksums
9d5160f5f482edf81ecec8f20f8fb1aa46536b6dd4da52a2c4e4fcd5d6816d21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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}

Security for bub-web-search 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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