This release is a pre-release and may not be stable for production use.
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.13.0b3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aionanit-1.13.0b3.tar.gz | 63.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aionanit-1.13.0b3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 103.7 kB
Release files / aionanit-1.13.0b3.tar.gz
| Download URL | aionanit-1.13.0b3.tar.gz |
|---|---|
| Size | 63.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9233e7594ddacf51d2c5499a4feb06d4237a0cbe5b83cc31c1b648ece12d6e26
|
|
BLAKE2b-256 checksum How to use checksums |
304991dc7ed29c2c33899837c3e8d0b12bdb87753d0776961d2f0bd6bd50aed4
|
| 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 12, 2026.
Transparency logRelease files / aionanit-1.13.0b3-py3-none-any.whl
| Download URL | aionanit-1.13.0b3-py3-none-any.whl |
|---|---|
| Size | 40.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9efe02885a96a3b9d184f396bbe70e20a9734a60906d3dd95ccd2bafbaff0f5d
|
|
BLAKE2b-256 checksum How to use checksums |
1b3b978e4a834e91bfeb082ddb5ec6b54494bf438344ec346529c2b2fcacedef
|
| 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 12, 2026.
Transparency logSecurity for aionanit 1.13.0b3
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for aionanit-1.13.0b3.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 12, 2026.
Transparency logA 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.