Metadata-Version: 2.4
Name: easy-ray-threads
Version: 0.1.0
Summary: Run a function over a list in parallel with Ray.
Author: Lucas Mali
License: MIT
Project-URL: Homepage, https://github.com/LucasMali/multi-threading-web-scraper
Project-URL: Repository, https://github.com/LucasMali/multi-threading-web-scraper
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: ray>=2.56.0

# easy-ray-threads

Run a function over a list in parallel with [Ray](https://www.ray.io/).

## Install

```bash
pip install easy-ray-threads
```

Local (from this monorepo):

```bash
pip install -e packages/easy-ray-threads
```

## Usage

```python
from easy_ray_threads import Processor

results = Processor().process(
    ["a", "b", "c"],
    lambda item: item.upper(),
)
```

Successful results are whatever your function returned. Failures are returned as `{"item": ..., "error": "..."}`.
