Python SDK for GdoczAI — OCR, extract, and segment documents
Project description
gdoczai
Official Python SDK for GdoczAI — OCR, extract fields, and segment documents with ease.
Installation
pip install gdocz_sdk
Quick Start
from gdocz_sdk import GdoczaiClient
client = GdoczaiClient(api_key="your-api-key")
# Convert PDF to Markdown
result = client.convert("document.pdf")
print(result.markdown)
# Extract fields
from gdocz_sdk import ExtractOptions
result = client.extract("document.pdf", ExtractOptions(fields=["name", "date"]))
print(result.extracted_data)
# Segment document
result = client.segment("document.pdf")
print(result.segments)
API Key
Set your API key as an environment variable:
export GDOCZAI_API_KEY="your-api-key"
Or pass it directly to the client.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gdoczai-0.1.0.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gdoczai-0.1.0.tar.gz.
File metadata
- Download URL: gdoczai-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a66a514ddc91ec5d8e2ea7afeda55dbf2fe45a1e8de26c758877f6b4a263ccaf
|
|
| MD5 |
fd1eb90c7c310e6a7809b48ee1cbf200
|
|
| BLAKE2b-256 |
15dcb1225766cb34edabeecd71f44bc82686bdc52c709d555d885584b4201e11
|
File details
Details for the file gdoczai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gdoczai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
875404a4cd0d6333ee73054c98f993727397bb81bc108a0469505d4a2b3e1f8f
|
|
| MD5 |
51c97108a04b2487ff4c752568006fa2
|
|
| BLAKE2b-256 |
9c74956e621138bff4b4bd1fd26c74aa691e4c463361f5be00ec0e6d89f68979
|