Registry / database / meilisearch-python-sdk

meilisearch-python-sdk

JSON →
library7.2.2pypypi✓ verified 80d ago

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.

pip install meilisearch-python-sdk
INSTALL
IMPORT
SIG · MEILISEARCH-PYTHON
M
meilisearch-python-sdk
databasepythonv7.2.2
Install
4.4s avg
Import
Disk
32MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v7.2.2 · 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 · 34MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.4s · import 0.000s · 34MB
32MB installed
● package 32MB
Code
Verified usage

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

Client
from meilisearch_python_sdk import Client
from meilisearch_python_sdk import MeilisearchClient
AsyncClient
from meilisearch_python_sdk import AsyncClient
Index
from meilisearch_python_sdk import Index

Initialize sync client, add documents to an index.

from meilisearch_python_sdk import MeilisearchClient client = MeilisearchClient('http://localhost:7700', 'masterKey') index = client.index('movies') documents = [ { 'id': 1, 'title': 'Carol', 'genres': ['Romance', 'Drama'] }, { 'id': 2, 'title': 'Wonder Woman', 'genres': ['Action', 'Adventure'] } ] result = index.add_documents(documents) print(result)
Debug
Known issues
breakingVersion 7.0 changed the package name from 'meilisearch' to 'meilisearch-python-sdk' and the import path uses 'meilisearch_python_sdk'. Old code with 'meilisearch' will break.
fix
Install meilisearch-python-sdk and update imports to 'from meilisearch_python_sdk import ...'
affects: <7.0
gotchaThe async client requires an async context manager or explicit closing. Not closing the client can cause resource leaks.
fix
Use 'async with AsyncMeilisearchClient(...) as client:' or call 'await client.close()'.
affects: all
gotchaThe sync client's Client class is in 'meilisearch_python_sdk.sync_client', not at the top level of the package.
fix
Import as: 'from meilisearch_python_sdk.sync_client import Client'
affects: >=7.0
Upgrade
Version history
7.2.2latest on PyPI · released Jun 18, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
meilisearch-python-sdk — pip install meilisearch-python-sdk · libregistry