Skip to main content

Python SDK for Lucidtech AI Services

Project description

Python SDK for Lucidtech AI Services API

Github Actions build status

Documentation

Link to docs

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.0.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

lucidtech_las-7.0.0-py2.py3-none-any.whl (18.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file lucidtech-las-7.0.0.tar.gz.

File metadata

  • Download URL: lucidtech-las-7.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for lucidtech-las-7.0.0.tar.gz
Algorithm Hash digest
SHA256 b3141ef588e3b71add86a12467aa82d41094188eac4db7ee9184f351a605edb1
MD5 b4ad5e84350cc6c7f4e199c4c989c2b2
BLAKE2b-256 d3eeca392ee52834491716402e868fbfef31808b83fc304f2476ff402952a2ed

See more details on using hashes here.

File details

Details for the file lucidtech_las-7.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: lucidtech_las-7.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/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for lucidtech_las-7.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0dfad817c18925c7f13500e7b80888103e6698379a81688224d6b1c579977445
MD5 45c59c2ed108ebaf571c9ba806c9de94
BLAKE2b-256 a8cd013bb0e937615409a678c7f330c72f31dd4c9752db0bef5ca2f02a9c6a39

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page