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

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.6
File Size Uploaded Provenance Actions
aioindiallsky-0.1.6.tar.gz 17.8 kB With provenance Details for aioindiallsky-0.1.6.tar.gz

Built distribution (wheel)

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

Total release size: 31.0 kB

Release files / aioindiallsky-0.1.6.tar.gz

Download URL aioindiallsky-0.1.6.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a8fce7fb91a7d79102e3874b2715d1d232178649827201ed00418e77997d619f
BLAKE2b-256 checksum
How to use checksums
a0acdfba38b320d7bfdeafed88918d11a29f1d904c85e399299dc1f9d8dffb0a
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 Oct 11, 2026.

Transparency log

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

Download URL aioindiallsky-0.1.6-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb4164350f1cf20c09521754318bdd8eaa4d4983d579c364d14e6d6af44e8b41
BLAKE2b-256 checksum
How to use checksums
98502dea644244d8d8591e9935c14e7e144cd53717a4fa1271f0a8002c8ebd01
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 Oct 11, 2026.

Transparency log

Security for aioindiallsky 0.1.6

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.6.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 Oct 11, 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