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

Metadata

Release files for cradl 0.6.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cradl 0.6.7
File Size Uploaded Provenance
cradl-0.6.7.tar.gz 29.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cradl 0.6.7
File Interpreter ABI Platform
cradl-0.6.7-py3-none-any.whl Python 3 none any Details

Total release size: 52.7 kB

Release files / cradl-0.6.7.tar.gz

Download URL cradl-0.6.7.tar.gz
Size 29.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2e07efa8031ec5dd664e6abb92291914d9fe94b2c54fb3da0c45575c56d68722
BLAKE2b-256 checksum
How to use checksums
fa156c0bd26df25b3cece36b3a5a7fb1af764586a5e2975426a926767fe36ae4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / cradl-0.6.7-py3-none-any.whl

Download URL cradl-0.6.7-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26087358f0c938138de3591a2be05d9c089e92b8f176691dc36d93061426b259
BLAKE2b-256 checksum
How to use checksums
33a2a64d07e268dd3fadfbbe6bcc2ab0751b2119126ae15d3f411f680afe8e51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for cradl 0.6.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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