用于 Lucidtech AI 服务的 Python SDK
项目描述
用于 Lucidtech AI 服务 API 的 Python SDK
文档
安装
$ pip install lucidtech-las
用法
在此处免费注册并下载 API 凭证以使用此 SDK。在此处阅读有关对 API 进行身份验证的更多信息
快速开始
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))
贡献
先决条件
$ pip install -r requirements.txt
$ pip install -r requirements.ci.txt
运行测试
$ make prism-start
$ python -m pytest
创建文档
$ tox -e docs .docsout