Python SDK

The Python SDK provides a Pythonic way to interact with the API. In many prototyping scenarios, you may find it most convenient to use the Python SDK and CLI to interact with Sutro. See the installation guide to install the SDK.

Basic Methods

Setting your API key

When you initialize the SDK, you can set your API key by calling the set_api_key method. Additionally, you can set your API key by running the sutro login command in the CLI.
set_api_key(self, api_key: str)
Set the API key for the Sutro API.
Parameters:
api_key (str): The API key to set.
Returns: None