Praxos Python Client
The Praxos Python client provides a synchronous interface for interacting with the Praxos API. This guide will help you get started with the client and show you how to use its main features.
Installation
Getting Started
To start using the Praxos client, you’ll need to initialize it with your API key:
Configuration Options
The client accepts several configuration options:
api_key
(required): Your Praxos API keybase_url
(optional): Custom base URL for the APIparams
(optional): Additional query parameters to include in all requeststimeout
(optional): Request timeout in seconds (default: 10.0)
Environment Management
Creating an Environment
Retrieving Environments
Error Handling
The client includes built-in error handling for common API issues:
APIError
: General API errorsAPIKeyInvalidError
: Invalid API key errors
Example error handling:
Resource Management
The client implements Python’s context manager protocol, allowing you to use it with the with
statement: