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
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ab71b0bc75cddd55736a43a72aafddb9c17ff69998c9cbe5dc980b01f3229ea |
|
MD5 | e09ee1b735f554b298eab3b7b4452c9b |
|
BLAKE2b-256 | 53c6d58f4894bf574063ba7541ba8c6bb6a7599d9143cfbe3c350bea4ea4bda5 |
File details
Details for the file document_insighter-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: document_insighter-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74de4bc95de1a2d4dfa1548fd37de2890d265cc9172f14d97accc1dad128c5d9 |
|
MD5 | 13abb42cac80a53de9834f70c8c711d2 |
|
BLAKE2b-256 | 3287d2b461cd838898a47417771d72246e2aa2ab4dd646383387951807842a03 |