Mindee API helper library for Python
Project description
Mindee API Helper Library for Python
Quick Start
Here's the TL;DR of getting started.
First, get an API Key
Then, install this library:
pip install mindee
Finally, Python away!
Off-the-Shelf Document
from mindee import Client
# Init a new client and configure the Invoice API
mindee_client = Client().config_invoice("my-invoice-api-key")
# Load a file from disk and parse it
api_response = mindee_client.doc_from_path("/path/to/the/invoice.pdf").parse("invoice")
# Print a brief summary of the parsed data
print(api_response.invoice)
Custom Document (API Builder)
from mindee import Client
# Init a new client and configure your custom document
mindee_client = Client().config_custom_doc(
document_type="pokemon-card",
singular_name="card",
plural_name="cards",
account_name="pikachu",
api_key="pokemon-card-api-key"
)
# Load a file from disk and parse it
api_response = mindee_client.doc_from_path("/path/to/the/card.jpg").parse("pokemon-card")
# Print a brief summary of the parsed data
print(api_response.card)
Further Reading
There's more to it than that for those that need more features, or want to customize the experience.
All the juicy details are described in the Official Documentation.
License
Copyright © Mindee
Distributed under the MIT License.
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
mindee-2.0.2.tar.gz
(82.2 kB
view details)
Built Distribution
mindee-2.0.2-py3-none-any.whl
(97.3 kB
view details)
File details
Details for the file mindee-2.0.2.tar.gz
.
File metadata
- Download URL: mindee-2.0.2.tar.gz
- Upload date:
- Size: 82.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4250e22f1e8b1175ded727998b84da36f4eb6be8a2c5e556449b4ff5dc29d0e9 |
|
MD5 | 85fb684997a149c0dcfaac2106303ca4 |
|
BLAKE2b-256 | 2db7acad6567e6f1b502a6beeaf1ab53ccff8fe3bd433575f78365c321dac373 |
File details
Details for the file mindee-2.0.2-py3-none-any.whl
.
File metadata
- Download URL: mindee-2.0.2-py3-none-any.whl
- Upload date:
- Size: 97.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 934210634e586cd773f9900babe79d08a939a6b769e98b90d421c967d04a6c99 |
|
MD5 | 833954ae413ff4bcfb66cd291c7a8632 |
|
BLAKE2b-256 | c7ca7851918d959777ffb044eb1fc5d73b9c54e667d89477f5712eec7e727579 |