From 0e5770465ce9524f88f80b68db24537e4cd08294 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 17:31:50 +0000 Subject: automatic import of python-algoliasearch --- .gitignore | 1 + python-algoliasearch.spec | 278 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 280 insertions(+) create mode 100644 python-algoliasearch.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..43ce3ff 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/algoliasearch-3.0.0.tar.gz diff --git a/python-algoliasearch.spec b/python-algoliasearch.spec new file mode 100644 index 0000000..597e5b1 --- /dev/null +++ b/python-algoliasearch.spec @@ -0,0 +1,278 @@ +%global _empty_manifest_terminate_build 0 +Name: python-algoliasearch +Version: 3.0.0 +Release: 1 +Summary: Algolia Search API Client for Python. +License: MIT +URL: https://github.com/algolia/algoliasearch-client-python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c3/3a/68b9136bab8d04f837c5b1893be1de2d6403f9cb5f18961194a168e90917/algoliasearch-3.0.0.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-typing + +%description +

+ + Algolia for Python + + +

The perfect starting point to integrate Algolia within your Python project

+ +

+ PyPI + Python versions + License +

+

+ +

+ Documentation • + Django • + Community Forum • + Stack Overflow • + Report a bug • + FAQ • + Support +

+ +## ✨ Features + +- Thin & minimal low-level HTTP client to interact with Algolia's API +- Supports Python from `3.4` to `3.11` +- Contains blazing-fast asynchronous methods built on top of the [Asyncio](https://docs.python.org/3/library/asyncio.html) + +## 💡 Getting Started + +First, install Algolia Python API Client via the [pip](https://pip.pypa.io/en/stable/installing) package manager: + +```bash +pip install --upgrade 'algoliasearch>=3.0,<4.0' +``` + +Then, create objects on your index: + +```py +from algoliasearch.search_client import SearchClient + +client = SearchClient.create('YourApplicationID', 'YourAPIKey') +index = client.init_index('your_index_name') + +index.save_objects([{'objectID': 1, 'name': 'Foo'}]) +``` + +Finally, you may begin searching a object using the `search` method: + +```py +objects = index.search('Fo') +``` + +For full documentation, visit the **[Algolia Python API Client](https://www.algolia.com/doc/api-client/getting-started/install/python/)**. + +## ❓ Troubleshooting + +Encountering an issue? Before reaching out to support, we recommend heading to our [FAQ](https://www.algolia.com/doc/api-client/troubleshooting/faq/python/) where you will find answers for the most common issues and gotchas with the client. + +## Use the Dockerfile + +If you want to contribute to this project without installing all its dependencies, you can use our Docker image. Please check our [dedicated guide](DOCKER_README.MD) to learn more. + +## 📄 License + +Algolia Python API Client is an open-sourced software licensed under the [MIT license](LICENSE.md). + + +%package -n python3-algoliasearch +Summary: Algolia Search API Client for Python. +Provides: python-algoliasearch +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-algoliasearch +

+ + Algolia for Python + + +

The perfect starting point to integrate Algolia within your Python project

+ +

+ PyPI + Python versions + License +

+

+ +

+ Documentation • + Django • + Community Forum • + Stack Overflow • + Report a bug • + FAQ • + Support +

+ +## ✨ Features + +- Thin & minimal low-level HTTP client to interact with Algolia's API +- Supports Python from `3.4` to `3.11` +- Contains blazing-fast asynchronous methods built on top of the [Asyncio](https://docs.python.org/3/library/asyncio.html) + +## 💡 Getting Started + +First, install Algolia Python API Client via the [pip](https://pip.pypa.io/en/stable/installing) package manager: + +```bash +pip install --upgrade 'algoliasearch>=3.0,<4.0' +``` + +Then, create objects on your index: + +```py +from algoliasearch.search_client import SearchClient + +client = SearchClient.create('YourApplicationID', 'YourAPIKey') +index = client.init_index('your_index_name') + +index.save_objects([{'objectID': 1, 'name': 'Foo'}]) +``` + +Finally, you may begin searching a object using the `search` method: + +```py +objects = index.search('Fo') +``` + +For full documentation, visit the **[Algolia Python API Client](https://www.algolia.com/doc/api-client/getting-started/install/python/)**. + +## ❓ Troubleshooting + +Encountering an issue? Before reaching out to support, we recommend heading to our [FAQ](https://www.algolia.com/doc/api-client/troubleshooting/faq/python/) where you will find answers for the most common issues and gotchas with the client. + +## Use the Dockerfile + +If you want to contribute to this project without installing all its dependencies, you can use our Docker image. Please check our [dedicated guide](DOCKER_README.MD) to learn more. + +## 📄 License + +Algolia Python API Client is an open-sourced software licensed under the [MIT license](LICENSE.md). + + +%package help +Summary: Development documents and examples for algoliasearch +Provides: python3-algoliasearch-doc +%description help +

+ + Algolia for Python + + +

The perfect starting point to integrate Algolia within your Python project

+ +

+ PyPI + Python versions + License +

+

+ +

+ Documentation • + Django • + Community Forum • + Stack Overflow • + Report a bug • + FAQ • + Support +

+ +## ✨ Features + +- Thin & minimal low-level HTTP client to interact with Algolia's API +- Supports Python from `3.4` to `3.11` +- Contains blazing-fast asynchronous methods built on top of the [Asyncio](https://docs.python.org/3/library/asyncio.html) + +## 💡 Getting Started + +First, install Algolia Python API Client via the [pip](https://pip.pypa.io/en/stable/installing) package manager: + +```bash +pip install --upgrade 'algoliasearch>=3.0,<4.0' +``` + +Then, create objects on your index: + +```py +from algoliasearch.search_client import SearchClient + +client = SearchClient.create('YourApplicationID', 'YourAPIKey') +index = client.init_index('your_index_name') + +index.save_objects([{'objectID': 1, 'name': 'Foo'}]) +``` + +Finally, you may begin searching a object using the `search` method: + +```py +objects = index.search('Fo') +``` + +For full documentation, visit the **[Algolia Python API Client](https://www.algolia.com/doc/api-client/getting-started/install/python/)**. + +## ❓ Troubleshooting + +Encountering an issue? Before reaching out to support, we recommend heading to our [FAQ](https://www.algolia.com/doc/api-client/troubleshooting/faq/python/) where you will find answers for the most common issues and gotchas with the client. + +## Use the Dockerfile + +If you want to contribute to this project without installing all its dependencies, you can use our Docker image. Please check our [dedicated guide](DOCKER_README.MD) to learn more. + +## 📄 License + +Algolia Python API Client is an open-sourced software licensed under the [MIT license](LICENSE.md). + + +%prep +%autosetup -n algoliasearch-3.0.0 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-algoliasearch -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 3.0.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..e4bf350 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +eaf7dc662a69abeebe4b8ee3cf7fb4b4 algoliasearch-3.0.0.tar.gz -- cgit v1.2.3