A simple Python wrapper for TTSS (Traffic Tram Supervision System) API.
- Python 3.8+
pip install ttss
For MPK Kraków trams:
from ttss import TTSS
ttss = TTSS(base_url='http://www.ttss.krakow.pl')
For MPK Kraków buses:
ttss = TTSS(base_url='http://ttss.mpk.krakow.pl')
Note: the base URL must not contain
/internetservice
and must not end with/
.