TouAI

TouAI Python SDK

Use one Python client to work with Context Layer, Unstructured Data, Deep Research, Data Search, Storage, Billing, Organizations, and Auth.

TouAI Python SDK is the official Python client for the TouAI platform. It gives application developers, agents, and backend services a single entry point for the platform's data, research, storage, and billing APIs.

Package: touai · Version: 0.2.0 · Python: >= 3.10

Why this SDK

  • One client for the full TouAI platform
  • First-class Python examples for synchronous and streaming workflows
  • Built-in retry handling for transient failures
  • Typed response models powered by Pydantic v2

Service Map

Installation at a Glance

pip install touai
from touai import TouAI
 
with TouAI() as client:
    results = client.context_hub.search("quarterly revenue")
    print(results.total_results)

Client Surface

The SDK exposes platform services as namespaced properties on the TouAI client:

PropertyServiceDescription
client.authAuthRegister, login, OAuth, profile, context switching
client.organizationsOrganizationsCRUD, members, invitations, permissions
client.api_keysAPI KeysCreate, rotate, revoke, validate
client.context_hubContext Layer50+ data connectors, sync, RAG search
client.unstructuredUnstructured DataDocument and video processing, file management
client.deep_researchDeep ResearchResearch workflows with streaming SSE
client.data_searchData SearchWeb scraping, search, deep crawl
client.storageData LakehouseObject storage with project ACLs
client.billingBillingCredits, plans, subscriptions, payments
1

Install and authenticate

Start with installation, authentication, configuration, and client lifecycle so every example later in the docs feels familiar.

2

Pick a core service

Move into Context Layer, Unstructured Data, Deep Research, Data Search, or Storage based on the workflow you are building.

3

Finish with platform reference

Use the Billing, Organizations, Auth, Error Handling, and Type Reference pages as reference material while integrating.

Installation