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

Uploaded Python 3

File details

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

File metadata

  • Download URL: braidpipe-0.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 8282cf906885e35abcfe8744b992705658c13294acf799d6c03e5bdaf9030f70
MD5 45255d6fbb9078838ef62f16f168a6a6
BLAKE2b-256 af00ce36a6d8a5ba41439cae36ba499e1ab9de53684ab544af89aa8dfab37f54

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: braidpipe-0.4.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fe6c1264060b300c0288fa0e6b732dbcec0105dec48670a7dbdf1b7c7352d59
MD5 ce8397602746b76d166b67f01ce1d6fd
BLAKE2b-256 50cb5df9aaddc2df43da22e94def6b5bcc0f3b0cd788bd4c361ef3137f5fe3aa

See more details on using hashes here.

Provenance

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

This release

0.4.0 This release

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