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

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.8
File Size Uploaded Provenance Actions
aioindiallsky-0.1.8.tar.gz 18.4 kB With provenance Details for aioindiallsky-0.1.8.tar.gz

Built distribution (wheel)

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

Total release size: 32.2 kB

Release files / aioindiallsky-0.1.8.tar.gz

Download URL aioindiallsky-0.1.8.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
540299e8892572da330d89d00a83d4b956c017013dc6a841f27165528770490c
BLAKE2b-256 checksum
How to use checksums
3023bf9f8fd176c4fa0f539814c4a9e6baf8e2936dd351089ed8fa4e0f2c92a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

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

Download URL aioindiallsky-0.1.8-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e1edf8511fd914337e914f066edeb6d655fe30ab54fbde4519e98093d9a27e9
BLAKE2b-256 checksum
How to use checksums
52010ae1c552d915de6cd861e0ec76c2c64a3e063bb195da2e13f933ba0552c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Security for aioindiallsky 0.1.8

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aioindiallsky-0.1.8.tar.gz

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 Nov 10, 2026.

Transparency log

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.

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