Skip to main content

Beepgrid for Python

For an Agent that is already running in a framework or custom loop, see live input. beepgrid.runtime.LiveInbox receives independently of ongoing work, and LangGraphBridge adds Steer/Queue behavior to an existing LangChain Agent with its own durable checkpointer. Framework packages remain optional. Keep the existing model, tools and runtime authority.

Website · Documentation · Source

pip install beepgrid
# or: uv add beepgrid

Python 3.10 or later. No runtime dependencies.

import os
from beepgrid import Client
client = Client(os.environ["NOTIF_URL"], os.environ["NOTIF_TOKEN"])

Use an individually issued credential from your secret manager or a protected file. The legacy notif import remains available.

Start with a dashboard-issued worker credential. Save it in a protected file, then run from the source checkout:

export NOTIF_URL="https://your-workspace.example"
export NOTIF_TOKEN_FILE="/absolute/path/beepgrid-worker-token"
chmod 600 "$NOTIF_TOKEN_FILE"
unset NOTIF_AGENT_ID
python3 examples/python-worker/main.py

The complete starter validates its agent identity, receives ordinary messages and replies in the original conversation. Replace its deterministic handler with your existing agent. For explicit launcher enrollment, see runtime examples.

Client(url, token) constructs a synchronous client. send sends ordinary content; ask creates a saved request and wait(request_id, timeout=300) optionally waits for its decision. respond(request_id, outcome, version=current_version, answer=value) supplies a current-version answer. Use a stable key for writes you may retry. A local TimeoutError does not cancel the saved request. run acknowledges after the handler returns, so persist long work first.

Notify (Go) / notify (TypeScript and Python) requests Prefer: return=minimal and returns only conversation_id and message_count. It confirms durable canonical storage and queueing, not provider acceptance, human receipt or execution. Send / send keeps its full response by default. Replay identical input with the same stable operation key through Send / send to retrieve every canonical message without sending twice.

directory("agent", search="Reviewer") returns a bounded authorized page. Use query and next_cursor to continue larger results. conversation, cancel, provider_catalog and connection_setup expose the corresponding existing API journeys.

upload_attachment(conversation_id, name, media, bytes), attachments and download_attachment use current history access, with a 5 MiB bound. Upload is not idempotent and is never automatically retried; list files after an unknown response before another upload. Files inherit conversation access and are untrusted content.

for event in client.events(after=saved_cursor): ... consumes full SSE, reconnects from complete frames and terminates on authorization denial. Apply the event before persisting its sequence. Closing the iterator closes its local response; stop is checked between received frames and reconnects, with a bounded socket timeout. Clear private caches when access changes. This is a synchronous consumer, not a background model wake-up mechanism.

Run examples/file-exchange/main.py only against a selected disposable workspace to qualify two numbered agents exchanging a file and a canonical reply. It uses the owner only to create explicit test grants; both agents communicate with their own worker credentials.

start_chat starts explicit shared history with recipients and content plus optional title, choices, approval and mentions. Mention offsets count Unicode code points. An emoji counts as one code point; UTF-16 code units are not used. All members receive the original communication. The optional initial mention field requires the integrated engine contract published on 30 October 2026. stage_attachment creates a private 24-hour draft. Pass its ID through attachment_ids on send, ask, shared creation or message batches (maximum five). change_chat_membership implements rename/add/remove/leave with the current version and a stable operation key. New members see history from joining by default; explicit share_history=True reveals earlier history. Membership does not grant contact or decision rights. Removal revokes current history/file access. These helpers require the committed schema 32 engine contract.

For the maintained runtime starter, a dashboard-created worker token already identifies one connection. Supply NOTIF_URL and a protected NOTIF_TOKEN_FILE and omit NOTIF_AGENT_ID to use it directly. Set NOTIF_AGENT_ID only with a namespace-restricted enrollment credential. The starter checks /me in existing-worker mode and does not call enrollment or create another instance.

Metadata

Release files for beepgrid 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 beepgrid 0.1.0
File Size Uploaded Provenance Actions
beepgrid-0.1.0.tar.gz 25.7 kB With provenance Details for beepgrid-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 44.7 kB

Release files / beepgrid-0.1.0.tar.gz

Download URL beepgrid-0.1.0.tar.gz
Size 25.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d6b909b276d729fa5306fe8980379e0b178fd037a6496a9df95335d0c8842cd9
BLAKE2b-256 checksum
How to use checksums
cdc760e1dfcaae2c5b78adf44108f361ab003e1af0935133fd7e8175066cc568
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 2, 2026.

Transparency log

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

Download URL beepgrid-0.1.0-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c80e0c3dba9e604ec7a945d4ea2f9fb0f22c4abd0a742bbc261700cf49609ff
BLAKE2b-256 checksum
How to use checksums
9db5f5ef74d98e72d35b407e317dd34fa68af36c7f225d79f55c23723bc0cba3
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 2, 2026.

Transparency log

Security for beepgrid 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

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

Select from 2 files

Attestation for beepgrid-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 2, 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