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.

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.3.0.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.3.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: braidpipe-0.3.0.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.3.0.tar.gz
Algorithm Hash digest
SHA256 0e452449bc9c455b7ceec01803245489c2be17bddbf6f6fd3044207dda800277
MD5 5950960b889076a801cd52209b3f9299
BLAKE2b-256 f91497618c5f4b1e52a03d8c9aff09dcebedffb64c8220d3401e3db35af27210

See more details on using hashes here.

Provenance

The following attestation bundles were made for braidpipe-0.3.0.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: braidpipe-0.3.0-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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 753c257a65168919024fef980134b86d3a815abd392e1060923edf027e2493a7
MD5 d5720f092140fc11d00b571a61a06e7f
BLAKE2b-256 9896d0d37edbafa453d68c5ed2d7ba675e2a3654db1b66f837d9e85e7785f53e

See more details on using hashes here.

Provenance

The following attestation bundles were made for braidpipe-0.3.0-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

0.4.1

2 files

0.4.0

2 files

This release

0.3.0 This release

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