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

Uploaded Source

Built Distribution

mindee-2.3.0-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mindee-2.3.0.tar.gz
  • Upload date:
  • Size: 29.4 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.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.7

File hashes

Hashes for mindee-2.3.0.tar.gz
Algorithm Hash digest
SHA256 5b0a41a6c595e7a30cac46c9deaa921897ff28ad18833e15f77bea9e5b06ba4d
MD5 44986113bb8b71b7166fd354aa3c43bc
BLAKE2b-256 f60c1b5144fbf0231a0afc9b6f7157fcef6bb830631efdabd68cb22a0ef84d17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindee-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 45.2 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.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.7

File hashes

Hashes for mindee-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30f293ee17c50da431dd756134035108b53655238b6b91a8f21ce3df22002bbc
MD5 a50fb12c689441f49f61fde739c11de4
BLAKE2b-256 33a35858b0eb803b0c19af5dedfb34c45e63e6d2d33de9847c5e5cf73b225713

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