Skip to content

Commit

Permalink
update all products, client lib outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianMindee committed Oct 10, 2023
1 parent 25b0e61 commit 5d95880
Show file tree
Hide file tree
Showing 105 changed files with 3,808 additions and 37 deletions.
18 changes: 18 additions & 0 deletions docs/extras/code_samples/bank_account_details_v1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.fr.BankAccountDetailsV1, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/bank_account_details_v2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.fr.BankAccountDetailsV2, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/bank_check_v1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.us.BankCheckV1, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/barcode_reader_v1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.BarcodeReaderV1, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/expense_receipts_v5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.ReceiptV5, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/financial_document_v1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.FinancialDocumentV1, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/idcard_fr_v1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.fr.IdCardV1, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/idcard_fr_v2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.fr.IdCardV2, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/invoices_v4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.InvoiceV4, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/license_plates_v1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.eu.LicensePlateV1, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/multi_receipts_detector_v1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.MultiReceiptsDetectorV1, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/passport_v1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.PassportV1, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/proof_of_address_v1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.ProofOfAddressV1, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/us_driver_license_v1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.us.DriverLicenseV1, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
18 changes: 18 additions & 0 deletions docs/extras/code_samples/us_w9_v1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from mindee import Client, PredictResponse, product

# Init a new client
mindee_client = Client(api_key="my-api-key")

# Load a file from disk
input_doc = mindee_client.source_from_path("/path/to/the/file.ext")

# Load a file from disk and parse it.
# The endpoint name must be specified since it cannot be determined from the class.
result: PredictResponse = mindee_client.parse(product.us.W9V1, input_doc)

# Print a brief summary of the parsed data
print(result.document)

# # Iterate over all the fields in the document
# for field_name, field_values in result.document.inference.prediction.fields.items():
# print(field_name, "=", field_values)
10 changes: 10 additions & 0 deletions docs/predictions/standard/product/barcode_reader_v1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Barcode Reader V1
-----------------

**Sample Code:**

.. literalinclude:: /extras/code_samples/barcode_reader_v1.txt
:language: Python

.. autoclass:: mindee.product.BarcodeReaderV1
:members:
10 changes: 10 additions & 0 deletions docs/predictions/standard/product/eu/license_plate_v1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
License Plate V1
----------------

**Sample Code:**

.. literalinclude:: /extras/code_samples/license_plates_v1.txt
:language: Python

.. autoclass:: mindee.product.eu.LicensePlateV1
:members:
13 changes: 13 additions & 0 deletions docs/predictions/standard/product/financial_document_v1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Financial Document V1
---------------------

**Sample Code:**

.. literalinclude:: /extras/code_samples/financial_document_v1.txt
:language: Python

.. autoclass:: mindee.product.FinancialDocumentV1
:members:

.. autoclass:: mindee.product.FinancialDocumentV1LineItem
:members:
10 changes: 10 additions & 0 deletions docs/predictions/standard/product/fr/bank_account_details_v1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Bank Account Details V1
-----------------------

**Sample Code:**

.. literalinclude:: /extras/code_samples/bank_account_details_v1.txt
:language: Python

.. autoclass:: mindee.product.fr.BankAccountDetailsV1
:members:
13 changes: 13 additions & 0 deletions docs/predictions/standard/product/fr/bank_account_details_v2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Bank Account Details V2
-----------------------

**Sample Code:**

.. literalinclude:: /extras/code_samples/bank_account_details_v2.txt
:language: Python

.. autoclass:: mindee.product.fr.BankAccountDetailsV2
:members:

.. autoclass:: mindee.product.fr.BankAccountDetailsV2Bban
:members:
10 changes: 10 additions & 0 deletions docs/predictions/standard/product/fr/carte_vitale_v1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Carte Vitale V1
---------------

**Sample Code:**

.. literalinclude:: /extras/code_samples/carte_vitale_v1.txt
:language: Python

.. autoclass:: mindee.product.fr.CarteVitaleV1
:members:
10 changes: 10 additions & 0 deletions docs/predictions/standard/product/fr/id_card_v1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Carte Nationale d'Identité V1
-----------------------------

**Sample Code:**

.. literalinclude:: /extras/code_samples/idcard_fr_v1.txt
:language: Python

.. autoclass:: mindee.product.fr.IdCardV1
:members:
10 changes: 10 additions & 0 deletions docs/predictions/standard/product/fr/id_card_v2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Carte Nationale d'Identité V2
-----------------------------

**Sample Code:**

.. literalinclude:: /extras/code_samples/idcard_fr_v2.txt
:language: Python

.. autoclass:: mindee.product.fr.IdCardV2
:members:
13 changes: 13 additions & 0 deletions docs/predictions/standard/product/invoice_v4.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Invoice V4
----------

**Sample Code:**

.. literalinclude:: /extras/code_samples/invoices_v4.txt
:language: Python

.. autoclass:: mindee.product.InvoiceV4
:members:

.. autoclass:: mindee.product.InvoiceV4LineItem
:members:
Loading

0 comments on commit 5d95880

Please sign in to comment.