Skip to main content

Python client for HAFAS public transport APIs

Project description


A python client for HaFAS public transport APIs.

#pyhafas on


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 -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.



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.

Source Distribution

pyhafas-0.4.0.tar.gz (1.9 MB view hashes)

Uploaded source

Built Distribution

pyhafas-0.4.0-py3-none-any.whl (38.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page