Skip to main content

An unofficial wrapper for AMT Genova undocumented API

Project description

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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyAMT-0.0.3.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

pyAMT-0.0.3-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page