{"id":24735,"library":"trieve-py-client","title":"Trieve Python Client","description":"Official Python client for the Trieve API, a search and recommendation platform. Current version 0.12.12. Actively maintained with frequent releases.","status":"active","version":"0.12.12","language":"python","source_language":"en","source_url":"https://github.com/devflowinc/trieve","tags":["search","api-client","trieve"],"install":[{"cmd":"pip install trieve-py-client","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"HTTP client for API calls","package":"requests","optional":false}],"imports":[{"note":"","wrong":"","symbol":"Trieve","correct":"from trieve_py_client import Trieve"},{"note":"","wrong":"","symbol":"ApiClient","correct":"from trieve_py_client import ApiClient"},{"note":"","wrong":"","symbol":"Configuration","correct":"from trieve_py_client import Configuration"},{"note":"","wrong":"","symbol":"SearchApi","correct":"from trieve_py_client.api.search_api import SearchApi"}],"quickstart":{"code":"import os\nfrom trieve_py_client import Trieve, ApiClient, Configuration\n\napi_key = os.environ.get('TRIEVE_API_KEY', 'your-api-key')\nconfig = Configuration(api_key={'ApiKey': api_key})\nclient = Trieve(ApiClient(config))\n\n# Example: search\nquery = 'python client'\nresults = client.search_api.search(\n    tr_dataset='your-dataset-id',\n    search_query=query,\n    page_size=10\n)\nprint(results)","lang":"python","description":"Initialize client with API key and perform a search."},"warnings":[{"fix":"Use client.search_api.search(tr_dataset='...', search_query='...').","message":"In version 0.12.0, the 'search' method signature changed. 'search_query' is now required as a named parameter.","severity":"breaking","affected_versions":">=0.12.0"},{"fix":"client = Trieve(ApiClient(config))","message":"The 'Trieve' class constructor expects an 'ApiClient' instance, not a 'Configuration' directly.","severity":"gotcha","affected_versions":"all"},{"fix":"Use client.search_api.search(...) instead of client.search(...).","message":"The method 'search' on the 'Trieve' class directly was deprecated in favor of 'search_api.search'.","severity":"deprecated","affected_versions":">=0.10.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use: from trieve_py_client import Trieve","cause":"Wrong import: using 'import trieve_py_client' without from.","error":"'module' object has no attribute 'Trieve'"},{"fix":"client = Trieve(ApiClient(config))","cause":"Passing Configuration directly to Trieve instead of ApiClient.","error":"TypeError: __init__() missing 1 required positional argument: 'api_client'"},{"fix":"Use client.search_api.search(...)","cause":"Trying to call search on the Trieve instance after API changes.","error":"'Trieve' object has no attribute 'search'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}