Metadata-Version: 2.3
Name: tuya-vacuum
Version: 0.1.3
Summary: A python library to view maps from Tuya robot vacuums
Project-URL: Homepage, https://github.com/jaidenlabelle/tuya-vacuum
Project-URL: Issues, https://github.com/jaidenlabelle/tuya-vacuum/issues
Author-email: Jaiden Labelle <jaidenjlabelle@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# tuya-vacuum
tuya-vacuum is a python library to view maps from Tuya robot vacuums.

## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install tuya-vacuum.

```bash
pip install tuya-vacuum
```

## Usage
```python
from tuya_vacuum import TuyaVacuum

# Create a new TuyaVacuum instance
vacuum = TuyaVacuum(
    origin="https://openapi.tuyaus.com",
    client_id="<Client ID>",
    client_secret="<Client Secret>",
    device_id="<Device ID>"
)

# Parse the map data
vacuum_map = vacuum.fetch_realtime_map()

# Save the map as an image
image = vacuum_map.to_image()
image.save("output.png")
```

## Compatability List

This is a list of all currently tested devices. Create a new [issue](https://github.com/jaidenlab/tuya-vacuum/issues) to add your device.

| Device                                                | Support                           |
| ----------------------------------------------------- | --------------------------------- |
| [Lefant M1](https://www.lefant.com/en-ca/products/m1) | <text style="color:lightgreen">Supported</text> |

## Special Thanks
- [Tuya Cloud Vacuum Map Extractor](https://github.com/oven-lab/tuya_cloud_map_extractor) by [@oven-lab](https://github.com/oven-lab)
