An open API service indexing awesome lists of open source software.

https://github.com/tomekzaw/ttss

A simple Python wrapper for TTSS (Traffic Tram Supervision System) API.
https://github.com/tomekzaw/ttss

api bus krakow tram transport ttss

Last synced: about 2 months ago
JSON representation

A simple Python wrapper for TTSS (Traffic Tram Supervision System) API.

Awesome Lists containing this project

README

        

# TTSS

A simple Python wrapper for TTSS (Traffic Tram Supervision System) API.

![](https://github.com/tomekzaw/ttss/actions/workflows/python.yml/badge.svg)

## Requirements
* Python 3.8+

## Installation
```
pip install ttss
```

## Usage

For MPK Kraków trams:
```py
from ttss import TTSS

ttss = TTSS(base_url='http://www.ttss.krakow.pl')
```

For MPK Kraków buses:
```py
ttss = TTSS(base_url='http://ttss.mpk.krakow.pl')
```

> Note: the base URL must not contain `/internetservice` and must not end with `/`.