Skip to main content

Python client for HAFAS public transport APIs

Project description


A python client for HAFAS public transport APIs.


You only need to install the pyhafas package, for example using pip:

$ pip install pyhafas

That’s it!

Development setup

For development is recommended to use a venv.

$ python3.6 -m venv .venv
$ source .venv/bin/activate
$ python develop


There's a company called HaCon that sells a public transport management system called HAFAS. It is used by companies all over Europe to serve routing and departure information for apps. All those endpoints are similar, with the same terms and API routes, but have slightly different options, filters and sets of enabled features.


This project is licensed with the European Union Public Licence (EUPL) v1.2. See the LICENSE file for the complete license text.



If you have a question, found a bug or want to propose a feature, have a look at the issues page.

Project details

Download files

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

Files for pyhafas, version 0.0.0.dev1
Filename, size File type Python version Upload date Hashes
Filename, size pyhafas-0.0.0.dev1-py3-none-any.whl (8.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyhafas-0.0.0.dev1.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page