Metadata-Version: 2.4
Name: moonlight-python
Version: 0.2.0
Summary: Python client for Moonlight/Sunshine game streaming — receive decoded video frames as numpy arrays
License-Expression: GPL-3.0-or-later
Requires-Python: >=3.10
Requires-Dist: cryptography>=41.0
Requires-Dist: requests>=2.28
Requires-Dist: zeroconf>=0.80
Requires-Dist: cffi>=1.15
Requires-Dist: av>=10.0
Requires-Dist: numpy>=1.24
Requires-Dist: Pillow>=9.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-mock>=3.10; extra == "dev"
Description-Content-Type: text/markdown

# moonlight-python

Python client for [Moonlight](https://moonlight-stream.org/) / [Sunshine](https://app.lizardbyte.dev/Sunshine/) game streaming. Receives decoded video frames as numpy arrays for computer vision and robotics pipelines.

## Installation

```bash
pip install moonlight-python
```

## Quick Start

```python
from moonlight_python import MoonlightClient

client = MoonlightClient()
client.connect("192.168.1.100")  # auto-pairs on first connection

with client.stream(app="Desktop", width=1920, height=1080, fps=30):
    client.capture("screenshot.png")          # single screenshot
    client.record("capture.mp4", duration=5)  # record 5 seconds
    client.start_recording("long.mp4")        # background recording
    # ... do other work ...
    client.stop_recording()
```

For full documentation, see the [GitHub repository](https://github.com/StanfordFSL/moonlight-python).
