summaryrefslogtreecommitdiff
path: root/python-lucidtech-las.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 06:57:53 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 06:57:53 +0000
commit043adb9deb9a7423c0ee7eb63dbd2d5739239ef4 (patch)
tree7af07e73e40028175bbca8cbb730fd39d64d2bff /python-lucidtech-las.spec
parentfc51ebd49cb26d03d670865495be691c96214c95 (diff)
automatic import of python-lucidtech-las
Diffstat (limited to 'python-lucidtech-las.spec')
-rw-r--r--python-lucidtech-las.spec237
1 files changed, 237 insertions, 0 deletions
diff --git a/python-lucidtech-las.spec b/python-lucidtech-las.spec
new file mode 100644
index 0000000..c5fc4a8
--- /dev/null
+++ b/python-lucidtech-las.spec
@@ -0,0 +1,237 @@
+%global _empty_manifest_terminate_build 0
+Name: python-lucidtech-las
+Version: 8.10.0
+Release: 1
+Summary: Python SDK for Lucidtech AI Services
+License: Apache 2.0
+URL: https://github.com/LucidtechAI/las-sdk-python
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0f/cf/0c7114472ada169fd158e803ed0c0491c12574d39cb11aca0c5fa7022aef/lucidtech-las-8.10.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-backoff
+Requires: python3-filetype
+
+%description
+# Python SDK for Lucidtech AI Services API
+
+![Github Actions build status](https://github.com/LucidtechAI/las-sdk-python/workflows/main/badge.svg)
+
+## Documentation
+
+[Link to docs](https://docs.cradl.ai/python-docs/index.html)
+
+## Installation
+
+```bash
+$ pip install lucidtech-las
+```
+
+## Usage
+
+Sign up for free [here](https://app.cradl.ai/signup) and download API credentials to use this SDK.
+Read more about authenticating to the API [here](https://docs.cradl.ai/overview/authentication)
+
+### Quick start
+
+```python
+import json
+from las import Client
+
+client = Client()
+models = client.list_models()['models'] # List all models available
+model_id = models[0]['modelId'] # Get ID of first model in list
+document = client.create_document('path/to/document.pdf')
+prediction = client.create_prediction(document['documentId'], model_id=model_id)
+print(json.dumps(prediction, indent=2))
+```
+
+## Contributing
+
+### Prerequisites
+
+```bash
+$ pip install -r requirements.txt
+$ pip install -r requirements.ci.txt
+```
+
+### Run tests
+
+```bash
+$ make prism-start
+$ python -m pytest
+```
+
+### Create docs
+
+```bash
+$ tox -e docs .docsout
+```
+
+
+%package -n python3-lucidtech-las
+Summary: Python SDK for Lucidtech AI Services
+Provides: python-lucidtech-las
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-lucidtech-las
+# Python SDK for Lucidtech AI Services API
+
+![Github Actions build status](https://github.com/LucidtechAI/las-sdk-python/workflows/main/badge.svg)
+
+## Documentation
+
+[Link to docs](https://docs.cradl.ai/python-docs/index.html)
+
+## Installation
+
+```bash
+$ pip install lucidtech-las
+```
+
+## Usage
+
+Sign up for free [here](https://app.cradl.ai/signup) and download API credentials to use this SDK.
+Read more about authenticating to the API [here](https://docs.cradl.ai/overview/authentication)
+
+### Quick start
+
+```python
+import json
+from las import Client
+
+client = Client()
+models = client.list_models()['models'] # List all models available
+model_id = models[0]['modelId'] # Get ID of first model in list
+document = client.create_document('path/to/document.pdf')
+prediction = client.create_prediction(document['documentId'], model_id=model_id)
+print(json.dumps(prediction, indent=2))
+```
+
+## Contributing
+
+### Prerequisites
+
+```bash
+$ pip install -r requirements.txt
+$ pip install -r requirements.ci.txt
+```
+
+### Run tests
+
+```bash
+$ make prism-start
+$ python -m pytest
+```
+
+### Create docs
+
+```bash
+$ tox -e docs .docsout
+```
+
+
+%package help
+Summary: Development documents and examples for lucidtech-las
+Provides: python3-lucidtech-las-doc
+%description help
+# Python SDK for Lucidtech AI Services API
+
+![Github Actions build status](https://github.com/LucidtechAI/las-sdk-python/workflows/main/badge.svg)
+
+## Documentation
+
+[Link to docs](https://docs.cradl.ai/python-docs/index.html)
+
+## Installation
+
+```bash
+$ pip install lucidtech-las
+```
+
+## Usage
+
+Sign up for free [here](https://app.cradl.ai/signup) and download API credentials to use this SDK.
+Read more about authenticating to the API [here](https://docs.cradl.ai/overview/authentication)
+
+### Quick start
+
+```python
+import json
+from las import Client
+
+client = Client()
+models = client.list_models()['models'] # List all models available
+model_id = models[0]['modelId'] # Get ID of first model in list
+document = client.create_document('path/to/document.pdf')
+prediction = client.create_prediction(document['documentId'], model_id=model_id)
+print(json.dumps(prediction, indent=2))
+```
+
+## Contributing
+
+### Prerequisites
+
+```bash
+$ pip install -r requirements.txt
+$ pip install -r requirements.ci.txt
+```
+
+### Run tests
+
+```bash
+$ make prism-start
+$ python -m pytest
+```
+
+### Create docs
+
+```bash
+$ tox -e docs .docsout
+```
+
+
+%prep
+%autosetup -n lucidtech-las-8.10.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-lucidtech-las -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 8.10.0-1
+- Package Spec generated