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


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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mindee-2.5.1-py3-none-any.whl (45.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mindee-2.5.1.tar.gz
Algorithm Hash digest
SHA256 987187fcc09b4f7e7028cf21648b3a3444d279f3c581f80907d69bd5a161d640
MD5 4f91a5fae9808484158aafe80065bf57
BLAKE2b-256 2ece16a39801af591db0106d934fc2194723587ddda4eee2c7c8b3782ebb1876

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindee-2.5.1-py3-none-any.whl
  • Upload date:
  • Size: 45.0 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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2200548ade66263e3042ad52afb8844ff3064a37927045373c7b4d05d77232b4
MD5 010b5fe60641d7a7abb20c472a1458c0
BLAKE2b-256 7fca9c892d1fb028e5a3607ce13df8a151dc0d76f8559ce7d2608404400fcb49

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page