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.

Files for pyhafas, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size pyhafas-0.3.0.tar.gz (1.9 MB) File type Source Python version None Upload date Hashes View
Filename, size pyhafas-0.3.0-py3-none-any.whl (32.9 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page