llama-index-tools-brewpage
LlamaIndex tool spec that publishes HTML, Markdown, JSON, key-value stores and files to BrewPage and returns a shareable URL. Free, no account, no API key.
Install
pip install llama-index-tools-brewpage
Usage
from llama_index.tools.brewpage import BrewPageToolSpec
spec = BrewPageToolSpec()
page = spec.publish_page("# Weekly report\n\nAll green.", format="markdown")
print(page["url"])
With an agent (any function-calling LLM):
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.tools.brewpage import BrewPageToolSpec
agent = FunctionAgent(tools=BrewPageToolSpec().to_tool_list(), llm=llm)
response = await agent.run("Write a one-page HTML changelog and publish it.")
Tools
| Tool | API | Result |
|---|---|---|
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 URL, one initial key |
upload_file |
POST /api/files |
Download or page URL for a local file |
Every tool also takes ttl_days, password and namespace and returns a dict with url, id, namespace, owner_token, management_link, expires_at. API errors (rate limits, refused content) come back as {"error": "..."} so the agent can react.
The first call gets an owner token; the spec reuses it, so all publications share one owner. To keep it across runs, pass it in:
from llama_index.tools.brewpage import BrewPageClient, BrewPageToolSpec
spec = BrewPageToolSpec(client=BrewPageClient(owner_token="..."))
Environment: BREWPAGE_OWNER_TOKEN, BREWPAGE_NAMESPACE, BREWPAGE_BASE_URL (default https://brewpage.app).
Limits
- Hosting is temporary: publications expire after 15 days by default,
ttl_days1-30. - Without
namespacea publication is private: unlisted and not indexed, but anyone with the link can open it. Addpasswordto restrict reads. namespace="public"lists pages in the public gallery and search engines. Never put secrets or personal data there.- Size caps: HTML 5 MB, JSON 1 MB, KV value 1 MB, file 5 MB (video 20 MB). Current values: brewpage.app/api/limits.
Related
- BrewPage and its API
- API reference
- langchain-brewpage: the same tools for LangChain (PyPI)
- brewpage-publish-plugins: other integrations
- brewpage-mcp: MCP server on npm; source and OpenAPI contract in brewpage-openapi
- brewpage-action: GitHub Action that publishes CI artifacts (Marketplace)
- brewpage-cookbook: interactive recipes published on BrewPage
- brewpage-obsidian: Obsidian plugin that publishes notes (Obsidian community)
- brewpage-browser-extension: browser extension that publishes pages, selections and files
- brewpage-codex-plugin: Codex plugin with the publishing skill and remote MCP
Development
uv sync --group test
uv run pytest
BREWPAGE_LIVE=1 uv run pytest -m live # publishes one private page on production
Support
info@brewpage.app or GitHub issues.
License
Metadata
Release files for llama-index-tools-brewpage 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_tools_brewpage-0.1.1.tar.gz | 7.3 kB | With provenance | Details for llama_index_tools_brewpage-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_tools_brewpage-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for llama_index_tools_brewpage-0.1.1-py3-none-any.whl |
Total release size: 14.6 kB
Release files / llama_index_tools_brewpage-0.1.1.tar.gz
| Download URL | llama_index_tools_brewpage-0.1.1.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49082e612c08bc2d9bc4f64bcfd609c609e5790062c4719dcdc8f510db207c2e
|
|
BLAKE2b-256 checksum How to use checksums |
910e0e1074394a93e491b0823974d19d53973ed66780b6b455fbf5d6f73dea1b
|
| 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 logRelease files / llama_index_tools_brewpage-0.1.1-py3-none-any.whl
| Download URL | llama_index_tools_brewpage-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0885ac60791fd201a45e3023ca3fb947cafad922ef7573bcf0c371db4db47722
|
|
BLAKE2b-256 checksum How to use checksums |
9d84daa108029a54cce2b6c7cac6c9610272a827e3a5143e3f6df67a50596e4a
|
| 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 logSecurity for llama-index-tools-brewpage 0.1.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
Both files in this release have been uploaded with provenance metadata.
Attestation for llama_index_tools_brewpage-0.1.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 Nov 6, 2026.
Transparency logA 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.