Skip to content
← Projects

renfe-tui

Renfe train times, fares and live delays in the terminal. A Python interface built with Textual on top of renfe-cli.

live2026repo30v0.1.0
pythontextual#tui#renfe#trains#terminal

renfe-tui searches Renfe trains from the terminal, shows their fares and follows a train on its way. Every piece of data comes through renfe-cli by luisgonzaleznf; my part is the interface, built with Textual.

renfe-tui home screen, with the origin, destination and day search.
Screenshot taken with sample data.

Install#

uv tool install git+https://github.com/Sn4pe/renfe-tui

You need Python 3.12 or later and uv.

What it does#

ScreenWhat it shows
Find trainsOrigin, destination and day, with station suggestions that send nothing to Renfe
ResultsTrains and fares; "Buy" opens Renfe's checkout in the browser on that train
Where is my train?Delay, next stop and timetable; the number on your ticket works
Delays nowEvery long and medium distance train running late
Results from Madrid to Barcelona: ten trains with departure, arrival, duration and price, and the fares of the selected train below.
Screenshot taken with sample data.
Following train 03081 from Madrid to Barcelona: it is running 7 minutes late and the next stop is Lleida.
Screenshot taken with sample data.
List of long and medium distance trains running late right now.
Screenshot taken with sample data.

You can drive it with the mouse or the keyboard. It comes in Spanish and English, and the light or dark theme follows the system.

Sn4pe/renfe-tuiRenfe train times, fares and live delays in your terminal.Python