airlino-api
airlino-api is an asynchronous Python client for the HTTP API used by LinTech AirLino media players. It supports device and network information, playback, radio streams, volume, and Songcast multiroom operations. It is a third-party community project and is not affiliated with LinTech GmbH.
Installation
python -m pip install airlino-api
Quick start
import asyncio
from airlino_api import AirlinoApi
async def main() -> None:
api = AirlinoApi("192.168.1.100")
try:
info = await api.async_get_device_info()
print(info)
await api.async_play()
finally:
await api.async_close()
asyncio.run(main())
The default port is 8989 and the default API version is v22. Override them when constructing the client if your device uses different settings:
api = AirlinoApi("airlino.local", port=8989, api_version="v22")
HTTP session lifecycle
The client creates and owns an aiohttp.ClientSession when no session is supplied. Close the client with await api.async_close() when finished. If you pass an existing session, the caller owns it and must close it; async_close() will not close that supplied session.
import aiohttp
from airlino_api import AirlinoApi
async with aiohttp.ClientSession() as session:
api = AirlinoApi("192.168.1.100", session=session)
info = await api.async_get_device_info()
Errors
AirlinoApiConnectionError indicates a connection or timeout problem. AirlinoApiError indicates an HTTP, device, response, or validation error; its status attribute contains the HTTP status code when available.
Home Assistant
This client is used by the AirLino Home Assistant integration. It requires Python 3.11 or later.
Metadata
Release files for airlino-api 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| airlino_api-0.1.0.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| airlino_api-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / airlino_api-0.1.0.tar.gz
| Download URL | airlino_api-0.1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8ac3f1a156fc90e492fd5e0640228eb0d50cfbeac790f03a76cfefc282c00cf
|
|
BLAKE2b-256 checksum How to use checksums |
60e346d0594b4c79eae93539c8607728bdf16d59962e2d2fe2916e8433a1157f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / airlino_api-0.1.0-py3-none-any.whl
| Download URL | airlino_api-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db1db52296224283661a21ffc18d6c6c6a7f4ae634f583a0ccf2df52e566b3ad
|
|
BLAKE2b-256 checksum How to use checksums |
0e1517a8de363a6b951df5addb96a0e028867485b099da6a55cc12c40c817a2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|