Connect to SAP HANA Using Python
Beginner
15 min.
Install SAP HANA client drivers on Python and connect to an SAP HANA instance.
You will learn
- How to install the SAP HANA client driver for Python
- How to install the client driver using a virtual environment (optional)
- How to connect to an instance of SAP HANA
- How to use environment variables to provide connection parameters
Prerequisites
- A running SAP HANA database instance and credentials of a database user.
- Familiarity with Python.
We recommend using virtual environments to localize your Python runtime environment. If you choose to use virtual environments, you can find a guide on using virtual environments here.