Async Python client for the 2N IP intercom HTTP API
Project description
py2n-intercom
Async Python client for the 2N IP intercom HTTP API (/api/*) and related RTSP endpoints.
This library is designed to be consumed by the Home Assistant 2n_intercom integration, but can be used standalone.
Supported devices / firmware
- 2N IP Style
- 2N IP Verso 2
- 2N IP One
- Firmware: 2.5+ (tested on 3.x)
Install
pip install py2n-intercom
Quick example
import aiohttp
from py2n_intercom import Py2NClient
async def main():
async with aiohttp.ClientSession() as session:
client = Py2NClient(session, base_url="https://192.168.1.21", username="admin", password="***", auth_method="digest")
info = await client.async_get_device_info()
print(info)
Development
Home Assistant developers can test the library in editable mode:
pip install -e .
Publish is expected to be automated via GitHub Actions on tags.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py2n_intercom-0.1.26.tar.gz.
File metadata
- Download URL: py2n_intercom-0.1.26.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fde161e2abc7f0b534e5e9159bf9bd44ebc88a3513b9a58d0065dd82349df32
|
|
| MD5 |
ad7d9e9f70da52f50877234410d15790
|
|
| BLAKE2b-256 |
9d20bfdec9fed49746417793a66dce8b9b2deaad148d4aa00b91566e19364d6c
|
Provenance
The following attestation bundles were made for py2n_intercom-0.1.26.tar.gz:
Publisher:
publish.yml on genka13/py2n-intercom
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py2n_intercom-0.1.26.tar.gz -
Subject digest:
2fde161e2abc7f0b534e5e9159bf9bd44ebc88a3513b9a58d0065dd82349df32 - Sigstore transparency entry: 789664029
- Sigstore integration time:
-
Permalink:
genka13/py2n-intercom@681fc5a4394f20af4aef682cf42c7a8b9cb1e7c1 -
Branch / Tag:
refs/tags/v0.1.26 - Owner: https://github.com/genka13
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@681fc5a4394f20af4aef682cf42c7a8b9cb1e7c1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file py2n_intercom-0.1.26-py3-none-any.whl.
File metadata
- Download URL: py2n_intercom-0.1.26-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12e7a9d11d69a90984721ebc31019385b906938a0e6c926ad9424ec29ed7fafd
|
|
| MD5 |
15c0bf1a68d40f6ff943f604115b23fb
|
|
| BLAKE2b-256 |
a24e2ced4795d384ab40c7c85c8cffbb699498f0139794e2d7c2f3ccc72694bc
|
Provenance
The following attestation bundles were made for py2n_intercom-0.1.26-py3-none-any.whl:
Publisher:
publish.yml on genka13/py2n-intercom
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py2n_intercom-0.1.26-py3-none-any.whl -
Subject digest:
12e7a9d11d69a90984721ebc31019385b906938a0e6c926ad9424ec29ed7fafd - Sigstore transparency entry: 789664030
- Sigstore integration time:
-
Permalink:
genka13/py2n-intercom@681fc5a4394f20af4aef682cf42c7a8b9cb1e7c1 -
Branch / Tag:
refs/tags/v0.1.26 - Owner: https://github.com/genka13
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@681fc5a4394f20af4aef682cf42c7a8b9cb1e7c1 -
Trigger Event:
push
-
Statement type: