Skip to content

Python SDK

Welcome to the Synthetic Users Python SDK documentation.

Overview

The Python SDK provides a convenient way to interact with the Synthetic Users API from your Python applications.

Features

  • Simple and intuitive API
  • Type hints for better IDE support
  • Async/await support
  • Comprehensive error handling
  • Automatic retries and rate limiting

Common Tasks

Quick access to the most frequently used SDK methods.

🚀 Getting Started

Essential methods to begin your research:

🔬 Running Research

Conduct interviews and gather insights:

📊 Generating Insights

Analyze data and extract patterns:

📄 Reports & Export

Create professional documents:

📁 File Management

Upload context and monitor progress:

Requirements

  • Python 3.8 or higher
  • pip package manager

Authentication

The Synthetic Users API uses Bearer token authentication (HTTPBearer). You need to provide a valid access token when making API requests.

python
import syntheticusers

configuration = syntheticusers.Configuration(
    host="https://api.syntheticusers.com/api/v1",
    access_token="your-access-token"
)

with syntheticusers.ApiClient(configuration) as api_client:
    # Use API client
    pass

For more details, see the Authentication Guide.

Released under the MIT License.