Get useful information regarding public transport in Germany (DeutscheBahn) such as train stations, departures and arrivals, routes, parking spots and more straight from the CLI.
This program is powered by the official Deutsche Bahn APIs:
You must have Python v3
installed on your device.
- Clone the repository
$ git clone https://github.com/Manu10744/deutsche-bahn-cli.git
- Create a
.env
file in the root directory and enter your API Key:
DB_API_KEY=<your_key>
- Install the necessary dependencies with
pip
$ pip install -r requirements.txt
# Search with a fracture of a name
py main.py --search Münc
# Search with a full name
py main.py --search "München Hbf"
# Search with a wildcard
py main.py --search "München*,Berlin*"
py main.py --timetable 8006550
py main.py --arrivals 8006550
py main.py --departures 8006550
- Get API Key
- Setup fundamental structure and configuration
- Implement search for train stations => maybe --find str ?
- Implement search for departures given a train station => maybe --departures xy ?
- (WIP) Implement search for parking spots => maybe --parking xy ?
- Implement route information output => maybe --from xy --to z ?
- Include changed data (departures, arrivals) as well
- Instead of printing lots of results, print some and ask user if he wants to output more results
- Add --verbose argument
- (WIP) Bash autocomplete
- Web Dashboard