Mixnode Python SDK
Overview
The Mixnode Python SDK allows you to easily integrate the Mixnode REST APIs into your Python application.
Requirements
Python2 and above.
A Mixnode API key from a registered user on the Mixnode portal.
Installation
pip install mixnode-py-sdk
Tutorial
Follow this tutorial to see a step-by-step guide and examples of how to use the Mixnode Python SDK.
Get the API key from Mixnode portal
Create an account on Mixnode.
If already registered, then login and navigate to api key page.
Dashboard -> Choose API from left menu -> Note the API key.
Or, directly navigate to https://www.mixnode.com/account/api to find your API key.
Authentication
This SDK comes with Basic Authentication over HTTPS which requires you to pass your Mixnode API key using a config file or as a string during client instantiation.
Basic Authentication
This type of token is given directly to the application.
from mixnode import Mixnode
# Create an instance of the Mixnode Client
client = Mixnode("Your API Key") #add your API KEY here; available at https://www.mixnode.com/account/api
Note that api_key can also be passed as a JSON object in a config file to avoid specifying the key in the code. Please see Examples
Quick Start
from mixnode import Mixnode, MixnodeError
try:
query = "SELECT url, title from homepages LIMIT 10"
response = Mixnode("Your API Key").execute(query)
print(response)
except MixnodeError as error:
print(error)
Mixnode’s execute functionality
execute is a synchronous operation which builds response based on paging Mixnode SQL API.
execute can accept upto two parameters : query, inputLimit (optional).
Please see various Examples for usage details.
from mixnode import Mixnode, MixnodeError
try:
response = Mixnode("Your API Key").execute(query)
# Do something with response
except MixnodeError as error:
# Do something with error
from mixnode import Mixnode, MixnodeError
try:
# Fires a query and also sets the input limit on the data to be scanned
response = Mixnode("Your API Key").execute(query, inputLimit)
# Do something with response
except MixnodeError as error:
# Do something with error
SDK debugging
Turning on the debug mode logs the HTTP requests being sent to the Mixnode API. This is useful to verify if the queries being sent are correct or to verify if query execution is in progress.
# Setting debug to true logs the state of the application.
# Do not use this in production.
Mixnode("Your API Key").setDebug(True);
Examples: Mixnode Python Client
Support
Metadata
Release files for mixnode-py-sdk 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mixnode-py-sdk-1.0.2.tar.gz | 184.4 kB | Without provenance | Details for mixnode-py-sdk-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mixnode_py_sdk-1.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for mixnode_py_sdk-1.0.2-py2.py3-none-any.whl |
Total release size: 196.3 kB
Release files / mixnode-py-sdk-1.0.2.tar.gz
| Download URL | mixnode-py-sdk-1.0.2.tar.gz |
|---|---|
| Size | 184.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dba519e0b1a1eaf75056c313e45bbc1e516e421338a5b00b55457d54400c4b50
|
|
BLAKE2b-256 checksum How to use checksums |
a0dc383120d6936a565075275faeba4f1412e40be2dced667419a6822f0da574
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Release files / mixnode_py_sdk-1.0.2-py2.py3-none-any.whl
| Download URL | mixnode_py_sdk-1.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1db1e9855f58c5073abf5152d3e7a30bbaa368b9bc5b6e5d71530b9d14cb495d
|
|
BLAKE2b-256 checksum How to use checksums |
6faa1e7ac5fd0ea35af7f4476fd7e994db59fe502482acd78d1ad4b7048ad1dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Security for mixnode-py-sdk 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.