Creating a new application with the 1010data Python SDK includes importing the library,
establishing a session, submitting a query, receiving results, and cleaning up the
Setting up an application
Your application setup includes importing any required libraries, including the 1010data Python SDK.
Establishing a session
A 1010data Insights Platform session is an instance of a particular user ID logged into the platform within a certain environment. A session is comprised of a dedicated set of resources that can serve a single request at a time.
Running a query
Your application should act as an intermediary between your users and the platform to pass in a query and receive the queried data.
Accessing query results
After querying the 1010data Insights Platform, your application receives a set of results, which is accessible through the Query object.
Cleaning up a session
If your application uses the with keyword, the 1010ata Insights Platform session is cleaned up automatically at the end of the with statement. If your application does not use with, you need to clean up the platform session when you've completed the transaction.