SteemSQL for Python programmers

Use the following code to connect to SteemSQL using Python:

import pypyodbc
connection = pypyodbc.connect('Driver={ODBC Driver 13 for SQL Server};'
                              'Server=sql.steemsql.com;'
                              'Database=DBSteem;'
                              'uid=steemit;pwd=steemit')
cursor = connection.cursor() 
SQLCommand = ("YOUR SQL QUERY”)
cursor.execute(SQLCommand)
# do whatever you want with the retrieved data
connection.close()

Remember you need to have ODBC drivers installed on your computer.

For more details on how to install Microsoft SQL ODBC drivers, you can read this post published by @geekgirl