Skip to main content

forkbase

Forkbase for Python (3.9+, standard library only): agents' runs (a world per run, propose, review) and jobs. Tables, auth, storage and realtime speak Supabase's APIs: client.supabase() returns a supabase-py client for them (pip install "forkbase[supabase]").

from forkbase import create_client

fb = create_client("https://api.example.com", agent_token)
scope = fb.agents.with_run("close stale carts")
with scope as run:
    run.sql("update carts set closed = true where updated_at < now() - interval '30 days'")
print(scope.outcome["status"])  # merged | held | conflict
  • fb.agents: run(intent), with_run(intent) (proposes on success, discards on an exception), get, list_runs; with the service key also create, approve, reject, undo.
  • run: sql(query, params), changes(), propose(), discard(), refresh().
  • fb.jobs (service key): deploy, functions, invoke(name, payload, wait=..., delay_s=..., run_at=..., idempotency_key=...), get, list, cancel, retry, schedule.
  • Inside a job: step(name, fn), sleep(name, seconds), sql(query, params), context(). The job runtime ships this module, so functions import it without installing it.

Errors are ForkbaseError with status, code and body.

Metadata

Release files for forkbase 0.8.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 forkbase 0.8.0
File Size Uploaded Provenance Actions
forkbase-0.8.0.tar.gz 7.0 kB Without provenance Details for forkbase-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 14.3 kB

Release files / forkbase-0.8.0.tar.gz

Download URL forkbase-0.8.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ede64377ba638581fc5a68a976e52a900a0254da2a841813bec74b2391016704
BLAKE2b-256 checksum
How to use checksums
c67310183725c154abbdbcc380ac6325b8508a3db6d10144fd80d0ae4d4a1454
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / forkbase-0.8.0-py3-none-any.whl

Download URL forkbase-0.8.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acaa9174392e15a881505a6589e6f14abb2ddf3cc8e10442440d4c29fb292ea5
BLAKE2b-256 checksum
How to use checksums
dbb1fa2200003a56fe126c1e6ae2880f77d8058283376ed28f22fab5a60379e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for forkbase 0.8.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.

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.

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files No 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