Repository navigation
Initial Release
v0.1.0 — Initial Release
First public release of moonlight-python, a Python client for Moonlight/Sunshine game streaming that delivers decoded video frames as numpy arrays.
Features
- Server discovery — automatic mDNS discovery or direct IP connection
- Cryptographic pairing — PIN-based pairing compatible with Sunshine and NVIDIA GameStream
- Frame streaming — receive decoded H.264/HEVC/AV1 frames as numpy arrays via a simple generator API
- Latest frame buffer — thread-safe drop-oldest buffer for CV pipelines that process slower than the stream rate
- Recording — save to video files (MP4) or image sequences (PNG/JPEG)
- Codec support — H.264, HEVC, and AV1
Installation
pip install moonlight-python
Pre-built manylinux wheels are available for Python 3.10–3.13 on x86_64 Linux. No compiler or system dependencies required.
Built on
- moonlight-common-c — core streaming protocol via CFFI
- PyAV (FFmpeg) — hardware-accelerated video decoding