Installation
Install the latest version of the Praxos Python SDK:pydantic
, httpx
For development installation from source:
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 API (default: “https://api.praxos.ai/”)params
(optional): Additional query parameters to include in all requeststimeout
(optional): Request timeout in seconds (default: 10.0)
API Key Validation
The client includes built-in API key validation:Environment Management
Creating an Environment
Retrieving Environments
Ontology Management
Ontologies define the structure and types of data that your environment can process. They use Pydantic models to define schemas for entity extraction and validation.Creating an Ontology
Retrieving Ontologies
Error Handling
The client includes built-in error handling for common API issues:APIError
: General API errorsAPIKeyInvalidError
: Invalid API key errors
Additional Imports
The SDK provides several model classes and utilities that you can import:Resource Management
The client implements Python’s context manager protocol, allowing you to use it with thewith
statement: