Skip to main content

Document Insighter Python Client

Project description

Document Insighter Python Client

document-insighter is a set of tools that enables developers to interactive with Document Insighter API, like query extraction results.

Installation

pip install document-insighter

Getting Started

Configure ENV variables

# Client application credentials
INSIGHTER_CLIENT_IDP=xxxx
INSIGHTER_CLIENT_ID=xxxx
INSIGHTER_CLIENT_SECRET=xxxx

# Client access token file path
INSIGHTER_CLIENT_TOKEN_PATH=insighter_token.json

Fetch Token

from document_insighter.api_client import DocumentInsighter
from document_insighter.model import Env

# Change to Env.PRODUCTION for production
document_insighter = DocumentInsighter(Env.STAGING)
document_insighter.fetch_token()

Query Extractions

from datetime import datetime

pages_generator = document_insighter.query_extractions_pages(datetime(2022, 4, 13), datetime(2022, 5, 17), page_size=50)
pages = [x for x in pages_generator]

License

MIT

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

document-insighter-0.0.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

document_insighter-0.0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file document-insighter-0.0.2.tar.gz.

File metadata

  • Download URL: document-insighter-0.0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for document-insighter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8ab71b0bc75cddd55736a43a72aafddb9c17ff69998c9cbe5dc980b01f3229ea
MD5 e09ee1b735f554b298eab3b7b4452c9b
BLAKE2b-256 53c6d58f4894bf574063ba7541ba8c6bb6a7599d9143cfbe3c350bea4ea4bda5

See more details on using hashes here.

File details

Details for the file document_insighter-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for document_insighter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 74de4bc95de1a2d4dfa1548fd37de2890d265cc9172f14d97accc1dad128c5d9
MD5 13abb42cac80a53de9834f70c8c711d2
BLAKE2b-256 3287d2b461cd838898a47417771d72246e2aa2ab4dd646383387951807842a03

See more details on using hashes here.

Supported by

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