Skip to main content

llama-index-tools-brewpage

LlamaIndex tool spec for BrewPage: let an agent publish an HTML page, a Markdown document, a JSON document, a key-value store or a file and get back a shareable URL. No account and no API key are needed.

Each call returns the URL plus an owner token. The spec reuses that token for later publications, so everything the agent creates belongs to one owner. Publications are private and unlisted by default and expire after 15 days unless you set ttl_days (1-30).

Install

pip install llama-index-tools-brewpage

Tools

BrewPageToolSpec().to_tool_list() returns:

Tool API Use
publish_page POST /api/html HTML or Markdown page -> URL
publish_json POST /api/json JSON document -> URL
create_kv_store POST /api/kv Key-value store with one initial key -> URL
upload_file POST /api/files Local file -> download or page URL

Every tool also accepts ttl_days, password and namespace. Leave namespace empty for a private link. public lists pages in the public gallery and search engines, so never put secrets or personal data there.

Usage

from llama_index.tools.brewpage import BrewPageToolSpec

spec = BrewPageToolSpec()
page = spec.publish_page("# Weekly report\n\nAll green.", format="markdown")
print(page["url"], page["owner_token"])

With an agent:

from llama_index.core.agent.workflow import FunctionAgent
from llama_index.tools.brewpage import BrewPageToolSpec

agent = FunctionAgent(tools=BrewPageToolSpec().to_tool_list(), llm=llm)  # any function-calling LLM
response = await agent.run("Write a one-page HTML changelog and publish it.")

Each tool returns a dict: url, id, namespace, owner_token, management_link, expires_at. API errors (rate limits, refused content) come back as {"error": "..."} so the agent can react.

Configuration

Setting Constructor Environment
API base URL BrewPageClient(base_url=...) BREWPAGE_BASE_URL (default https://brewpage.app)
Owner token to reuse BrewPageClient(owner_token=...) BREWPAGE_OWNER_TOKEN
Default namespace BrewPageClient(namespace=...) BREWPAGE_NAMESPACE
from llama_index.tools.brewpage import BrewPageClient, BrewPageToolSpec

spec = BrewPageToolSpec(client=BrewPageClient(owner_token="..."))

Development

uv sync --group test
uv run pytest
BREWPAGE_LIVE=1 uv run pytest -m live   # one private page on production

License

MIT

Metadata

Release files for llama-index-tools-brewpage 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 llama-index-tools-brewpage 0.1.0
File Size Uploaded Provenance Actions
llama_index_tools_brewpage-0.1.0.tar.gz 6.8 kB With provenance Details for llama_index_tools_brewpage-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-tools-brewpage 0.1.0
File Interpreter ABI Platform Actions
llama_index_tools_brewpage-0.1.0-py3-none-any.whl Python 3 none any Details for llama_index_tools_brewpage-0.1.0-py3-none-any.whl

Total release size: 13.6 kB

Release files / llama_index_tools_brewpage-0.1.0.tar.gz

Download URL llama_index_tools_brewpage-0.1.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6fb9a5391b691719a10c7ae242c53362ae8dc5f3da2749e22034c9beeabc5345
BLAKE2b-256 checksum
How to use checksums
ec7d617b7e9310101e7d3a666bd6ee01b02bc215f1fe416345a81531a401963e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 6, 2026.

Transparency log

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

Download URL llama_index_tools_brewpage-0.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d4992336d3a0648bc105bc61e65b656b873a1defd51756bf6b6ca66da21b918
BLAKE2b-256 checksum
How to use checksums
82597186e0c74d88865b2d76503a9d28e554bec2edb9d33173448c90ce202324
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 6, 2026.

Transparency log

Security for llama-index-tools-brewpage 0.1.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for llama_index_tools_brewpage-0.1.0.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 Nov 6, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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