Skip to main content

aionanit

Async Python client library for Nanit baby cameras.

Features

  • Authentication: Email/password login, MFA verification, automatic token refresh.
  • WebSocket: Protobuf-over-WebSocket communication with cameras (cloud and local).
  • REST API: Baby metadata, cloud events, snapshots.
  • Streaming: RTMPS URL construction for live video.
  • Push-based: Subscribe to real-time camera state changes (sensors, settings, controls).

Installation

pip install aionanit

Quick Start

import aiohttp
from aionanit import NanitClient

async with aiohttp.ClientSession() as session:
    client = NanitClient(session)

    # Login
    tokens = await client.async_login("you@example.com", "password")

    # Get babies
    babies = await client.async_get_babies()
    baby = babies[0]

    # Connect to camera
    camera = client.camera(baby.camera_uid, baby.uid)
    await camera.async_start()

    # Subscribe to state changes
    def on_event(event):
        print(f"Sensors: {event.state.sensors}")

    unsub = camera.subscribe(on_event)

    # Get RTMPS stream URL
    url = await camera.async_get_stream_rtmps_url()
    print(f"Stream: {url}")

    # Cleanup
    unsub()
    await client.async_close()

Requirements

  • Python 3.12+
  • aiohttp >= 3.9.0
  • protobuf >= 6.0

License

MIT

Metadata

Release files for aionanit 1.14.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 aionanit 1.14.1
File Size Uploaded Provenance Actions
aionanit-1.14.1.tar.gz 91.8 kB With provenance Details for aionanit-1.14.1.tar.gz

Built distribution (wheel)

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

Total release size: 150.3 kB

Release files / aionanit-1.14.1.tar.gz

Download URL aionanit-1.14.1.tar.gz
Size 91.8 kB
Tags Source
SHA-256 checksum
How to use checksums
899d3bc393ef1e991c9dde7dd5fd740f2b0d442df1e705f7b51f6525d8ab8a90
BLAKE2b-256 checksum
How to use checksums
a30cc9e80bda9ddf8710f9f502c02705c15965c3a3aa00dea6370f0fb8dd8519
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 9, 2026.

Transparency log

Release files / aionanit-1.14.1-py3-none-any.whl

Download URL aionanit-1.14.1-py3-none-any.whl
Size 58.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d377a4efcfa34f89c761020df8e58483d0af25ba83db2ae67f4f5613229815fe
BLAKE2b-256 checksum
How to use checksums
a2a1cc4e10d4e73d6bb16304cb4e11379da91ec4869ddfee793011bd33728ed2
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 9, 2026.

Transparency log

Security for aionanit 1.14.1

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 aionanit-1.14.1.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 9, 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.

Release history Release notifications | RSS feed

This release

1.14.1 This release

2 release files Full provenance

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