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.1.0.tar.gz (10.5 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.1.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for qari_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 94d8e2883bade189159e21fd99305a0f1af8d012cf981b952f5706a6f6bb23c6
MD5 a3e0a773380caaf19aa28158e62ebd35
BLAKE2b-256 9e6ebb34864ee09a2d32327f066cab3d1a92c0ab55496258e1d980550fdedd2f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for qari_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f07460c68e29c45945916f87d85ddd0a6ee369f054ce71b176fac1887fdedd44
MD5 57d0dad66101b7ae22c4a9989f25d9df
BLAKE2b-256 5fe565857e68c945d678157ec872619ed1d3178321a8e2b3e9f372c2654f056e

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