Skip to main content

ikalogic-at1000

Official Python SDK for the Ikalogic AT1000 Series Test Sequencers.

This package provides a high-level API to control and automate the Ikalogic AT1000, a test sequencer designed for functional testing of electronic devices, PCBs, and complex systems. It ships both a synchronous client (ikalogic_at1000) and an asynchronous client (ikalogic_at1000.aio).

Key Features

  • 32 Programmable I/Os: Handle analog and digital signals within a ±25V range.
  • 8 Dry Contact Relays: Control external circuits, with one relay equipped for high-precision current measurement.
  • Programmable Power Supply: Delivers 0 to 24V at up to 2A with precise current monitoring.
  • Dual USB 3.0 Ports: Feature power cycling (on/off control) and current measurement for testing USB devices.
  • Communication Interfaces: Includes Ethernet, RS232, RS485, CAN, SPI, I2C, and UART.
  • Human-Machine Interface (HMI): Onboard screen, rotary knob, and speaker for standalone operation and feedback.

Installation

pip install ikalogic-at1000

Or, with uv:

uv add ikalogic-at1000

Requires Python 3.10 or newer.

Quick Start

Discover devices on the local network, then open one to take control:

from ikalogic_at1000 import AT1000

# Discover AT1000 devices over mDNS (returns host strings)
for host in AT1000.find_devices():
    print(host)

# Open a device by host string (hostname or IP). open() acquires exclusive
# access; if another opener takes over, this client's mutating calls raise
# AccessRevokedError until it opens again.
device = AT1000.open("at1000.local")
print(device.info.model, device.info.serial_number)

device.reset()
device.close()

Pass readonly=True to observe a device without taking control (no session is opened and no calls are gated).

Standalone vs remote

Inside an AT1000 project container the device resolves its own address without mDNS. Use AT1000.is_standalone() to branch:

from ikalogic_at1000 import AT1000

if AT1000.is_standalone():
    device_address = AT1000.find_local_device()
else:
    devices = AT1000.find_devices()
    device_address = devices[0] if devices else None

if not device_address:
    raise SystemExit("No devices found")

device = AT1000.open(device_address)

Asynchronous Usage

The same API is available as coroutines under ikalogic_at1000.aio:

import asyncio

from ikalogic_at1000.aio import AT1000


async def main():
    device = await AT1000.open("at1000.local")
    print(device.info.model, device.info.serial_number)

    await device.reset()
    await device.aclose()


asyncio.run(main())

HMI knob events

device.hmi.knob().read_event() drains pending button events and returns rotation_delta in signed detent steps: clockwise is positive, counter-clockwise negative. The hmi.knob real-time event uses the same units. is_knob_turned() recognizes any nonzero delta, including a single detent.

wait_event(timeout_ms) discards stale events before waiting for a new button press or any detent. It returns a KnobEvent with direction normalized to -1, 0, or 1, even when several detents arrived together, or None on timeout. The async client has identical behavior with await.

Use matching detent-aware server and SDK releases together. An older SDK may wait for four detents on the new server; this SDK can react to a single raw encoder count on an older count-producing server. There is no compatibility rescaling.

HMI prompts

Display a single-choice prompt on the device and wait for the operator:

from ikalogic_at1000 import AT1000, PromptChoice, PromptRequest

device = AT1000.open("at1000.local")
try:
    result = device.hmi.prompt(
        PromptRequest(
            text="Test failed.\nChoose the next action.",
            choices=[
                PromptChoice(label="Retry", color="#1769AA"),
                "Skip",
                PromptChoice(label="Cancel", color="#B3261E"),
            ],
            default_index=2,
            timeout_ms=60_000,
        )
    )
    print(result.status, result.selection.label, result.selection.index)
finally:
    device.close()

The knob moves between choices without wrapping. Press it to select the highlighted choice. A choice is a PromptChoice or a bare string, which is shorthand for PromptChoice(label=...). Choices are identified by position, so two of them may carry the same label. default_index sets the initial highlight, not an automatic selection on timeout. It defaults to 0, the first choice.

Choice colors use #RRGGBB. The default background is #1769AA, with black or white text chosen for contrast. Selecting the choice named "Cancel" returns a selection like any other choice.

prompt() returns a PromptState with status selected, cancelled, or timed_out. Cancellation and timeout are ordinary results. selection is always present: the confirmed choice when the status is selected, and the last highlighted choice when it is cancelled or timed_out. PromptState.id identifies the prompt itself, not a choice.

prompt() waits on the hmi.prompt event instead of polling. It opens the event stream when the application has not already done so, closing only a stream it opened itself. Each event re-arms a window of timeout_ms, and an expired window costs a single read of the prompt.

Prompts require an owning session. Only one prompt can be active. Screen changes, HMI reset, raw knob reads, and another prompt creation conflict while it is pending. Audio remains available. The previous screen returns when the prompt ends, unless another screen or owner replaced it.

The default deadline is 60 seconds. timeout_ms accepts integers from 1,000 to 1,800,000 milliseconds. The device enforces the deadline even if the client stops listening. The deadline only guards against an abandoned prompt, so the first turn of the knob stops it: once the operator is answering, only a selection, a cancellation, or a lost session ends the prompt. If the wait fails, the helper attempts to cancel the prompt and preserves the original exception. It does not retry or recreate prompts.

PromptRequest validates 1 to 32 choices and a default_index below the number of choices. Text is limited to 256 UTF-8 bytes and each label to 64 UTF-8 bytes. Text and labels cannot be blank. Control characters are rejected, except line feeds in the prompt text. The device checks display glyph support.

The same models and methods are exported by ikalogic_at1000.aio. Use await device.hmi.prompt(request) with its async client. Task cancellation attempts to cancel the device prompt before re-raising CancelledError.

Run the colored-choice example with either client:

uv run examples/hmi_prompt.py at1000.local
uv run examples/hmi_prompt.py at1000.local --async

Real-time Events

Subscribe to live device state changes over a WebSocket. Connect, then register callbacks per event type (or "*" for all events):

from ikalogic_at1000 import AT1000

device = AT1000.open("at1000.local", readonly=True)
device.events.connect()


def on_gpio(event):
    print(event.type, event.data)


unsubscribe = device.events.subscribe("gpio.state", on_gpio)

# later
unsubscribe()
device.close()

Documentation

Full API documentation is available at https://ikalogic.com/kb/at1000-api/at1000_home/.

License

This package is distributed under the MIT License.

Metadata

Release files for ikalogic-at1000 0.8.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 ikalogic-at1000 0.8.0
File Size Uploaded Provenance
ikalogic_at1000-0.8.0.tar.gz 60.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ikalogic-at1000 0.8.0
File Interpreter ABI Platform
ikalogic_at1000-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 133.9 kB

Release files / ikalogic_at1000-0.8.0.tar.gz

Download URL ikalogic_at1000-0.8.0.tar.gz
Size 60.7 kB
Tags Source
SHA-256 checksum
How to use checksums
56575ff72f02f7e1f7d2f38dac40e9deeaa431e770c14c6d758507305a1e66f1
BLAKE2b-256 checksum
How to use checksums
9e7efed52f95a6a4df83b95db62352b103e6e4f643d98c8f52a42e30127025c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ikalogic_at1000-0.8.0-py3-none-any.whl

Download URL ikalogic_at1000-0.8.0-py3-none-any.whl
Size 73.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee2dca6b6235c05cd69f9c56542fb8fa7b04084ff43972a3a4eff48171f574c4
BLAKE2b-256 checksum
How to use checksums
64f8e007a1a6486f9d96b2eb9daf8e7a6882d4d68c04373b5be272825511c728
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ikalogic-at1000 0.8.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.

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