Skip to main content

kestrel-connector

Talks to a Kestrel server as a paired device: its cameras and what they can do, live events, PTZ and picture controls, recordings, and live video over WebRTC or RTSP. The Kestrel integration for Home Assistant uses it.

pip install kestrel-connector

Pairing

A device pairs once, with a one-time code from Settings > Devices in Kestrel, and keeps the token it gets back:

from aiohttp import ClientSession
from kestrelconnector import KestrelClient

async with ClientSession() as session:
    client = KestrelClient("http://192.0.2.10:7380", session)
    paired = await client.pair("ABCD-EFGH", "Home Assistant")

    client = KestrelClient("http://192.0.2.10:7380", session, paired.token)
    for camera in await client.cameras():
        print(camera.id, camera.title)

Live events

from kestrelconnector import events

async for event in events(client):
    print(event.camera, event.kind, event.active)

The stream ends when the server closes it, such as when it restarts, so connect again to carry on.

Versions

The client doesn't send its version, so a server of any version lets it in. Read version from await client.server() to check the server is new enough for what you use.

The API docs describe everything the server sends.

Metadata

Release files for kestrel-connector 0.7.15

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

Source distribution (sdist)

Source distribution for kestrel-connector 0.7.15
File Size Uploaded Provenance Actions
kestrel_connector-0.7.15.tar.gz 22.3 kB With provenance Details for kestrel_connector-0.7.15.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kestrel-connector 0.7.15
File Interpreter ABI Platform Actions
kestrel_connector-0.7.15-py3-none-any.whl Python 3 none any Details for kestrel_connector-0.7.15-py3-none-any.whl

Total release size: 39.7 kB

Release files / kestrel_connector-0.7.15.tar.gz

Download URL kestrel_connector-0.7.15.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ff38f3b4a54552847e4a4e930ee753300879a6f652ff8b2e5761eeb0b4752957
BLAKE2b-256 checksum
How to use checksums
5cc366c9995d7df7e65ddafd2a4970372bb3d72149c54d9a229d0f57b2d53ee4
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 Dec 4, 2026.

Transparency log

Release files / kestrel_connector-0.7.15-py3-none-any.whl

Download URL kestrel_connector-0.7.15-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fa67ddeaace4eb5d8ce158023b8e58dc5187023cf29f7eac31513d80f7bc8fc
BLAKE2b-256 checksum
How to use checksums
f0adbd5ec1c868517e536ac6e9b156bcbd6473b65a10c4e1a3252b0e26e480e4
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 Dec 4, 2026.

Transparency log

Security for kestrel-connector 0.7.15

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 kestrel_connector-0.7.15.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 Dec 4, 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