SDKs · Python
Python SDK
Typed Python client with sync and async support.
Install
Shell
pip install youdotcomSync usage
Python
from youdotcom import You
with You("<API_KEY>") as you:
res = you.search.unified(query="duckdb vs sqlite for analytics")
print(res.results.web[0].url)Async usage
Python
import asyncio
from youdotcom import AsyncYou
async def main():
async with AsyncYou("<API_KEY>") as you:
res = await you.search.unified(query="async patterns python 3.12")
print(res.results.web[0].title)
asyncio.run(main())