Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

⚡️ A fully-featured and blazing-fast Python API client to interact with Algolia.

License

NotificationsYou must be signed in to change notification settings

algolia/algoliasearch-client-python

Algolia for Python

The perfect starting point to integrateAlgolia within your Python project

PyPIPython versionsLicense

DocumentationDjangoCommunity ForumStack OverflowReport a bugSupport

✨ Features

  • Thin & minimal low-level HTTP client to interact with Algolia's API
  • Supports Python from3.8

💡 Getting Started

First, install Algolia Python API Client via thepip package manager:

pip install --upgrade'algoliasearch>=4.0,<5.0'

You can now import the Algolia API client in your project and play with it.

fromalgoliasearch.search.clientimportSearchClient_client=SearchClient("YOUR_APP_ID","YOUR_API_KEY")# Add a new record to your Algolia indexresponse=await_client.save_object(index_name="<YOUR_INDEX_NAME>",body={"objectID":"id","test":"val",    },)# use the class directlyprint(response)# print the JSON responseprint(response.to_json())# Poll the task status to know when it has been indexedawaitclient.wait_for_task(index_name="<YOUR_INDEX_NAME>",task_id=response.task_id)# Fetch search results, with typo toleranceresponse=await_client.search(search_method_params={"requests": [            {"indexName":"<YOUR_INDEX_NAME>","query":"<YOUR_QUERY>","hitsPerPage":50,            },        ],    },)# use the class directlyprint(response)# print the JSON responseprint(response.to_json())

For full documentation, visit theAlgolia Python API Client.

❓ Troubleshooting

Encountering an issue? Before reaching out to support, we recommend heading to ourFAQ where you will find answers for the most common issues and gotchas with the client. You can also opena GitHub issue

Contributing

This repository hosts the code of the generated Algolia API client for Python, if you'd like to contribute, head over to themain repository. You can also find contributing guides onour documentation website.

📄 License

The Algolia Python API Client is an open-sourced software licensed under theMIT license.

About

⚡️ A fully-featured and blazing-fast Python API client to interact with Algolia.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors46

Languages


[8]ページ先頭

©2009-2025 Movatter.jp