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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e452449bc9c455b7ceec01803245489c2be17bddbf6f6fd3044207dda800277
|
|
| MD5 |
5950960b889076a801cd52209b3f9299
|
|
| BLAKE2b-256 |
f91497618c5f4b1e52a03d8c9aff09dcebedffb64c8220d3401e3db35af27210
|
Provenance
The following attestation bundles were made for braidpipe-0.3.0.tar.gz:
Publisher:
publish-pypi.yml on emdiple/braidpipe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
braidpipe-0.3.0.tar.gz -
Subject digest:
0e452449bc9c455b7ceec01803245489c2be17bddbf6f6fd3044207dda800277 - Sigstore transparency entry: 2676557475
- Sigstore integration time:
-
Permalink:
emdiple/braidpipe@1ae024dff73b874625d3c223a131c1172c37992a -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/emdiple
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@1ae024dff73b874625d3c223a131c1172c37992a -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
753c257a65168919024fef980134b86d3a815abd392e1060923edf027e2493a7
|
|
| MD5 |
d5720f092140fc11d00b571a61a06e7f
|
|
| BLAKE2b-256 |
9896d0d37edbafa453d68c5ed2d7ba675e2a3654db1b66f837d9e85e7785f53e
|
Provenance
The following attestation bundles were made for braidpipe-0.3.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on emdiple/braidpipe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
braidpipe-0.3.0-py3-none-any.whl -
Subject digest:
753c257a65168919024fef980134b86d3a815abd392e1060923edf027e2493a7 - Sigstore transparency entry: 2676557817
- Sigstore integration time:
-
Permalink:
emdiple/braidpipe@1ae024dff73b874625d3c223a131c1172c37992a -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/emdiple
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@1ae024dff73b874625d3c223a131c1172c37992a -
Trigger Event:
push
-
Statement type: