Skip to main content

pyitach

Async Python library for discovering and controlling Global Caché iTach IP2IR devices.

pyitach provides low-level access to the Global Caché iTach TCP/IP protocol used by the:

  • Global Caché iTach IP2IR

The library is designed for asyncio-based applications and can be used independently of Home Assistant.


Features

  • Async TCP client
  • UDP multicast device discovery
  • IR command transmission
  • Device capability queries
  • Device identity queries
  • Typed Python package (py.typed)
  • No Home Assistant dependency

Installation

pip install pyitach

Requirements

  • Python 3.11+
  • asyncio-compatible environment

Supported Devices

The library is currently intended for:

  • Global Caché iTach IP2IR

Other Global Caché devices are not currently targeted or officially supported.


Quick Start

Connect to a Device

import asyncio

from pyitach import ItachClient


async def main() -> None:
    client = ItachClient("192.168.1.211")

    await client.async_connect()

    try:
        devices = await client.async_getdevices()

        print(devices)

    finally:
        await client.async_disconnect()


asyncio.run(main())

Sending IR Commands

import asyncio

from pyitach import ItachClient


async def main() -> None:
    client = ItachClient("192.168.1.211")

    await client.async_connect()

    try:
        await client.async_sendir(
            connector=1,
            command=(
                "sendir,1:1,1,38000,1,1,"
                "343,171,21,21,21,64"
            ),
        )

    finally:
        await client.async_disconnect()


asyncio.run(main())

Device Discovery

One-Shot Discovery

import asyncio

from pyitach.discovery import async_discover_once


async def main() -> None:
    beacon = await async_discover_once(timeout=5.0)

    print(beacon)


asyncio.run(main())

Discovery Listener

import asyncio

from pyitach.discovery import (
    ItachDiscoveryBeacon,
    ItachDiscoveryListener,
)


async def on_beacon(beacon: ItachDiscoveryBeacon) -> None:
    print(beacon)


async def main() -> None:
    listener = ItachDiscoveryListener(on_beacon)

    await listener.async_start()

    await asyncio.sleep(60)

    await listener.async_stop()


asyncio.run(main())

Development

Clone Repository

git clone https://github.com/<username>/pyitach.git
cd pyitach

Create Virtual Environment

python -m venv .venv
source .venv/bin/activate

Windows PowerShell:

.venv\Scripts\Activate.ps1

Install Development Dependencies

uv sync --group dev

Run Tests

pytest

Run Type Checking

mypy src tests

Build Package

python -m build

Project Structure

src/pyitach/
    __init__.py
    client.py
    protocol.py
    discovery.py
    capabilities.py
    identity.py
    exceptions.py

License

Apache-2.0


Disclaimer

Global Caché is a trademark of Global Caché, Inc.

Metadata

Release files for pyitach 0.1.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 pyitach 0.1.0
File Size Uploaded Provenance Actions
pyitach-0.1.0.tar.gz 2.1 MB Without provenance Details for pyitach-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.1 MB

Release files / pyitach-0.1.0.tar.gz

Download URL pyitach-0.1.0.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
a61d2cfdb13338b91df0af5c868d26376ef0ad0ff96f6f033de5d117ebb7ed76
BLAKE2b-256 checksum
How to use checksums
4d700ef34d727db06edd7157adeeb83c47a1d11b0e3d6d513375cf0ac676e7c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / pyitach-0.1.0-py3-none-any.whl

Download URL pyitach-0.1.0-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fd667b7a39c66984336f68eccab027af538bb06134850f44ae7e3f26df4df3c
BLAKE2b-256 checksum
How to use checksums
5205c40c999f86cb8a112ffcb163a4036f9ea05707b038c994bd0b8f12ad2254
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for pyitach 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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