The Nux Python Client is a simple and effective way to interact with the Nux API. It simplifies the process of making requests to Nux API services, handling authentication, and processing responses.
- Easy to use interface for interacting with Nux API.
- Supports running workbooks with custom parameters.
- Handles API authentication seamlessly.
To install the Nux Python Client, simply use pip:
pip install nuxai
from nuxai import NuxAI
api_key = 'your_api_key_here'
nux_client = NuxAI(api_key)
To run a workbook with the client:
workbook_id = 'your_workbook_id'
parameters = {
# Your parameters here
}
response = nux_client.run(workbook_id, parameters)
if response:
print(response)
else:
print("Failed to run the workbook")
The client provides basic error handling, displaying the HTTP status code and response text in case of an error.