{"library":"typesense","type":"library","category":null,"description":"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.","language":"python","status":"active","version":"2.0.0","tags":["typesense","search","python","fulltext","vector-search","algolia-alternative"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install typesense","imports":["import typesense\n\nclient = typesense.Client({\n    'nodes': [{\n        'host': 'localhost',\n        'port': '8108',\n        'protocol': 'http'\n    }],\n    'api_key': 'your-api-key',\n    'connection_timeout_seconds': 2\n})\n\n# Create collection\nclient.collections.create({\n    'name': 'products',\n    'fields': [\n        {'name': 'name', 'type': 'string'},\n        {'name': 'price', 'type': 'float'}\n    ],\n    'default_sorting_field': 'price'\n})\n\n# Index document\nclient.collections['products'].documents.create({\n    'id': '1',\n    'name': 'Widget',\n    'price': 9.99\n})\n\n# Search\nresult = client.collections['products'].documents.search({\n    'q': 'widget',\n    'query_by': 'name'\n})","import typesense\nimport asyncio\n\nasync def main():\n    client = typesense.AsyncClient({\n        'nodes': [{\n            'host': 'localhost',\n            'port': '8108',\n            'protocol': 'http'\n        }],\n        'api_key': 'your-api-key',\n        'connection_timeout_seconds': 2\n    })\n    result = await client.collections.retrieve()\n    await client.api_call.aclose()  # must close\n    return result\n\nasyncio.run(main())"]}],"homepage":"https://typesense.org","github":"https://github.com/typesense/typesense-python","docs":"https://typesense.org/","changelog":null,"pypi":"https://pypi.org/project/typesense/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2.2,"avg_import_s":0.33,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/typesense/compatibility"}}