An unofficial wrapper for AMT Genova undocumented API
Project description
pyAMT
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
Example 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")
Build for test.pypi.org:
python3 -m build
python3 -m twine upload --repository testpypi dist/*
Install test:
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pyAMT
Project details
Release history Release notifications | RSS feed
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.2.tar.gz
(4.4 kB
view hashes)
Built Distribution
pyAMT-0.0.2-py3-none-any.whl
(4.5 kB
view hashes)