Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Konfuzio SDK

Downloads

The Konfuzio Software Development Kit (Konfuzio SDK) provides a Python API to interact with the Konfuzio Server.

Features

The SDK allows you to retrieve visual and text features to build your own document models. Konfuzio Server serves as an UI to define the data structure, manage training/test data and to deploy your models as API.

Function Public Host Free* On-Site (Paid)
OCR Text ✔️ ✔️
OCR Handwriting ✔️ ✔️
Text Annotation ✔️ ✔️
PDF Annotation ✔️ ✔️
Image Annotation ✔️ ✔️
Table Annotation ✔️ ✔️
Download HOCR ✔️ ✔️
Download Images ✔️ ✔️
Download PDF with OCR ✔️ ✔️
Deploy AI models ✖️ ✔️

* Under fair use policy: We will impose 10 pages/hour throttling eventually.

📒 Docs Read the docs
💾 Installation How to install the Konfuzio SDK
🎓 Tutorials See what the Konfuzio SDK can do with our Notebooks & Scripts
💡 Explanations Here are links to teaching material about the Konfuzio SDK.
⚙️ API Reference Python classes, methods, and functions
❤️ Contributing Learn how to contribute!
🐛 Issue Tracker Report and monitor Konfuzio SDK issues
🔭 Changelog Review the release notes
📰 MIT License Review the license

Installation

As developer register on our public HOST for free: https://app.konfuzio.com

Then you can use pip to install Konfuzio SDK and run init:

pip install konfuzio_sdk

konfuzio_sdk init

The init will create a Token to connect to the Konfuzio Server. This will create variables KONFUZIO_USER, KONFUZIO_TOKEN and KONFUZIO_HOST in an .env file in your working directory.

Find the full installation guide here or setup PyCharm as described here.

CLI

We provide the basic function to create a new Project via CLI:

konfuzio_sdk create_project YOUR_PROJECT_NAME

You will see "Project {YOUR_PROJECT_NAME} (ID {YOUR_PROJECT_ID}) was created successfully!" printed.

And download any project via the id:

konfuzio_sdk export_project YOUR_PROJECT_ID

Tutorials

You can find detailed examples about how to set up and run document AI pipelines in our Tutorials, including:

Basics

Here we show how to use the Konfuzio SDK to retrieve data hosted on a Konfuzio Server instance.

from konfuzio_sdk.data import Project, Document

# Initialize the Project
YOUR_PROJECT_ID: int
my_project = Project(id_=YOUR_PROJECT_ID)

# Get any Document online
DOCUMENT_ID_ONLINE: int
doc: Document = my_project.get_document_by_id(DOCUMENT_ID_ONLINE)

# Get the Annotations in a Document
doc.annotations()

# Filter Annotations by Label
MY_OWN_LABEL_NAME: str
label = my_project.get_label_by_name(MY_OWN_LABEL_NAME)
doc.annotations(label=label)

# Or get all Annotations that belong to one Category
YOUR_CATEGORY_ID: int
category = my_project.get_category_by_id(YOUR_CATEGORY_ID)
label.annotations(categories=[category])

# Force a Project update. To save time Documents will only be updated if they have changed.
my_project.get(update=True)

Metadata

Release files for konfuzio-sdk 0.2.21.dev20230612093257

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

Source distribution (sdist)

Source distribution for konfuzio-sdk 0.2.21.dev20230612093257
File Size Uploaded Provenance Actions
konfuzio_sdk-0.2.21.dev20230612093257.tar.gz 140.2 kB Without provenance Details for konfuzio_sdk-0.2.21.dev20230612093257.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for konfuzio-sdk 0.2.21.dev20230612093257
File Interpreter ABI Platform Actions
konfuzio_sdk-0.2.21.dev20230612093257-py3-none-any.whl Python 3 none any Details for konfuzio_sdk-0.2.21.dev20230612093257-py3-none-any.whl

Total release size: 286.3 kB

Release files / konfuzio_sdk-0.2.21.dev20230612093257.tar.gz

Download URL konfuzio_sdk-0.2.21.dev20230612093257.tar.gz
Size 140.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2a476f596c721b5e66a9655fec45d8a802e2c78a3221999ea22d3ff11fd53d48
BLAKE2b-256 checksum
How to use checksums
9323d5ae739cbc5652542c19e76f74f1641154f4aeb594b74d533720be9a45fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / konfuzio_sdk-0.2.21.dev20230612093257-py3-none-any.whl

Download URL konfuzio_sdk-0.2.21.dev20230612093257-py3-none-any.whl
Size 146.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20080de845712a89e60d22244d218d1e3a345e54da92ffc95b15b256de7c7465
BLAKE2b-256 checksum
How to use checksums
1c46b6d13195266d3659abf83af68f1a520ef4255912502d5143da65bf6a109e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for konfuzio-sdk 0.2.21.dev20230612093257

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.

Release history Release notifications | RSS feed

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