Skip to main content

Python client for Docsumo

Project description

Welcome to Docsumo python client documentation!

Documentation Status

Check us out at https://www.docsumo.com/
To find out about our web app or to get your API key, check out https://app.docsumo.com/

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.

Source Distribution

docsumo-0.5.9.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

docsumo-0.5.9-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file docsumo-0.5.9.tar.gz.

File metadata

  • Download URL: docsumo-0.5.9.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for docsumo-0.5.9.tar.gz
Algorithm Hash digest
SHA256 21966f225f2fead1e09b337dd4847b292f34427fbace87c4533ccd24e81b7049
MD5 024c4fe9040a43b63e6d8d83c72e2e29
BLAKE2b-256 bf6e65d31ed5508d7f002cf3d9d5cb983bf7be5000fd045cf0953211950380c7

See more details on using hashes here.

File details

Details for the file docsumo-0.5.9-py3-none-any.whl.

File metadata

  • Download URL: docsumo-0.5.9-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for docsumo-0.5.9-py3-none-any.whl
Algorithm Hash digest
SHA256 7a69894c58831781baedb818ec5ba11d9c65f1934f0c63768809df3bed826b6a
MD5 1614049a86a9c3ba9fe48fec76ce4941
BLAKE2b-256 affaa7caa1573a191aa18506a20907ded45c1ac820a1b4bf3611c98b574a9391

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