Skip to main content

Async Python client for ComAp controllers: LAN discovery and the native ECDH/AES-encrypted control protocol

Project description

pycomap

Async Python client for ComAp controllers (InteliLite AMF25 and likely compatible siblings): LAN discovery and the native ECDH/AES-encrypted control protocol on port 23.

Quick start

from ipaddress import IPv4Address

from pycomap import Controller, EthernetTransport
from pycomap.protocol import ComApClient

async with Controller(
    ComApClient(EthernetTransport(IPv4Address("192.168.1.9"))),
    access_code="0",   # factory default (drives ECDH key derivation)
    password=1234,     # write-protection password (0-9999); omit for read-only
) as ctrl:
    values = await ctrl.read_values()
    print(values)

    await ctrl.set_setpoint("Nominal RPM", 1500)
    await ctrl.set_setpoint("Summer Time Mode", "Winter")  # STRING_LIST by label

See the API docs for full reference. just docs-serve to browse locally.

Development

just format       # ruff check --fix + ruff format
just typecheck    # ty check
just unit         # tests/unit (no hardware needed)
just integration  # tests/integration (requires .env with PYCOMAP_TEST_HOST)
just docs-serve   # browse API docs locally
just ai-docs      # regenerate llms.txt and CLAUDE.md

pre-commit runs format + typecheck on every commit:

uv run pre-commit install

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

pycomap-2.1.0.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

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

pycomap-2.1.0-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

Details for the file pycomap-2.1.0.tar.gz.

File metadata

  • Download URL: pycomap-2.1.0.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pycomap-2.1.0.tar.gz
Algorithm Hash digest
SHA256 97705471b587547ff83c9e051ebd119f0b1cd945b799b3de5408005a2018a652
MD5 788b212ba50c28017679b74c88e8626d
BLAKE2b-256 c36793d3774d98edcb28226d7467dab3cbfb4a8e6e7e2322c637f2123bede17e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycomap-2.1.0.tar.gz:

Publisher: release.yml on igor-panteleev/pycomap

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

File details

Details for the file pycomap-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: pycomap-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 44.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pycomap-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83c5ff4f116f0054d1770cef865dbd7fb18fed7fc6ea79e17ced6411e5ef5d7a
MD5 62b6aaafaebbdfe1343eee082fdaf2ca
BLAKE2b-256 ed27a84887efdcf068cd3d4425b3f5eb7356ec93026fcb13920f8e62b1b208f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycomap-2.1.0-py3-none-any.whl:

Publisher: release.yml on igor-panteleev/pycomap

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