Skip to main content

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://10.13.23.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py2n_intercom-0.1.33.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py2n_intercom-0.1.33-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file py2n_intercom-0.1.33.tar.gz.

File metadata

  • Download URL: py2n_intercom-0.1.33.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for py2n_intercom-0.1.33.tar.gz
Algorithm Hash digest
SHA256 1d9c493d7822116aa35a715f33e623cca7fd66cd36d06b637689ade47f68ba61
MD5 bda1c88bde9637c9c02b35fec3fd2437
BLAKE2b-256 fa8f8fc1f65a2dc7b1eb1b1c899538824ecc379363cad3b87400434e3d69b58a

See more details on using hashes here.

Provenance

The following attestation bundles were made for py2n_intercom-0.1.33.tar.gz:

Publisher: publish.yml on genka13/py2n-intercom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py2n_intercom-0.1.33-py3-none-any.whl.

File metadata

  • Download URL: py2n_intercom-0.1.33-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for py2n_intercom-0.1.33-py3-none-any.whl
Algorithm Hash digest
SHA256 acd5064aa5c596bd33bef5e5e2443ce0686b635e6b98c43714bb498fe7e2a75c
MD5 b5a13a5f16ee5adf3fe071247b235e8b
BLAKE2b-256 6f770d96d87a2cc01b7905d53d63702b57456de3b875aa5136ee67767e472913

See more details on using hashes here.

Provenance

The following attestation bundles were made for py2n_intercom-0.1.33-py3-none-any.whl:

Publisher: publish.yml on genka13/py2n-intercom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page