Registry / http-networking / trieve-py-client

trieve-py-client

JSON →
library0.12.12pypypiunverified

Official Python client for the Trieve API, a search and recommendation platform. Current version 0.12.12. Actively maintained with frequent releases.

pip install trieve-py-client
INSTALL
IMPORT
SIG · TRIEVE-PY-CLIENT
T
trieve-py-client
http-networkingpythonv0.12.12
Install
3.9s avg
Import
Disk
34MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.12.12 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 35.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.9s · import 0.000s · 35MB
34MB installed
● package 34MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Trieve
from trieve_py_client import Trieve
from trieve_py_client import Trieve

Initialize client with API key and perform a search.

import os from trieve_py_client import Trieve, ApiClient, Configuration api_key = os.environ.get('TRIEVE_API_KEY', 'your-api-key') config = Configuration(api_key={'ApiKey': api_key}) client = Trieve(ApiClient(config)) # Example: search query = 'python client' results = client.search_api.search( tr_dataset='your-dataset-id', search_query=query, page_size=10 ) print(results)
Debug
Known issues
breakingIn version 0.12.0, the 'search' method signature changed. 'search_query' is now required as a named parameter.
fix
Use client.search_api.search(tr_dataset='...', search_query='...').
affects: >=0.12.0
gotchaThe 'Trieve' class constructor expects an 'ApiClient' instance, not a 'Configuration' directly.
fix
client = Trieve(ApiClient(config))
affects: all
deprecatedThe method 'search' on the 'Trieve' class directly was deprecated in favor of 'search_api.search'.
fix
Use client.search_api.search(...) instead of client.search(...).
affects: >=0.10.0
Upgrade
Version history
0.12.12latest on PyPI · released Feb 3, 2025
Audit
Dependencies
requestsrequiredHTTP client for API calls
Agent activity
52 hits · last 30 days
node
42
OpenAI (training)
1
Resources
trieve-py-client — pip install trieve-py-client · libregistry