Asynchronous Python library for Divoom Pixoo64 LED display
Project description
AioPixooAPI
A Python library for interacting with Divoom Pixoo devices and the Divoom online API.
Installation
Install the library using pip:
pip install aiopixooapi
Usage
Pixoo64 (Device API)
The Pixoo64 class is used to interact with a Pixoo64 device on your local network.
import asyncio
from aiopixooapi.pixoo64 import Pixoo64
async def main():
async with Pixoo64("192.168.1.100") as pixoo:
# Reboot the device
response = await pixoo.sys_reboot()
print(response)
# Get all settings
settings = await pixoo.get_all_settings()
print(settings)
asyncio.run(main())
Divoom (Online API)
The Divoom class is used to interact with the Divoom online API.
import asyncio
from aiopixooapi.divoom import Divoom
async def main():
async with Divoom() as divoom:
# Get dial types
dial_types = await divoom.get_dial_type()
print(dial_types)
# Get dial list for a specific type and page
dial_list = await divoom.get_dial_list("Social", 1)
print(dial_list)
asyncio.run(main())
Development
Setup
To set up the development environment, clone the repository, create a virtual environment and install the required packages
pip install -e .
pip install -e .[test]
Testing
Run the tests using pytest:
pytest
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiopixooapi-0.0.3a0.tar.gz.
File metadata
- Download URL: aiopixooapi-0.0.3a0.tar.gz
- Upload date:
- Size: 30.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aeeac2f91248df2680ba10654b0eb7079a79cb55ff662018ba68d57e19f95bf9
|
|
| MD5 |
5682abe842f06f8f3526f08a9a9a9ab0
|
|
| BLAKE2b-256 |
9db6d6dcc8b38e0d2eccd927bab1d695916e34f7529584c844fdcdfbe9890a3a
|
Provenance
The following attestation bundles were made for aiopixooapi-0.0.3a0.tar.gz:
Publisher:
python-publish.yml on KoenDierckx/aiopixooapi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiopixooapi-0.0.3a0.tar.gz -
Subject digest:
aeeac2f91248df2680ba10654b0eb7079a79cb55ff662018ba68d57e19f95bf9 - Sigstore transparency entry: 219856204
- Sigstore integration time:
-
Permalink:
KoenDierckx/aiopixooapi@62e04b5a22a9c14216701ee65e7bcfb28a8da71e -
Branch / Tag:
refs/tags/v0.0.3-alpha - Owner: https://github.com/KoenDierckx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@62e04b5a22a9c14216701ee65e7bcfb28a8da71e -
Trigger Event:
release
-
Statement type:
File details
Details for the file aiopixooapi-0.0.3a0-py3-none-any.whl.
File metadata
- Download URL: aiopixooapi-0.0.3a0-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c54d93b13bb2f0a97ca028a6df860e75a3424d15eaea4c7f945b67ba322f251f
|
|
| MD5 |
9f6b4846e9ab1cfd86c7a69a9d5e0475
|
|
| BLAKE2b-256 |
63a5bfcd638dc64578cdf4ed23d531d4253a6116334101d356cd8486e114f967
|
Provenance
The following attestation bundles were made for aiopixooapi-0.0.3a0-py3-none-any.whl:
Publisher:
python-publish.yml on KoenDierckx/aiopixooapi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiopixooapi-0.0.3a0-py3-none-any.whl -
Subject digest:
c54d93b13bb2f0a97ca028a6df860e75a3424d15eaea4c7f945b67ba322f251f - Sigstore transparency entry: 219856205
- Sigstore integration time:
-
Permalink:
KoenDierckx/aiopixooapi@62e04b5a22a9c14216701ee65e7bcfb28a8da71e -
Branch / Tag:
refs/tags/v0.0.3-alpha - Owner: https://github.com/KoenDierckx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@62e04b5a22a9c14216701ee65e7bcfb28a8da71e -
Trigger Event:
release
-
Statement type: