Official Python client for Typesense — open source typo-tolerant search engine, alternative to Algolia/Elasticsearch. Current version: 2.0.0 (Mar 2026). v2.0 added AsyncClient. Client takes a config dict with 'nodes' list — not a URL string. Typesense Cloud uses port 443 and HTTPS. Self-hosted uses port 8108 and HTTP by default.
pip install typesenseVerified import paths — ran on the pinned version, not inferred.
Typesense Python client — collection creation, indexing, and search.
Always: {'nodes': [{'host': '...', 'port': '8108', 'protocol': 'http'}], 'api_key': '...'}Cloud: port='443', protocol='https'. Self-hosted: port='8108', protocol='http'.
Always call client.collections.create({...}) before indexing documents.Always stringify IDs: {'id': str(record_id), ...}await client.api_call.aclose() when done, or use try/finally.
See https://github.com/typesense/typesense-python for compatibility matrix.
No dependency data recorded yet.