Installation
Install the TouAI SDK from PyPI and verify that your runtime matches the supported Python version.
Requirements
- Python
>= 3.10 httpx >= 0.25.0pydantic >= 2.0.0typing-extensions >= 4.5.0
Install from PyPI
pip install touaiVerify the package
from touai import TouAI
client = TouAI()
print(type(client).__name__)
client.close()First Client
from touai import TouAI
with TouAI() as client:
results = client.context_hub.search("quarterly revenue")
print(results.total_results)What to Read Next
- Go to
Authenticationif you need API keys, JWT login, or existing access tokens. - Go to
Configurationif you need to overridebase_url, timeout, or retry behavior.
For scripts, agents, and CI/CD pipelines, API key authentication is the recommended default.