/pyAMT

An unofficial wrapper for AMT Genova undocumented API

Primary LanguagePythonMIT LicenseMIT

pyAMT

PyPI version Code style: black

An unofficial python API wrapper for AMT's (public transportation for my city) undocumented API. Endpoints were obtained examining the official android application, I am not in any way affiliated with AMT.

Installation

Install with pip3 install pyAMT

Usage

from pyAMT import AMT

amt = AMT()

# get next departures from a stop
amt.departures("0360")

# get information about a line stop
amt.stop("0395")

#get information about a line
amt.line("15")

# add "_1" for Start->End and "_2" for End->Start
amt.lineStops("015-00_1")

# get detailed information about a line (including timetables)
amt.linesDetailedInfo("15","13","03","2022")