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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cradl-0.6.6.tar.gz
  • Upload date:
  • Size: 29.9 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.6.tar.gz
Algorithm Hash digest
SHA256 50c02799351b6ab4f2105c30cd272dad53be13075a0e708e42bba6204dd320b5
MD5 e810175ad78f259a59332c4ef7aaf32a
BLAKE2b-256 08d40f839fe3f76285dbbcaf9a30a20b254d84bc8ef6981c74dad498a8fd2a9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cradl-0.6.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4ac4088644fe816e0a224e8d43b7f3dd5df5352d62c45e3004d37afb43f0a766
MD5 f2c7caae05aa0d5ed946745e8dcffd3b
BLAKE2b-256 289f41282baf983955745eccd5602e00f398df40ee6dc6880b95f881a8f21f2e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.6 This release

2 files

0.6.5

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