Skip to main content

Python SDK for Cradl

Project description

Python SDK for Cradl

Github Actions build status

Installation

$ pip install cradl

Usage

Sign up for free here and download API credentials to use this SDK. Read more about authenticating to the API here

Quick start

import json
from cradl 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

$ pip install -r requirements.txt
$ pip install -r requirements.ci.txt

Run tests

$ make prism-start
$ python -m pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cradl-0.4.4.tar.gz (33.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cradl-0.4.4-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file cradl-0.4.4.tar.gz.

File metadata

  • Download URL: cradl-0.4.4.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for cradl-0.4.4.tar.gz
Algorithm Hash digest
SHA256 68e5c465e4a5c8bb1a0dbfa50f1f025397c369b5c13125a82b5056e054bb9ea0
MD5 e2533ed653b32ab9f25155d13d168aa6
BLAKE2b-256 07298c00a9d40c83c9869bde2d055a961c8720a211e7dbc317f2fb9872d15de3

See more details on using hashes here.

File details

Details for the file cradl-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: cradl-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for cradl-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e4001c582d60730b8ecd0b5848eabbe163ebdffc37b785149d5746c343ccd1ad
MD5 d3db7b878a1ec974622818c1b9f46b4e
BLAKE2b-256 270e8979ff4c4909f50a845349932eef87d644df13926e8bfbcb54b2cebfb9ac

See more details on using hashes here.

Supported by

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