{"library":"meilisearch-python-sdk","title":"Meilisearch Python SDK","description":"A Python client providing both async and sync support for the Meilisearch API. The SDK simplifies interacting with Meilisearch, an open-source, fast, and relevant search engine. Current version 7.1.3 supports Python >=3.10 and features both synchronous and asynchronous clients.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install meilisearch-python-sdk"],"cli":null},"imports":["from meilisearch_python_sdk import MeilisearchClient","from meilisearch_python_sdk import AsyncMeilisearchClient","from meilisearch_python_sdk.sync_client import Client"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from meilisearch_python_sdk import MeilisearchClient\n\nclient = MeilisearchClient('http://localhost:7700', 'masterKey')\nindex = client.index('movies')\ndocuments = [\n    { 'id': 1, 'title': 'Carol', 'genres': ['Romance', 'Drama'] },\n    { 'id': 2, 'title': 'Wonder Woman', 'genres': ['Action', 'Adventure'] }\n]\nresult = index.add_documents(documents)\nprint(result)","lang":"python","description":"Initialize sync client, add documents to an index.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}