aiopapouch
This repository contains an asynchronous Python I/O library for Papouch s.r.o. devices.
The library provides two major components: Devices and API Client for communication with the hardware.
Requirements
- Python 3.14+: The library requires Python 3.14 or higher (PEP 758).
- aiohttp: Required for handling asynchronous HTTP communication with the devices.
Installation
pip install aiopapouch
Supported Devices
Currently, the library supports the following Ethernet devices communicating via WEB mode:
- Quido ETH
- Papago
- Meteo
- 2TH
- 5HDI DO
- TH 2DI DO
- TH2E
- TME
- TME Multi / Radio
Devices
The library is designed using an object-oriented approach. Every device (or device family) is a subclass of PapouchDevice, which provides contract methods such as parse_fresh_data, get_supported_sensors, and properties like name and location. The base.py file also includes mixins (primarily for HTTP communication), as various network devices share the same functions. Creating an additional layer between PapouchDevice and the final subclasses is unnecessary since only a specific subset of functions needs to be included.
Due to polymorphism, the create_device function returns an abstract PapouchDevice. It works in tandem with the is_device_supported function, which validates whether the hardware is supported by this library.
Note: The constructors are asynchronous (implementing the factory pattern). Creating any device instance utilizes the network to download the initial configuration.
Note: The library was designed specifically for Home Assistant. Methods like
get_supported_sensorsreturn configurations required for entity creation in Home Assistant. This remains the primary purpose of the library.
Note: Initial fresh fetch of data happens before the creation of the entities, making it a valid approach to generate configurations during the parsing of fresh data.
API Client
The API Client follows a similar architecture. There is an abstract base class PapouchTransport that defines the contract methods for subclasses, such as fetch_info, read_command, and write_command.
Currently, there is one subclass, PapouchHTTPClient, which fulfills this contract and handles network communication over HTTP.
Exceptions
The library defines custom exceptions raised during execution. These exceptions are designed to be caught and handled within the Home Assistant integration.
Usage
Although aiopapouch is primarily designed to serve as the underlying library for the official Home Assistant Papouch integration, it can also be used independently in standalone Python scripts.
The following example illustrates how to create a client, instantiate a device, fetch raw telemetry data, and pass it to parse_fresh_data:
import asyncio
import aiohttp
from aiopapouch import PapouchHTTPClient, create_device
async def main():
# Initialize the aiohttp client session
async with aiohttp.ClientSession() as session:
# Initialize the API transport client
client = PapouchHTTPClient("192.168.1.100", session)
# Create the device
device = await create_device(client)
if device is None:
print("Device not supported or connection failed.")
return
print(f"Connected to: {device.name} at {device.location}")
# Fetch raw fresh XML data from the device
raw_fresh_xml = await client.fetch_data()
# Parse fresh data to update device state and return processed readings
parsed_data = await device.parse_fresh_data(raw_fresh_xml)
print("Parsed telemetry data:", parsed_data)
if __name__ == "__main__":
asyncio.run(main())
Future Extensions
Papouch manufactures not only network-based devices but also serial ones (e.g., using RS485). Future extensions will include a new serial transport subclass implementing PapouchTransport, alongside new PapouchDevice subclasses designed specifically for serial communication protocols.
Release files for aiopapouch 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiopapouch-0.1.5.tar.gz | 22.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiopapouch-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.8 kB
Release files / aiopapouch-0.1.5.tar.gz
| Download URL | aiopapouch-0.1.5.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
093db62273156541ab124b48b85a9bb2dc2dcf0d3d740f7870b7ff51f2f536cc
|
|
BLAKE2b-256 checksum How to use checksums |
3346c5f75b4ea09b956b389b6d9e09ee1da9f99cea5b349270f1063ce8d87a65
|
| 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 Aug 19, 2026.
Transparency logRelease files / aiopapouch-0.1.5-py3-none-any.whl
| Download URL | aiopapouch-0.1.5-py3-none-any.whl |
|---|---|
| Size | 28.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9739b976d9a06cf30cbed86d6e564ca12957125320d2cf1b7546fbbc3156efd7
|
|
BLAKE2b-256 checksum How to use checksums |
5b95ff8e415a80d22defb36636f4c23c1ff65c8869ec2e3bc231f57f0c5ae7a9
|
| 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 Aug 19, 2026.
Transparency log