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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

braidpipe-0.4.1.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

braidpipe-0.4.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file braidpipe-0.4.1.tar.gz.

File metadata

  • Download URL: braidpipe-0.4.1.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for braidpipe-0.4.1.tar.gz
Algorithm Hash digest
SHA256 db2b03bf22a4e9ca5a77d3a62806045f553bf2742e4a89987d078d2da2331a6c
MD5 4b2e25ff7a48564ffd5f6eacd7f7a1e7
BLAKE2b-256 2d581a1ab46b6f850d08f0236dd878aeb6aee45ff400a8a8d1997acaf8f6c3bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for braidpipe-0.4.1.tar.gz:

Publisher: publish-pypi.yml on emdiple/braidpipe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file braidpipe-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: braidpipe-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for braidpipe-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b608c1bcb5b663ead44ed1709b96361592b026c8526c2e3b4997f12503a63a1c
MD5 1e6a10004d14c28db1a7f89621832775
BLAKE2b-256 83ac79a1be815a827eb14e696dde280f8bca4e516b14c33c2fb0071874b2d491

See more details on using hashes here.

Provenance

The following attestation bundles were made for braidpipe-0.4.1-py3-none-any.whl:

Publisher: publish-pypi.yml on emdiple/braidpipe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 files

0.4.0

2 files

0.3.0

2 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