Skip to main content

cv-ws-streamer

A high-performance Python library for streaming frames (OpenCV/NumPy) to a React client via Binary WebSockets.

Features

  • 🚀 Binary Protocol: Low overhead MJPEG streaming.
  • Two-way Communication: Handle clicks and events from the frontend.
  • FastAPI Integration: Easy to drop into existing FastAPI apps.

Installation

pip install cv-ws-streamer

Usage

from fastapi import FastAPI, WebSocket
from cv_ws_streamer.core import Streamer
import cv2

app = FastAPI()
streamer = Streamer(jpeg_quality=70)

@app.websocket("/ws")
async def websocket_endpoint(websocket: WebSocket):
    await streamer.connect(websocket)

# In your video loop:
# await streamer.send_frame(frame)

Metadata

Release files for cv-ws-streamer 0.1.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 cv-ws-streamer 0.1.0
File Size Uploaded Provenance
cv_ws_streamer-0.1.0.tar.gz 2.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cv-ws-streamer 0.1.0
File Interpreter ABI Platform
cv_ws_streamer-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / cv_ws_streamer-0.1.0.tar.gz

Download URL cv_ws_streamer-0.1.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
06600a2b2784f9331ad76ebec6ab48c06b08f6b67c6404f167c67a053a77bb77
BLAKE2b-256 checksum
How to use checksums
8833ebd1dc7ade939c5ecd7339f89485ece750c1c1dfbf1fec10f9884c313649
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / cv_ws_streamer-0.1.0-py3-none-any.whl

Download URL cv_ws_streamer-0.1.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
678b8917b36cb6465dfce530f215c492edbb07eecd86712719b5fbcf17d9c4a4
BLAKE2b-256 checksum
How to use checksums
7f634726cb78952b8d3fe8e5b4251cfc07731b05911455410cda42652f76023e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for cv-ws-streamer 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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