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.1

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.1
File Size Uploaded
aioindiallsky-0.1.1.tar.gz 12.1 kB Details

Built distribution (wheel)

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

Total release size: 21.5 kB

Release files / aioindiallsky-0.1.1.tar.gz

Download URL aioindiallsky-0.1.1.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f3db118d8e67cb2f5901d3c96770cb41924a23814d3dc4e9e36e078e9e652b78
BLAKE2b-256 checksum
How to use checksums
7a3c2eca2334eef356565e9886e675ce655c46c11d66120038d7b1ee9b616e89
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 4, 2026.

Transparency log

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

Download URL aioindiallsky-0.1.1-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2831c85897a78d97dafe55a1a29f8e3d0c0c1953124ce1bc4aa23f5bf1d71a8e
BLAKE2b-256 checksum
How to use checksums
6b555b21df16bde3f1daa39b74de3938a59631f0236e551dfd188b18d86313c1
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 4, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.1 This release

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