Python SDK for Lucidtech AI Services
Project description
Python SDK for Lucidtech AI Services API
Documentation
Installation
$ pip install lucidtech-las
Usage
Preconditions
- Documents must be in upright position
- Only one receipt or invoice per document is supported
- Supported file formats are: jpeg, pdf
Quick start
import json
from las import Client
client = Client()
document = client.create_document('path/to/document.pdf', 'application/pdf')
prediction = client.create_prediction(document['documentId'], model_id='las:model:<hex-uuid>')
print(json.dumps(prediction, indent=2))
Contributing
Prerequisites
$ pip install -r requirements.txt
$ pip install -r requirements.ci.txt
Run tests
$ make prism-start
$ python -m pytest
Create docs
$ tox -e docs .docsout
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lucidtech-las-7.1.0.tar.gz
(18.7 kB
view details)
Built Distribution
File details
Details for the file lucidtech-las-7.1.0.tar.gz
.
File metadata
- Download URL: lucidtech-las-7.1.0.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ca2ed2fc2df35b89ec48103b72841bd3969ee34e3c685e6d77b517cb0fb1d2 |
|
MD5 | 54f6af72ad67561090da4d63764616ae |
|
BLAKE2b-256 | 52f5f2a74169d1f3bc0913f776cb6776f19637573ba00d755bc6df632adc190f |
File details
Details for the file lucidtech_las-7.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: lucidtech_las-7.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11d549d483cb8617359c0984670384710a343a4a25d99ad7f8b56e77ca1d61e1 |
|
MD5 | 80551a6b4738668c102ffe31ed3cb3ea |
|
BLAKE2b-256 | 17f550fcd33e8eec886d7fd9d7929b21c1ac8a206e6be2bd9e6d0aa448021426 |