We are incredibly excited to announce the release of our second SDK; an open source, Apache 2.0-licensed SDK written in Python to programmatically interact with Mixnode. You can now download and use the newly-released Mixnode Python SDK to write and execute SQL queries from your Python programs.
Installation
Mixnode can be installed from PyPI:
pip install mixnode-py-sdk
Authentication
import Mixnode
# Create an instance of the Mixnode Client
client = Mixnode("dfdb60dbf8dtesttest12c49edf60976") #Find your API key at https://www.mixnode.com/account/api
Running your first query
The following query will return 10 URLs and their corresponding titles from the homepages
table:
from mixnode import Mixnode, MixnodeError
try:
query = "SELECT url, title FROM homepages LIMIT 10"
response = Mixnode("dfdb60dbf8dtesttest12c49edf60976").execute(query)
print(response)
except MixnodeError as error:
print(error)
What's next?
Give the Mixnode Python SDK a try and let us know if you have any questions or feedback. Additionally, you can report problems or suggest features by openning issues on the official repository.