Metadata-Version: 2.1
Name: APIxoo
Version: 0.1.1
Summary: Python wrapper for Divoom Pixoo server API
Home-page: https://github.com/redphx/apixoo
Download-URL: https://github.com/redphx/apixoo
Author: redphx
License: MIT
Keywords: apixoo,divoom,pixoo,pixoo64
Platform: any
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development
Classifier: Programming Language :: Python
Requires-Python: >3.6
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: requests

# [WIP] APIxoo
Python module to interact with Divoom Pixoo app's server. .  
  
Unlike other libraries, this one will only focus on interacting with Divoom Pixoo's server.  

- Support decoding Divoom's animation formats to GIFs (16x16, 32x32, 64x64).  

## Install
```
pip install APIxoo
```

## Example
```python
from apixoo import APIxoo, GalleryCategory, GalleryDimension

# Divoom account
EMAIL = 'em@il.com'
MD5_PASSWORD = 'deadc0ffee...'

# Also accept password string with "password='password'"
api = APIxoo(EMAIL, md5_password=MD5_PASSWORD)
status = api.log_in()
if not status:
    print('Login error!')
else:
    files = api.get_category_files(
        GalleryCategory.RECOMMEND,
        dimension=GalleryDimension.W64H64,
        page=1,
        per_page=20,
    )

    for info in files:
        print(info)
        pixel_bean = api.download(info)
        if pixel_bean:
            pixel_bean.save_to_gif(f'{info.gallery_id}.gif', scale=5)
```

*To be updated...*  
