Skip to main content

Official Python SDK for the Qari document intelligence API

Project description

Qari Python SDK

Official Python SDK for the Qari document intelligence API.

Installation

pip install qari

Quick Start

from qari import Qari

client = Qari(api_key="qari_your_api_key", base_url="https://api.qari.voltstack.tech")

# Upload & OCR a document
doc = client.documents.upload("invoice.pdf")
ocr = client.ocr.run_existing(doc.document_id)

# Chat with the document
answer = client.chat.ask(doc.document_id, "What is the total amount?")
print(answer.reply)

# Summarize
summary = client.summarization.summarize(doc.document_id, summary_type="executive_brief")
print(summary.content)

Authentication

All requests are authenticated via API keys. Generate one from the Qari dashboard or via the API Keys endpoint.

Available Modules

Module Description
client.documents Upload, list, delete documents
client.ocr Run OCR pipelines & retrieve outputs
client.history Browse past OCR results
client.chat Ask questions about documents
client.summarization Generate & export summaries
client.billing Plans, subscriptions, credits
client.team Team members & invitations
client.ingestion Import from URL, email, S3, GDrive, SharePoint
client.dashboard Notifications, balance, usage stats
client.api_keys Manage API keys
client.payments Payment transactions & status

Async Support

import asyncio
from qari import AsyncQari

async def main():
    client = AsyncQari(api_key="qari_...", base_url="https://api.qari.voltstack.tech")
    docs = await client.documents.list()
    await client.close()

asyncio.run(main())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qari_sdk-0.2.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qari_sdk-0.2.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file qari_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: qari_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for qari_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 980f62fbecbfb5b93c4b8c2ec3d8931f1e03f3af25e32b8fa782c788f52ca297
MD5 32e3aa9e6affef2b14479120579d514b
BLAKE2b-256 8a75d99491ba226a8a6f92d19db5393988b20f2f3134fbb193c58017d40d0d48

See more details on using hashes here.

File details

Details for the file qari_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: qari_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for qari_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 558bddab077372df7cd939198ca262dc1f99e87d6e747fb66d4ae2c8c520a38d
MD5 6a10cbcb872250a4fd4ccb5c52d41a89
BLAKE2b-256 5c248dac232499e086022c4bd3b3d9b5335aa8f90350c4f3d08d88ba46aac957

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page