Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

viaggiatreno

Client Python per le API non ufficiali di ViaggiaTreno, il sistema informativo in tempo reale della rete ferroviaria italiana.

La libreria fornisce:

  • ViaggiaTrenoClient — client HTTP asincrono (basato su httpx) per tutti gli endpoint REST di ViaggiaTreno (stazioni, partenze/arrivi, andamento treni, tratte, infomobilità, meteo, statistiche).
  • Modelli dati tipizzati (pydantic): StationDetail, TrainBoardItem, TrainStatus, DettaglioTratta, Statistics, e altri.
  • Parser per le risposte non-JSON (RSS infomobilità, autocomplete testuali).

Installazione

pip install viaggiatreno

Esempio

import asyncio
from viaggiatreno import ViaggiaTrenoClient


async def main() -> None:
    async with ViaggiaTrenoClient() as client:
        stazioni = await client.autocompleta_stazione("Milano")
        for s in stazioni:
            print(s)


asyncio.run(main())

Licenza

Vedi il file LICENSE nel repository.

Repository: https://github.com/matteoredaelli/pyviaggiatreno

Metadata

Release files for viaggiatreno 0.1.2a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for viaggiatreno 0.1.2a1
File Size Uploaded
viaggiatreno-0.1.2a1.tar.gz 11.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for viaggiatreno 0.1.2a1
File Interpreter ABI Platform
viaggiatreno-0.1.2a1-py3-none-any.whl Python 3 none any Details

Total release size: 27.1 kB

Release files / viaggiatreno-0.1.2a1.tar.gz

Download URL viaggiatreno-0.1.2a1.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c15efda9d55bc00864a1c1cf50e92edcfa6f663986361b0ccc5b219ee4cda909
BLAKE2b-256 checksum
How to use checksums
276d9092c4b8308688d4805f48c2c33aa52d34f1591c90ab38578553be01bac7
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 18, 2026.

Transparency log

Release files / viaggiatreno-0.1.2a1-py3-none-any.whl

Download URL viaggiatreno-0.1.2a1-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff34f1e3d7bc8101176e9b7f92ee22b725aa93ed0c16ceb9baeec22b8a99c357
BLAKE2b-256 checksum
How to use checksums
140e5b055768c8a145306b6ca40f196ec0f2086f7ef4f13b812d43bd22370315
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 18, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.2a1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page