This package is designed to query the Trenitalia ViaggiaTreno API (that are mostly undocumented, but see here, in Italian) in a Home Assistant integration.
from viaggiatreno_ha.trainline import (Viaggiatreno,
TrainLine,
TrainLineStatus)
from aiohttp import ClientSession
async def main():
"""Example of use."""
async with ClientSession() as session:
vt = Viaggiatreno(session)
tl = TrainLine('S01765', '136')
await vt.query_if_useful(tl)
print(vt.get_line_status(tl))
if __name__ == "__main__":
import asyncio
asyncio.run(main())
Metadata
Release files for viaggiatreno-ha 0.2.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 | |
|---|---|---|---|
| viaggiatreno_ha-0.2.5.tar.gz | 16.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| viaggiatreno_ha-0.2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.8 kB
Release files / viaggiatreno_ha-0.2.5.tar.gz
| Download URL | viaggiatreno_ha-0.2.5.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb68aa728863eb70c1fd34f03379f2982246131e17c0be94ea088bf92aaf909e
|
|
BLAKE2b-256 checksum How to use checksums |
6edcea20f08a880afccbbcb86d875706e1109a6b50ea5133885f13288c214f98
|
| 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 Oct 8, 2026.
Transparency logRelease files / viaggiatreno_ha-0.2.5-py3-none-any.whl
| Download URL | viaggiatreno_ha-0.2.5-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27e600c5ebebb5148bcb4f2c495f51ed2a113327e0159c62240ed39b136f1f3e
|
|
BLAKE2b-256 checksum How to use checksums |
fde824d1d66a52861deb5743095ff5be9492872978ccf16229c40c46503ba2a1
|
| 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 Oct 8, 2026.
Transparency log