Set up your SDK account

Step 1: Create a FlowHigh account

If you don’t have an account already, now is the time to create one via the FlowHigh user interface. Please register at https://flowhigh.sonra.io/.

Step 2: Import the required components

from flowhigh.utils.converter import FlowHighSubmissionClass

Step 3: InitialiseInitialise the SDK passing a SQL query

fh = FlowHighSubmissionClass.from_sql("SELECT c1 from t1")

Step 4: Authenticate

When you call the SDK in your Python program for the first time, e.g. parsing an SQL string as in Step 2 or reading from a script (FlowHighSubmissionClass.from_file("/home/user/…")), you will be asked to authenticate using your browser and your FlowHigh account.

To authenticate, open the link that is displayed in your terminal



Once you open the link, you the following page opens



Click Confirm and enter your signup details



If the login is successful you will be presented with a success screen in your browser



You will also get an Authenticated message in the terminal where Python is running and the request will then be handled.



The access token will be cached in a local parseql.json file, created in a new folder inside the current user directory (.parseql).

  • for Windows: %userprofile% (C:\Users<Username>)
  • for Linux: $HOME (/home/)

Subsequent calls to the SDK will then use this access token and usage will be recorded against it.