-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #307 from sanders41/doc-strings
Change docs to from mkautodocs to mkdocstrings
- Loading branch information
Showing
11 changed files
with
1,348 additions
and
1,344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
## `Client Usage` | ||
|
||
### Create a client with a context manager | ||
|
||
This client runs in a context manager which ensures that everything is cleaned up after the use of | ||
the client is done. To create a client: | ||
|
||
```py | ||
from milisearch-python-async import Client | ||
|
||
|
||
async with Client("http://localhost:7700", "masterKey") as client: | ||
index = client.index("movies") | ||
... | ||
``` | ||
|
||
### Create a client without a context manager | ||
|
||
It is also possible to call the client without using a context manager, but in doing so you will | ||
need to make sure to do the cleanup yourself: | ||
|
||
```py | ||
from meilisearch-python-async import Client | ||
|
||
|
||
try: | ||
client = Client("http://localhost:7700", "masterKey") | ||
... | ||
finally: | ||
await client.aclose() | ||
|
||
``` | ||
|
||
## `Client API` | ||
|
||
::: meilisearch_python_async.client.Client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## `Index` | ||
|
||
::: meilisearch_python_async.index.Index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## Tasks | ||
|
||
::: meilisearch_python_async.task |
Oops, something went wrong.