A Python package to get data from Doccle.
Project description
py-doccle
Retrieve documents from Doccle with an easy to use interface
Example usage
# Import the library
from doccle import doccle
# Create a new connector object. Make sure to safely store and retrieve your credentials (don't hardcode them!)
docs = doccle.Connector('<your-doccle-username>', '<your-doccle-password>')
# Get a list of the 5 latest documents available in your Doccle account that are marked as new
# Arguments are optional. When left empty, all documents will be listed.
docs.get_documents(only_new=True, max_docs=2)
# This will yield the following dictionary (limited to 1 for documentation purposes):
{
'documents': [
{
'sender': '<Name of the sender>',
'name': '<document name in Doccle>',
'publish_date': '<Date that the document has been published in Doccle>',
'document_type': '<Type of document. For example, an invoice',
'file_url': '<File URL>',
'file_name': '<Filename as saved in Doccle>',
'mime_type': '<MIME type, for example application/pdf>',
'payment_info': {
'amount_to_pay': '<Amount to pay as stated on the invoice, if applicable>',
'sender_bic': '<BIC of the sender, if applicable>',
'sender_iban': '<IBAN of the sender, if applicable>',
'payment_reference': '<Payment reference on the invoice, if applicable>',
'payment_status': '<Payment status of the invoice, if applicable>'
}
}
]
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-doccle-0.0.2.tar.gz
(14.4 kB
view details)
File details
Details for the file py-doccle-0.0.2.tar.gz.
File metadata
- Download URL: py-doccle-0.0.2.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52571320e48d3658683d382f773c63ea19f760fb0ba0f20c31daa9d8892853fa
|
|
| MD5 |
1493483b24eef3363e5b842eee88e776
|
|
| BLAKE2b-256 |
1e67227560cb17fe6e6ffdc75ba82eaa7289315f66f94655aef462e7a56be38c
|