Installation
Install and configure the SDK
Quick Start
Create your first dataset in 5 minutes
Examples
Practical code examples and patterns
API Reference
Complete method and class documentation
Prerequisites
Before using the SDK, ensure you have:- Python 3.12+ installed
- API Key from the Sinkove dashboard
- Organization ID (UUID format) from the Sinkove dashboard
API keys and Organization IDs are covered in the Get
Started section.
Installation
Authentication
The SDK requires an API key for authentication:Never hardcode API keys in your source code. Use environment variables or
secure configuration management.
Basic Usage
Core Concepts
Client
TheClient
class is your main entry point to the SDK:
Datasets
Datasets are the core resource in Sinkove. They go through several states during processing:State | Description |
---|---|
PENDING | Dataset creation request received |
STARTED | Dataset generation in progress |
READY | Dataset successfully generated and ready for download |
FAILED | Dataset generation failed |
Dataset Operations
Creating Datasets
Listing and Retrieving Datasets
Downloading Datasets
The SDK provides flexible download options:Monitoring Progress
Error Handling
Always implement proper error handling for production use:Advanced Features
Custom API Endpoint
Multiple Organizations
Best Practices
- Security: Use environment variables for API keys
- Error Handling: Implement timeouts and proper exception handling
- Performance: Use parallel operations for multiple datasets
- Resource Management: Clean up downloaded files and monitor disk space
Common Issues
Problem | Solution |
---|---|
ValueError: An API key is required | Set SINKOVE_API_KEY environment variable |
TimeoutError: Dataset processing timed out | Increase timeout or check dataset complexity |
Exception: Failed to retrieve download URL | Ensure dataset is in READY state |