Skip to main content

pydeako

Description

pydeako is a Python library for discovering, connecting to, and interacting with Deako smart devices on the local network.

Installation

pip install pydeako

Usage

pydeako mdns discovery client

import asyncio
from pydeako import discover

async def _discover():
    d = discover.DeakoDiscoverer()
    try:
        address = await d.get_address()
        print(f"Found deako device at {address}!")
    except discover.DevicesNotFoundException:
        print("No devices found!")
        pass

if __name__ == "__main__":
    asyncio.run(_discover())

pydeako socket client

import asyncio
from pydeako import deako, discover

async def _discover():
    client_name = "MyClient"
    d = discover.DeakoDiscoverer()
    deako_client = deako.Deako(d.get_address, client_name=client_name)

    await deako_client.connect()
    await deako_client.find_devices()

    devices = deako_client.get_devices()

    # turn on all devices
    for uuid in devices:
        await deako_client.control_device(uuid, True)

if __name__ == "__main__":
    asyncio.run(_discover())

Contributing

Dev environment setup

  1. Use Python 3.11+
  2. python -m venv venv
  3. source venv/bin/activate
  4. pip install -r requirements.txt
  5. pip install -r requirements_test.txt

Checks

  1. pylint pydeako
  2. pycodestyle pydeako
  3. pytest pydeako

License

MIT License, see LICENSE.txt

Project status

Actively maintained by Deako.

Metadata

Release files for pydeako 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydeako 0.6.0
File Size Uploaded
pydeako-0.6.0.tar.gz 17.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydeako 0.6.0
File Interpreter ABI Platform
pydeako-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 41.4 kB

Release files / pydeako-0.6.0.tar.gz

Download URL pydeako-0.6.0.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a0db5452d7bc3c94530309195586e6c72e1f928df9e743dde6041ebbef9ab04f
BLAKE2b-256 checksum
How to use checksums
b0d6873941199f49ac010bd77183103d7d689b497cea4be3386b45632cf40bc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.11

Release files / pydeako-0.6.0-py3-none-any.whl

Download URL pydeako-0.6.0-py3-none-any.whl
Size 23.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bebea28f1aa790d02a6a6bfc53fb120c9a0cb56398a1b4c4a5e8135ee1c35def
BLAKE2b-256 checksum
How to use checksums
f2c6b6799b5c6b5f71ad12e57b48239c80f810d86db69ffd5c87af87e2b5a613
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.11

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

1 release file

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page