Skip to main content

braidpipe (worker SDK)

The Python worker SDK for braidpipe, the never-dark AI video middleware. The Rust daemon owns the media path; this package is how a Python process receives its frames — as zero-copy NumPy views over shared memory locally, or over the tcp-raw transport from another machine — and hands them back.

pip install braidpipe

A complete worker:

import braidpipe

def process(frame):          # (H, W, 3) uint8, RGB — mutate it in place
    frame[:, :, 0] //= 2     # your inference here

if __name__ == "__main__":
    braidpipe.run(process)

run() owns everything else: the handshake, the per-frame notification loop, freeing the shared-memory slot, acking (including "success": false when your code raises, so the stream falls back to passthrough instead of going dark), and the transport switch — set BRAIDPIPE_DAEMON=host:port and the same worker attaches over the network instead.

This package does not contain the daemon. Build it from the repository, which also has the full worker contract, examples, and deadline rules in docs/workers.md.

Metadata

Release files for braidpipe 0.5.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 braidpipe 0.5.0
File Size Uploaded
braidpipe-0.5.0.tar.gz 14.0 kB Details

Built distribution (wheel)

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

Total release size: 27.9 kB

Release files / braidpipe-0.5.0.tar.gz

Download URL braidpipe-0.5.0.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f2c450e744802eb7fe84837bedd00a1a194f10054742ed3bbcd9400a54b78e80
BLAKE2b-256 checksum
How to use checksums
dd4e6b696f035969d7a90f0ea9f0531f5111491233bb62dcb67b490e1910cfd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / braidpipe-0.5.0-py3-none-any.whl

Download URL braidpipe-0.5.0-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d80e7ff773d8db15d47e771f29d23a6dcaef156f26dd06e448aaccea77563635
BLAKE2b-256 checksum
How to use checksums
0c627d51f213aba84c921a29325c26cb8bef5864757e5a21e758a7161e687023
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

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