You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@
32
32
-[🔧 Installation](#-installation)
33
33
-[🚀 Getting started](#-getting-started)
34
34
-[🤖 Compatibility with Meilisearch](#-compatibility-with-meilisearch)
35
+
-[⚡ Async usage](#-async-usage)
35
36
-[💡 Learn more](#-learn-more)
36
37
-[⚙️ Contributing](#️-contributing)
37
38
@@ -237,6 +238,28 @@ index.search(
237
238
238
239
This package guarantees compatibility with [version v1.2 and above of Meilisearch](https://github.com/meilisearch/meilisearch/releases/latest), but some features may not be present. Please check the [issues](https://github.com/meilisearch/meilisearch-python/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22+label%3Aenhancement) for more info.
239
240
241
+
## ⚡ Async usage
242
+
243
+
This SDK (`meilisearch`) is synchronous. If your project requires async/await support, the community-maintained [meilisearch-python-sdk](https://github.com/sanders41/meilisearch-python-sdk) provides a full-featured async (and sync) client with a similar API surface:
244
+
245
+
```bash
246
+
pip install meilisearch-python-sdk
247
+
```
248
+
249
+
```python
250
+
import asyncio
251
+
from meilisearch_python_sdk import AsyncClient
252
+
253
+
asyncdefmain():
254
+
asyncwith AsyncClient("http://127.0.0.1:7700", "masterKey") as client:
255
+
index = client.index("movies")
256
+
await index.search("wonder woman")
257
+
258
+
asyncio.run(main())
259
+
```
260
+
261
+
For more details, refer to the [meilisearch-python-sdk documentation](https://meilisearch-python-sdk.paulsanders.dev/).
262
+
240
263
## 💡 Learn more
241
264
242
265
The following sections in our main documentation website may interest you:
0 commit comments