Connect a Python Application (SQL Alchemy) to Streambased A.S.K.
The Python programming language has a number of powerful libraries like Pandas for data manipulation and analytics workloads. Let's add some real-time data.
Last updated
The Python programming language has a number of powerful libraries like Pandas for data manipulation and analytics workloads. Let's add some real-time data.
Last updated
An active Streambased Cloud account, sign up or log in
A Python installation with the following extra packages:
sqlalchemy-trino
Access to Streambased Cloud is managed via API-keys, you can create one for you new connection
With sqlalchemy you will use your public key
as the database username and your secret key
as the database password. Make a note of these for Step 2.
The following sample code show how to integrate python with Streambased cloud:
Change the query
variable to execute different statement in your python environment