Skip to main content

aioindiallsky

Asynchronous Python client library for communicating with indi-allsky over HTTP and WebSocket event streams. Designed for Home Assistant custom components and Python automation scripts.

Installation

pip install aioindiallsky

Quick Start Example

import asyncio
from aioindiallsky import IndiAllSkyClient, ExposureData, SensorData

async def main():
    async with IndiAllSkyClient(host="192.168.1.100", port=8080) as client:
        # Register event callbacks (returns an unregister function)
        async def on_exposure(exposure: ExposureData):
            print(f"New Exposure! File: {exposure.filename}, Duration: {exposure.exposure}s, SQM: {exposure.sqm}")
            # Fetch image bytes for Home Assistant Camera / Image entity
            image_bytes = await client.fetch_image(exposure.filename)
            print(f"Downloaded {len(image_bytes)} bytes")

        def on_sensors(sensors: SensorData):
            print("Sensor Update:")
            for key, info in sensors.sensors.items():
                print(f"  {info['name']}: {info['value']} {info['unit']}")

        unsub_exposure = client.register_callback("exposure_complete", on_exposure)
        unsub_sensors = client.register_callback("sensor_update", on_sensors)

        # Connect and start listener
        await client.connect()
        try:
            await client.listen()
        finally:
            unsub_exposure()
            unsub_sensors()

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

Image & Media API

  • await client.fetch_image(filename): Fetch raw binary image bytes (JPEG/PNG) for a given filename or relative path. Perfect for Home Assistant ImageEntity or Camera snapshot methods.
  • await client.fetch_latest_image(): Fetch raw binary bytes for the latest static snapshot (public/latest.jpg).
  • client.get_image_url(filename): Generate the full HTTP URL for an image filename.

Supported Commands

  • client.pause(): Pause image capture loop
  • client.unpause(): Resume image capture loop
  • client.reboot(): Reboot host system
  • client.shutdown(): Shutdown host system
  • client.restart_service(service_name): Restart service (indi-allsky, indiserver, gunicorn)
  • client.generate_keogram(): Trigger keogram compilation
  • client.generate_timelapse(): Trigger timelapse compilation
  • client.generate_startrail(): Trigger star trail compilation
  • client.trigger_darks(): Initiate dark frame capture sequence

Metadata

Release files for aioindiallsky 0.1.2

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

Source distribution (sdist)

Source distribution for aioindiallsky 0.1.2
File Size Uploaded
aioindiallsky-0.1.2.tar.gz 12.2 kB Details

Built distribution (wheel)

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

Total release size: 21.6 kB

Release files / aioindiallsky-0.1.2.tar.gz

Download URL aioindiallsky-0.1.2.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e4ee5a71fafebfbfeef986d709fc32aa6e5de078c6a596914b896c761c0f23a1
BLAKE2b-256 checksum
How to use checksums
73cceae4d6a34179f7805e6a16d95ac5b9534b53a271559154b626fd3063ccce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / aioindiallsky-0.1.2-py3-none-any.whl

Download URL aioindiallsky-0.1.2-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57e48adc2b491981c01d0cd35614d800c2310f40ba0f4186b2dc8395ed68877f
BLAKE2b-256 checksum
How to use checksums
af3e560a12cfe2ef4e8a7c92792fffee15e862e14f8facd1307191aa201dbc0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

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