Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiopixooapi-0.0.3a0.tar.gz (30.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiopixooapi-0.0.3a0-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

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

Hashes for aiopixooapi-0.0.3a0.tar.gz
Algorithm Hash digest
SHA256 aeeac2f91248df2680ba10654b0eb7079a79cb55ff662018ba68d57e19f95bf9
MD5 5682abe842f06f8f3526f08a9a9a9ab0
BLAKE2b-256 9db6d6dcc8b38e0d2eccd927bab1d695916e34f7529584c844fdcdfbe9890a3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiopixooapi-0.0.3a0.tar.gz:

Publisher: python-publish.yml on KoenDierckx/aiopixooapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for aiopixooapi-0.0.3a0-py3-none-any.whl
Algorithm Hash digest
SHA256 c54d93b13bb2f0a97ca028a6df860e75a3424d15eaea4c7f945b67ba322f251f
MD5 9f6b4846e9ab1cfd86c7a69a9d5e0475
BLAKE2b-256 63a5bfcd638dc64578cdf4ed23d531d4253a6116334101d356cd8486e114f967

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiopixooapi-0.0.3a0-py3-none-any.whl:

Publisher: python-publish.yml on KoenDierckx/aiopixooapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page