{"id":23190,"library":"youdotcom","title":"You.com Python SDK","description":"The official Python SDK for You.com, providing access to You.com's AI chat, code generation, and search APIs. Current version 2.3.0, requires Python >=3.10. Follows monthly release cadence.","status":"active","version":"2.3.0","language":"python","source_language":"en","source_url":"https://github.com/YouHQ/youdotcom","tags":["you.com","ai","sdk","chat","api"],"install":[{"cmd":"pip install youdotcom","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"HTTP client for API calls","package":"httpx","optional":false},{"reason":"Data validation and settings management","package":"pydantic","optional":false},{"reason":"Compatibility with OpenAI-style chat completions","package":"openai","optional":true}],"imports":[{"wrong":"from youdotcom import YouClient","symbol":"YouClient","correct":"from youdotcom import YouClient"}],"quickstart":{"code":"import os\nfrom youdotcom import YouClient\n\nclient = YouClient(api_key=os.environ.get('YOU_API_KEY', ''))\nresponse = client.chat.completions.create(\n    model='gpt-4',\n    messages=[{'role': 'user', 'content': 'Hello, how are you?'}]\n)\nprint(response.choices[0].message.content)","lang":"python","description":"Initialize the client with an API key and make a simple chat request."},"warnings":[{"fix":"Require Python 3.10+ and upgrade youdotcom to latest.","message":"In v2.0, the SDK dropped support for Python 3.9 and below. Upgrade to Python >=3.10.","severity":"breaking","affected_versions":"<=2.0.0"},{"fix":"Use `from youdotcom import YouClient, ChatCompletion` instead of old submodule imports.","message":"Import paths changed in v2.0. YouClient and models are now directly under `youdotcom`, not `youdotcom.api` or `youdotcom.models`.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Always specify a model string, e.g., `model='gpt-4'`.","message":"The method `youclient.chat.completions.create` now requires explicit `model` parameter; default model is deprecated and will be removed.","severity":"deprecated","affected_versions":">=2.2.0"},{"fix":"Use `YouClient(api_key='your-key')` or export `YOU_API_KEY`.","message":"API key must be set via environment variable `YOU_API_KEY` or passed directly. SDK does not read from .env automatically.","severity":"gotcha","affected_versions":"all"},{"fix":"Create an httpx.AsyncClient with desired settings and pass it as `http_client` parameter to YouClient/AsyncYouClient.","message":"The SDK uses httpx internally; proxies and custom timeouts must be configured via httpx client options, not directly on YouClient.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2.3.0':24 '3.10':27 'access':11 'ai':15,33 'api':21,36 'cadenc':31 'chat':16,35 'code':17 'current':22 'follow':28 'generat':18 'month':29 'offici':5 'provid':10 'python':2,6,26 'releas':30 'requir':25 'sdk':3,7,34 'search':20 'version':23 'you.com':1,9,13,32","created_at":"2026-05-01T06:02:53.684243+00:00","updated_at":"2026-05-01T06:02:53.684243+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'YouClient' from 'youdotcom' (/tmp/tmp7ritsobd/venv/lib/python3.12/site-packages/youdotcom/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.3.0","cli_name":"","cli_version":null,"type":"library","homepage":"https://you.com","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/youdotcom/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["llm-agents","ai-ml","http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}