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.2a2

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.2a2
File Size Uploaded
viaggiatreno-0.1.2a2.tar.gz 11.4 kB Details

Built distribution (wheel)

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

Total release size: 27.1 kB

Release files / viaggiatreno-0.1.2a2.tar.gz

Download URL viaggiatreno-0.1.2a2.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c5e7a94cd5883c5fd067a7419be294c089997ca088451f13daacca3d03a691a8
BLAKE2b-256 checksum
How to use checksums
a35094a6687a51a0a88bd9eea9e7b609ba6850502c2480389dbe04bdb9db3b1d
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.2a2-py3-none-any.whl

Download URL viaggiatreno-0.1.2a2-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bf56ee9184a779b414ebbe78289eb03906690f3b47549b14193427ec505b067
BLAKE2b-256 checksum
How to use checksums
509cc9f455e56809862e19099d2fcc6668ae85ed973462c0173d6f95b46af5c1
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.2a2 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