![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Asynchronous MeiliSearch API client that is 100% compatible with MeiliSearch Python
upstream commit hash: e665923efc9735fd09994b0f01395ceb29051c71
import asyncio
import ameilisearch
async def main():
documents = [
{ 'id': 1, 'title': 'Carol', 'genres': ['Romance', 'Drama'] },
{ 'id': 2, 'title': 'Wonder Woman', 'genres': ['Action', 'Adventure'] },
{ 'id': 3, 'title': 'Life of Pi', 'genres': ['Adventure', 'Drama'] },
{ 'id': 4, 'title': 'Mad Max: Fury Road', 'genres': ['Adventure', 'Science Fiction'] },
{ 'id': 5, 'title': 'Moana', 'genres': ['Fantasy', 'Action']},
{ 'id': 6, 'title': 'Philadelphia', 'genres': ['Drama'] },
]
async with ameilisearch.Client("http://127.0.0.1:7700", 'masterKey') as client:
async with client.index("movies") as index:
# If the index 'movies' does not exist, MeiliSearch creates it when you first add the documents.
await index.add_documents(documents) # => { "updateId": 0 }
asyncio.get_event_loop().run_until_complete(main())
Existing API clients worked with requests
.
ameilisearch works with aiohttp
.
Users need to manage client sessions.
The http instance is in two places: Client
and Index
.
Use the async with
syntax to close the session immediately after use, or must close the session using await :client_or_index_instance:.http.session.close()
after using it all.
FAQs
The python async client for MeiliSearch API.
We found that ameilisearch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.