Python client for Docsumo
Project description
Welcome to Docsumo python client documentation!
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.
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size docsumo-0.5.8-py3-none-any.whl (8.1 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size docsumo-0.5.8.tar.gz (7.0 kB) | File type Source | Python version None | Upload date | Hashes View |