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-8.0.0.tar.gz
(18.7 kB
view details)
Built Distribution
File details
Details for the file lucidtech-las-8.0.0.tar.gz
.
File metadata
- Download URL: lucidtech-las-8.0.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/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f20a835ebbf92a840a1cfdb12fa5f8a36a46c814fef9403cb71c1413d4557ec |
|
MD5 | 51696c61da860382005502c6bf262e8c |
|
BLAKE2b-256 | ad5d1d294d549417e1a9f8efb169ea96a0eb536c10d3d7294c002ad783dd534a |
File details
Details for the file lucidtech_las-8.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: lucidtech_las-8.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fc712df73e91f340619b634485b2b9aeb3a07b844ab8c913bf433b48c8810d3 |
|
MD5 | 8b64aa108ee44976c8dcc7792012c167 |
|
BLAKE2b-256 | 5e099095d9e9c5108f24dba0521e26fbb03e6c856b2c2b052da8427913d27209 |