Metadata-Version: 2.4
Name: moonlight-python
Version: 0.1.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")
client.pair() 

for frame in client.stream(app="Desktop", width=1920, height=1080, fps=30):
    print(f"Frame {frame.frame_number}: {frame.width}x{frame.height}")
    break
```

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