Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Python client to upload file and get extracted data from docsumo API.

License

Notifications You must be signed in to change notification settings

docsumo/docsumo_python_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Deprecation Notice ⚠️

This Package is No Longer Maintained

This package is no longer being maintained. For the most up-to-date information and API documentation, please refer to the official Docsumo API documentation.


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'}}

About

Python client to upload file and get extracted data from docsumo API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published