Python wrapper for Divoom Pixoo server API
Project description
[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).
Example
from apixoo import APIxoo, GalleryCategory, GalleryDimension
# Divoom account
EMAIL = 'em@il.com'
MD5_PASSWORD = 'deadc0ffee...'
api = APIxoo(EMAIL, md5_password=MD5_PASSWORD) # Also accept password string with "password='password'"
status = api.log_in()
if not status:
print('Login error!')
else:
files = api.get_category_files(
GalleryCategory.RECOMMEND,
dimension=GalleryDimension.W64H64,
page=page,
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...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
APIxoo-0.1.0.tar.gz
(7.7 kB
view hashes)
Built Distribution
APIxoo-0.1.0-py3-none-any.whl
(8.6 kB
view hashes)