Skip to main content

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

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.6.5.tar.gz (29.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.6.5-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cradl-0.6.5.tar.gz
Algorithm Hash digest
SHA256 d32054fd4fd10f127537e0253b48623da04eb19388417853fb54a3d1c222d299
MD5 ca7c39e4367ea83aec19b9697518479f
BLAKE2b-256 c3c0c16f451e8c7a728177742bc1c5f66227312d92b61697deff0b03313415ed

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cradl-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b18fc7c1305b36367ca536bb969dc79a32584161b88fc579efadaeb9211d1171
MD5 74fbc36da5b7e79256bf2e44288470d0
BLAKE2b-256 1a87419da9f33691b024fe5088f696fb0c33c5a4049054971c68bbf4c5c6224e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.6

2 files

This release

0.6.5 This release

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.4.10

2 files

0.4.9

2 files

0.4.8

2 files

0.4.7

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page