aioonkyo_alt
Distribution alternative de aioonkyo
par Artur Pragacz.
Ce n'est pas une amélioration. C'est la même bibliothèque, avec quelques
commandes ISCP supplémentaires et une détection des coupures silencieuses, qui
n'ont pas encore été proposées ou fusionnées en amont. Si vous n'avez pas besoin de ces commandes, utilisez aioonkyo :
elle est maintenue, celle-ci ne l'est que par son auteur.
Le paquet d'import s'appelle aioonkyo_alt afin que les deux distributions
puissent cohabiter dans le même site-packages — Home Assistant installe déjà
aioonkyo pour son intégration Onkyo officielle.
from aioonkyo_alt import command, query
command.DialogEnhancement(5).raw # b'VOC05'
Commandes ajoutées
| Kind | ISCP | Plage | Testé sur |
|---|---|---|---|
DIALOG_ENHANCEMENT |
VOC |
0–5 | Pioneer VSX-LX305 |
Détection des coupures silencieuses
Un ampli dont la partie réseau se fige ne ferme pas la connexion TCP. Avec
aioonkyo 0.4.0, une connexion inactive paraît alors vivante indéfiniment, et
une commande envoyée n'échoue qu'au bout d'environ 15 minutes de
retransmissions.
connect() et Receiver.open_connection() activent désormais le keepalive TCP
(KeepAlive(idle=30, interval=10, count=3) par défaut) : un ampli muet est
détecté en une minute environ, au repos comme après une commande (sous Linux,
TCP_USER_TIMEOUT borne aussi l'attente des acquittements). La lecture renvoie
alors None, comme pour toute autre déconnexion.
from aioonkyo_alt import KeepAlive, connect
async with connect(info, keepalive=KeepAlive(idle=15, interval=5, count=3)) as receiver:
...
async with connect(info, keepalive=None) as receiver: # comportement amont
...
Vérifié en simulation (trafic du récepteur bloqué par pare-feu : coupure détectée
en idle + interval × count secondes) ; pas encore éprouvé lors d'une vraie panne.
Versionnage
<version amont>.postN. 0.4.0.post1 = amont 0.4.0, première itération.
Quand l'amont sort 0.5.0, ce fork repart en 0.5.0.post1.
Resynchronisation amont
git fetch upstream --tags
git merge 0.5.0 # merge, pas rebase : préserve la détection de renommage
Remerciements
Tout le mérite de la conception et de la réalisation revient à Artur Pragacz.
Licence
GPL-3.0-only, inchangée par rapport à l'amont.
Metadata
Release files for aioonkyo-alt 0.4.0.post2
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 | Actions |
|---|---|---|---|---|
| aioonkyo_alt-0.4.0.post2.tar.gz | 37.7 kB | With provenance | Details for aioonkyo_alt-0.4.0.post2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aioonkyo_alt-0.4.0.post2-py3-none-any.whl | Python 3 | none | any | Details for aioonkyo_alt-0.4.0.post2-py3-none-any.whl |
Total release size: 73.6 kB
Release files / aioonkyo_alt-0.4.0.post2.tar.gz
| Download URL | aioonkyo_alt-0.4.0.post2.tar.gz |
|---|---|
| Size | 37.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8effee4d5fcf78bb9b585cb63c1cf67c68c9b9c6ebe5409f404ff21d29c8407a
|
|
BLAKE2b-256 checksum How to use checksums |
d47f35095756bd3d461f0e572125d8d171751d030a08820f6d25a40ec1e04968
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 13, 2026.
Transparency logRelease files / aioonkyo_alt-0.4.0.post2-py3-none-any.whl
| Download URL | aioonkyo_alt-0.4.0.post2-py3-none-any.whl |
|---|---|
| Size | 36.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8dfb08595127293ea0700f19cb2af0887afc373fd3b23a3827145beeac900e32
|
|
BLAKE2b-256 checksum How to use checksums |
475767732e1ca4e5e48ab732889d2426a3085224e95889770ea29f8933e6643c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 13, 2026.
Transparency logSecurity for aioonkyo-alt 0.4.0.post2
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
Both files in this release have been uploaded with provenance metadata.
Attestation for aioonkyo_alt-0.4.0.post2.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 Nov 13, 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.