Skip to main content

Mindee API helper library for Python

Project description

Mindee API Helper Library for Python

Quickly and easily connect to Mindee's API services using 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

Available as open source under the terms of 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.4.0.tar.gz (30.4 kB view details)

Uploaded Source

Built Distribution

mindee-2.4.0-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mindee-2.4.0.tar.gz
  • Upload date:
  • Size: 30.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for mindee-2.4.0.tar.gz
Algorithm Hash digest
SHA256 2ee4fb4cba70c0c96b057ea6f37096bccdfd41563498d3e12324c31825b2e529
MD5 32d8a6530e88a666e4acffe7183264e4
BLAKE2b-256 118d69e29dcc1c6badae40ee47c2a722e282b73e70a5ceca30156daf1aed6b99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindee-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 41.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for mindee-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2937b6c6b24bf2c598363f6f66efbd86e4f87d88fa7acaa745826d92db4d9891
MD5 b228ea94e0bb46a6fb20fbd5a7d61d6c
BLAKE2b-256 ecf61d099983d0659a1f388f6c2adfad6e0f4cbdd0ee57c9bec6b5863197c583

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