python-rako-2025


Namepython-rako-2025 JSON
Version 0.4.3 PyPI version JSON
download
home_pageNone
SummaryAsynchronous Python client for Rako Controls Lighting
upload_time2025-07-14 10:38:14
maintainerNone
docs_urlNone
authorNone
requires_python>=3.12
licenseNone
keywords api async automation client controls lighting rako
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # Python: Rako Controls API Client

[![GitHub Release][releases-shield]][releases]
![Project Stage][project-stage-shield]
![Project Maintenance][maintenance-shield]
[![License][license-shield]](LICENSE)

[![Build Status][build-shield]][build]
[![Code Coverage][codecov-shield]][codecov]
[![Code Quality][code-quality-shield]][code-quality]


Asynchronous Python client for Rako Controls.

**This is a modernized fork** that has been updated to Python 3.12+ best practices, includes async concurrency fixes for Home Assistant integration, and uses modern tooling (Ruff, Hatchling, etc.).

## About

This package allows you to control and monitor Rako Controls devices
programmatically. It is mainly created to allow third-party programs to automate
their behavior.

## Installation

```bash
pip install python-rako-2025
```

## Usage

```python
import asyncio
import aiohttp
from python_rako import discover_bridge, Bridge


async def main():
    # Discover bridge on network
    bridge_info = await discover_bridge()
    print(f"Found bridge: {bridge_info}")

    # Create bridge instance
    bridge = Bridge(
        host=bridge_info["host"],
        port=bridge_info["port"],
        name=bridge_info["name"],
        mac=bridge_info["mac"]
    )

    # Get bridge information and discover devices
    async with aiohttp.ClientSession() as session:
        info = await bridge.get_info(session)
        print(f"Bridge version: {info.version}")

        # Discover all lights
        async for light in bridge.discover_lights(session):
            print(f"Found light: {light.title} (Room {light.room_id})")


if __name__ == "__main__":
    asyncio.run(main())
```

## Changelog & Releases

This repository keeps a change log using [GitHub's releases][releases]
functionality. The format of the log is based on
[Keep a Changelog][keepchangelog].

Releases are based on [Semantic Versioning][semver], and use the format
of ``MAJOR.MINOR.PATCH``. In a nutshell, the version will be incremented
based on the following:

- ``MAJOR``: Incompatible or major changes.
- ``MINOR``: Backwards-compatible new features and enhancements.
- ``PATCH``: Backwards-compatible bugfixes and package updates.

## Contributing

This is an active open-source project. We are always open to people who want to
use the code or contribute to it.

We've set up a separate document for our
[contribution guidelines](CONTRIBUTING.md).

Thank you for being involved! :heart_eyes:

## Setting up development environment

In case you'd like to contribute, a `Makefile` has been included to ensure a
quick start.

```bash
make venv
source ./venv/bin/activate
make dev
```

Now you can start developing, run `make` without arguments to get an overview
of all make goals that are available (including description):

```bash
$ make
Asynchronous Python client for Rako Controls Lighting.

Usage:
  make help                            Shows this message.
  make dev                             Set up a development environment.
  make lint                            Run Ruff linting and formatting checks.
  make format                          Format code with Ruff.
  make typecheck                       Run type checking with MyPy.
  make check                           Run all checks (linting, formatting, and type checking).
  make test                            Run tests quickly with the default Python.
  make coverage                        Check code coverage quickly with the default Python.
  make install                         Install the package to the active Python's site-packages.
  make clean                           Removes build, test, coverage and Python artifacts.
  make clean-all                       Removes all venv, build, test, coverage and Python artifacts.
  make clean-build                     Removes build artifacts.
  make clean-pyc                       Removes Python file artifacts.
  make clean-test                      Removes test and coverage artifacts.
  make clean-venv                      Removes Python virtual environment artifacts.
  make dist                            Builds source and wheel package.
  make release                         Release build on PyPI.
  make venv                            Create Python venv environment.
  make bump-patch                      Bump patch version (x.y.Z) and commit.
  make bump-minor                      Bump minor version (x.Y.z) and commit.
  make bump-major                      Bump major version (X.y.z) and commit.
```

## Authors & contributors

The original setup of this repository is by [Ben Marengo][marengaz].
Currently maintained by [Simon Leigh][simonleigh].

For a full list of all authors and contributors,
check [the contributor's page][contributors].

## License

[License](LICENSE)

[build-shield]: https://github.com/simonleigh/python-rako/workflows/Continuous%20Integration/badge.svg
[build]: https://github.com/simonleigh/python-rako/actions
[code-quality-shield]: https://img.shields.io/lgtm/grade/python/g/simonleigh/python-rako.svg?logo=lgtm&logoWidth=18
[code-quality]: https://lgtm.com/projects/g/simonleigh/python-rako/context:python
[codecov-shield]: https://codecov.io/gh/simonleigh/python-rako/branch/master/graph/badge.svg
[codecov]: https://codecov.io/gh/simonleigh/python-rako
[contributors]: https://github.com/simonleigh/python-rako/graphs/contributors
[marengaz]: https://github.com/marengaz
[simonleigh]: https://github.com/simonleigh
[keepchangelog]: http://keepachangelog.com/en/1.0.0/
[license-shield]: https://img.shields.io/github/license/simonleigh/python-rako.svg
[maintenance-shield]: https://img.shields.io/maintenance/yes/2025.svg
[project-stage-shield]: https://img.shields.io/badge/project%20stage-stable-green.svg
[releases-shield]: https://img.shields.io/github/release/simonleigh/python-rako.svg
[releases]: https://github.com/simonleigh/python-rako/releases
[semver]: http://semver.org/spec/v2.0.0.html

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "python-rako-2025",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "api, async, automation, client, controls, lighting, rako",
    "author": null,
    "author_email": "Simon Leigh <simonleigh@users.noreply.github.com>",
    "download_url": "https://files.pythonhosted.org/packages/68/2c/45c69db6f492ac332a99496b392e736df715eac3bd7a52c283599e21c0c5/python_rako_2025-0.4.3.tar.gz",
    "platform": null,
    "description": "# Python: Rako Controls API Client\n\n[![GitHub Release][releases-shield]][releases]\n![Project Stage][project-stage-shield]\n![Project Maintenance][maintenance-shield]\n[![License][license-shield]](LICENSE)\n\n[![Build Status][build-shield]][build]\n[![Code Coverage][codecov-shield]][codecov]\n[![Code Quality][code-quality-shield]][code-quality]\n\n\nAsynchronous Python client for Rako Controls.\n\n**This is a modernized fork** that has been updated to Python 3.12+ best practices, includes async concurrency fixes for Home Assistant integration, and uses modern tooling (Ruff, Hatchling, etc.).\n\n## About\n\nThis package allows you to control and monitor Rako Controls devices\nprogrammatically. It is mainly created to allow third-party programs to automate\ntheir behavior.\n\n## Installation\n\n```bash\npip install python-rako-2025\n```\n\n## Usage\n\n```python\nimport asyncio\nimport aiohttp\nfrom python_rako import discover_bridge, Bridge\n\n\nasync def main():\n    # Discover bridge on network\n    bridge_info = await discover_bridge()\n    print(f\"Found bridge: {bridge_info}\")\n\n    # Create bridge instance\n    bridge = Bridge(\n        host=bridge_info[\"host\"],\n        port=bridge_info[\"port\"],\n        name=bridge_info[\"name\"],\n        mac=bridge_info[\"mac\"]\n    )\n\n    # Get bridge information and discover devices\n    async with aiohttp.ClientSession() as session:\n        info = await bridge.get_info(session)\n        print(f\"Bridge version: {info.version}\")\n\n        # Discover all lights\n        async for light in bridge.discover_lights(session):\n            print(f\"Found light: {light.title} (Room {light.room_id})\")\n\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n## Changelog & Releases\n\nThis repository keeps a change log using [GitHub's releases][releases]\nfunctionality. The format of the log is based on\n[Keep a Changelog][keepchangelog].\n\nReleases are based on [Semantic Versioning][semver], and use the format\nof ``MAJOR.MINOR.PATCH``. In a nutshell, the version will be incremented\nbased on the following:\n\n- ``MAJOR``: Incompatible or major changes.\n- ``MINOR``: Backwards-compatible new features and enhancements.\n- ``PATCH``: Backwards-compatible bugfixes and package updates.\n\n## Contributing\n\nThis is an active open-source project. We are always open to people who want to\nuse the code or contribute to it.\n\nWe've set up a separate document for our\n[contribution guidelines](CONTRIBUTING.md).\n\nThank you for being involved! :heart_eyes:\n\n## Setting up development environment\n\nIn case you'd like to contribute, a `Makefile` has been included to ensure a\nquick start.\n\n```bash\nmake venv\nsource ./venv/bin/activate\nmake dev\n```\n\nNow you can start developing, run `make` without arguments to get an overview\nof all make goals that are available (including description):\n\n```bash\n$ make\nAsynchronous Python client for Rako Controls Lighting.\n\nUsage:\n  make help                            Shows this message.\n  make dev                             Set up a development environment.\n  make lint                            Run Ruff linting and formatting checks.\n  make format                          Format code with Ruff.\n  make typecheck                       Run type checking with MyPy.\n  make check                           Run all checks (linting, formatting, and type checking).\n  make test                            Run tests quickly with the default Python.\n  make coverage                        Check code coverage quickly with the default Python.\n  make install                         Install the package to the active Python's site-packages.\n  make clean                           Removes build, test, coverage and Python artifacts.\n  make clean-all                       Removes all venv, build, test, coverage and Python artifacts.\n  make clean-build                     Removes build artifacts.\n  make clean-pyc                       Removes Python file artifacts.\n  make clean-test                      Removes test and coverage artifacts.\n  make clean-venv                      Removes Python virtual environment artifacts.\n  make dist                            Builds source and wheel package.\n  make release                         Release build on PyPI.\n  make venv                            Create Python venv environment.\n  make bump-patch                      Bump patch version (x.y.Z) and commit.\n  make bump-minor                      Bump minor version (x.Y.z) and commit.\n  make bump-major                      Bump major version (X.y.z) and commit.\n```\n\n## Authors & contributors\n\nThe original setup of this repository is by [Ben Marengo][marengaz].\nCurrently maintained by [Simon Leigh][simonleigh].\n\nFor a full list of all authors and contributors,\ncheck [the contributor's page][contributors].\n\n## License\n\n[License](LICENSE)\n\n[build-shield]: https://github.com/simonleigh/python-rako/workflows/Continuous%20Integration/badge.svg\n[build]: https://github.com/simonleigh/python-rako/actions\n[code-quality-shield]: https://img.shields.io/lgtm/grade/python/g/simonleigh/python-rako.svg?logo=lgtm&logoWidth=18\n[code-quality]: https://lgtm.com/projects/g/simonleigh/python-rako/context:python\n[codecov-shield]: https://codecov.io/gh/simonleigh/python-rako/branch/master/graph/badge.svg\n[codecov]: https://codecov.io/gh/simonleigh/python-rako\n[contributors]: https://github.com/simonleigh/python-rako/graphs/contributors\n[marengaz]: https://github.com/marengaz\n[simonleigh]: https://github.com/simonleigh\n[keepchangelog]: http://keepachangelog.com/en/1.0.0/\n[license-shield]: https://img.shields.io/github/license/simonleigh/python-rako.svg\n[maintenance-shield]: https://img.shields.io/maintenance/yes/2025.svg\n[project-stage-shield]: https://img.shields.io/badge/project%20stage-stable-green.svg\n[releases-shield]: https://img.shields.io/github/release/simonleigh/python-rako.svg\n[releases]: https://github.com/simonleigh/python-rako/releases\n[semver]: http://semver.org/spec/v2.0.0.html\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Asynchronous Python client for Rako Controls Lighting",
    "version": "0.4.3",
    "project_urls": {
        "Homepage": "https://github.com/simonleigh/python-rako",
        "Issues": "https://github.com/simonleigh/python-rako/issues",
        "Repository": "https://github.com/simonleigh/python-rako"
    },
    "split_keywords": [
        "api",
        " async",
        " automation",
        " client",
        " controls",
        " lighting",
        " rako"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9e951e9fef059b6bb4ac38a5050d3d1a322b211a24717a65296ce76495a3cdad",
                "md5": "22dad5a450f37f4e541e9e5213bbceb3",
                "sha256": "ce19bcfe850972f4eda080847d7e4aa202b1fc34d368a4b1382f53ad46cabb11"
            },
            "downloads": -1,
            "filename": "python_rako_2025-0.4.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "22dad5a450f37f4e541e9e5213bbceb3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 12793,
            "upload_time": "2025-07-14T10:38:12",
            "upload_time_iso_8601": "2025-07-14T10:38:12.878063Z",
            "url": "https://files.pythonhosted.org/packages/9e/95/1e9fef059b6bb4ac38a5050d3d1a322b211a24717a65296ce76495a3cdad/python_rako_2025-0.4.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "682c45c69db6f492ac332a99496b392e736df715eac3bd7a52c283599e21c0c5",
                "md5": "d1ebe03c72ebb22d731d060099c6356c",
                "sha256": "8b8f26e90a199de43a26c2a42ced265eb666d2710ae72667f96e12bd090393e5"
            },
            "downloads": -1,
            "filename": "python_rako_2025-0.4.3.tar.gz",
            "has_sig": false,
            "md5_digest": "d1ebe03c72ebb22d731d060099c6356c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 209411,
            "upload_time": "2025-07-14T10:38:14",
            "upload_time_iso_8601": "2025-07-14T10:38:14.049462Z",
            "url": "https://files.pythonhosted.org/packages/68/2c/45c69db6f492ac332a99496b392e736df715eac3bd7a52c283599e21c0c5/python_rako_2025-0.4.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-14 10:38:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "simonleigh",
    "github_project": "python-rako",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "python-rako-2025"
}
        
Elapsed time: 1.08642s