Skip to main content

Document AI API

Project description

cloudmersive_documentai_api_client

Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.

This Python package provides a native API client for Cloudmersive Document AI API

  • API version: v1
  • Package version: 3.1.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit https://www.cloudmersive.com

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import cloudmersive_documentai_api_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import cloudmersive_documentai_api_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import cloudmersive_documentai_api_client
from cloudmersive_documentai_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = cloudmersive_documentai_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Apikey'] = 'Bearer'

# create an instance of the API class
api_instance = cloudmersive_documentai_api_client.AnalyzeApi(cloudmersive_documentai_api_client.ApiClient(configuration))
body = cloudmersive_documentai_api_client.DocumentQuestionsRequest() # DocumentQuestionsRequest | Input request, including document and questions (optional)

try:
    # Answer Questions about a Document in a structured way using Advanced AI
    api_response = api_instance.answer_questions(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalyzeApi->answer_questions: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.cloudmersive.com

Class Method HTTP request Description
AnalyzeApi answer_questions POST /document-ai/document/analyze/answer-questions Answer Questions about a Document in a structured way using Advanced AI
AnalyzeApi apply_rules POST /document-ai/document/analyze/enforce-policy Enforce Policies to a Document to allow or block it using Advanced AI
ExtractApi extract_all_fields_and_tables POST /document-ai/document/extract/all Extract All Fields and Tables of Data from a Document using AI
ExtractApi extract_barcodes POST /document-ai/document/extract/barcodes Extract Barcodes of from a Document using AI
ExtractApi extract_classification POST /document-ai/document/extract/classify Extract Classification or Category from a Document using AI
ExtractApi extract_classification_advanced POST /document-ai/document/extract/classify/advanced Extract Classification or Category from a Document using Advanced AI
ExtractApi extract_fields POST /document-ai/document/extract/fields Extract Field Values from a Document using AI
ExtractApi extract_fields_advanced POST /document-ai/document/extract/fields/advanced Extract Field Values from a Document using Advanced AI
ExtractApi extract_split POST /document-ai/document/extract/split Intelligently Split a Combined Document into Sub-Documents using AI
ExtractApi extract_summary POST /document-ai/document/extract/summary Extract Summary from a Document using AI
ExtractApi extract_tables POST /document-ai/document/extract/tables Extract Tables of Data from a Document using AI
ExtractApi extract_text POST /document-ai/document/extract/text Extract Text from a Document using AI
RunBatchJobApi extract_all_fields_and_tables_from_document_batch_job POST /document-ai/document/batch-job/extract/all Extract All Fields and Tables of Data from a Document using AI as a Batch Job
RunBatchJobApi extract_classification_from_document_batch_job POST /document-ai/document/batch-job/extract/classify Extract Classification or Category from a Document using AI as a Batch Job
RunBatchJobApi extract_fields_from_document_advanced_batch_job POST /document-ai/document/batch-job/extract/fields/advanced Extract Field Values from a Document using Advanced AI as a Batch Job
RunBatchJobApi extract_text_from_document_batch_job POST /document-ai/document/batch-job/extract/text Extract Text from a Document using AI as a Batch Job
RunBatchJobApi get_async_job_status GET /document-ai/document/batch-job/batch-job/status Get the status and result of an Extract Document Batch Job

Documentation For Models

Documentation For Authorization

Apikey

  • Type: API key
  • API key parameter name: Apikey
  • Location: HTTP header

Author

support@cloudmersive.com

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

cloudmersive_documentai_api_client-3.1.0.tar.gz (46.7 kB view details)

Uploaded Source

File details

Details for the file cloudmersive_documentai_api_client-3.1.0.tar.gz.

File metadata

File hashes

Hashes for cloudmersive_documentai_api_client-3.1.0.tar.gz
Algorithm Hash digest
SHA256 3d445550de7641be945391bb31ba08c82db726a9cba633ea89405db35f1ecdc5
MD5 a1c0beae29e5f50e6236786bd68e1b97
BLAKE2b-256 15f42f96ad47b642f340d9a72184caec8a7a9a1dded0211073fab2bd80e07821

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