Skip to main content

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


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.1.1.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

mindee-2.1.1-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file mindee-2.1.1.tar.gz.

File metadata

  • Download URL: mindee-2.1.1.tar.gz
  • Upload date:
  • Size: 28.1 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

Hashes for mindee-2.1.1.tar.gz
Algorithm Hash digest
SHA256 b5705aaeb1221a48ba1363161f022901807101e6ed7a9c443b9c6bd01dc29646
MD5 1b3003315bbe158f583d6638b50db88d
BLAKE2b-256 0949a418ef23f6eda5ae3cec0ccc3279b8d2bc4809b77c9838fd241757ecc3e5

See more details on using hashes here.

File details

Details for the file mindee-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: mindee-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 44.4 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

Hashes for mindee-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 72f3538a16af90b7ff93691c7d028de67cf1534968fdc42150f114345ce03c78
MD5 91e9b6527633f32e6c7b2f467b8594ea
BLAKE2b-256 a1ec59f52386f6c9d28b355828bd316c6ebdae0b419522d0a688c2084040d35d

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