Skip to main content

Python client for Docsumo

Project description

Welcome to Docsumo python client documentation!

Documentation Status

For detail:

Install

pip3 install docsumo

Set API KEY from docsumo setting page as env variable DOCSUMO_API_KEY or pass apikey parameter in Docsumo class.

APIKeY

export DOCSUMO_API_KEY="test" >>  ~/.bashrc
source ~/.bashrc

Example

from docsumo import Docsumo

doc = Docsumo()
# OR
# doc = Docsumo(apikey="fghhGh56HHJ...")

# available method
doc.user_detail_credit_limit()
doc.documents_list()
doc.documents_summary()
doc.upload_file(
        "./data/invoice.pdf",
        "invoice",
    )
)
doc.extracted_data("c511ba245484442fb")

Output:

# To get the user detail & credit limit.
print(doc.user_detail_credit_limit())

{'error': '',
 'error_code': '',
 'message': '',
 'status': 'success',
 'status_code': 200,
 'data': {'email': 'tester@docsumo.com',
          'full_name': 'Docsumo Tester',
          'monthly_doc_current': 75,
          'monthly_doc_limit': 300,
          'user_id': '5cb45f1f5a841101f703770a'}}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for docsumo, version 0.5.6
Filename, size File type Python version Upload date Hashes
Filename, size docsumo-0.5.6-py3-none-any.whl (7.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size docsumo-0.5.6.tar.gz (5.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page