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.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 forkbase 0.1.0
File Size Uploaded Provenance Actions
forkbase-0.1.0.tar.gz 7.3 kB Without provenance Details for forkbase-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 15.1 kB

Release files / forkbase-0.1.0.tar.gz

Download URL forkbase-0.1.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f1e17bbcafa561e07770e03d899243dfbd53349e2f66e59ecb23700dff15ae0b
BLAKE2b-256 checksum
How to use checksums
bf12df5fbd5b4b04a9e29ca37faa97f846024d00739bbff620ca3a4b7f0d96fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL forkbase-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a81ae4d68c8eb47327f36cb8424f0929d73448c35a922ca0ad22f01b6b579ba5
BLAKE2b-256 checksum
How to use checksums
103962acab4dd4bbdc4e65c0c9088f38d95c6ac062f910190d5022fcc1bfc3f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

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.1.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