Skip to main content

Document AI API

Project description

cloudmersive_documentai_api_client

Use next-generation AI to extract data, fields, insights and text from documents. Instantly.

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

  • API version: v1
  • Package version: 3.0.3
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

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.DocumentPolicyRequest() # DocumentPolicyRequest | Input request, including document and policy rules (optional)

try:
    # Enforce Policies to a Document to allow or block it using Advanced AI
    api_response = api_instance.apply_rules(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalyzeApi->apply_rules: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://localhost

Class Method HTTP request Description
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_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

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.0.3.tar.gz (36.7 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for cloudmersive_documentai_api_client-3.0.3.tar.gz
Algorithm Hash digest
SHA256 adf2f945750193810191347d408d19e35a8af2456f811e490da57b7b49eac4f9
MD5 9a3a8a4488fb3b393c145676b03a606b
BLAKE2b-256 d16f212923f82647f1a79e66ba9b8fe3964a9ac5bc6c9fc4cc6cc6abb36b7887

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