Skip to content

Commit 1664554

Browse files
committed
📝 update all code samples
1 parent 9a1607a commit 1664554

15 files changed

+47
-32
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from mindee import Client, documents
1+
from mindee import Client
2+
from mindee.documents.fr import TypeBankAccountDetailsV1
23

34
# Init a new client
45
mindee_client = Client(api_key="my-api-key")
@@ -7,7 +8,7 @@ mindee_client = Client(api_key="my-api-key")
78
input_doc = mindee_client.doc_from_path("/path/to/the/file.ext")
89

910
# Parse the Bank Account Details by passing the appropriate type
10-
result = input_doc.parse(documents.fr.TypeBankAccountDetailsV1)
11+
result = input_doc.parse(TypeBankAccountDetailsV1)
1112

1213
# Print a brief summary of the parsed data
1314
print(result.document)
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from mindee import Client, documents
1+
from mindee import Client
2+
from mindee.documents.fr import TypeBankAccountDetailsV2
23

34
# Init a new client
45
mindee_client = Client(api_key="my-api-key")
@@ -7,7 +8,7 @@ mindee_client = Client(api_key="my-api-key")
78
input_doc = mindee_client.doc_from_path("/path/to/the/file.ext")
89

910
# Parse the Bank Account Details by passing the appropriate type
10-
result = input_doc.parse(documents.fr.TypeBankAccountDetailsV2)
11+
result = input_doc.parse(TypeBankAccountDetailsV2)
1112

1213
# Print a brief summary of the parsed data
1314
print(result.document)
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from mindee import Client, documents
1+
from mindee import Client
2+
from mindee.documents.us import TypeBankCheckV1
23

34
# Init a new client
45
mindee_client = Client(api_key="my-api-key")
@@ -7,7 +8,7 @@ mindee_client = Client(api_key="my-api-key")
78
input_doc = mindee_client.doc_from_path("/path/to/the/file.ext")
89

910
# Parse the Bank Check by passing the appropriate type
10-
result = input_doc.parse(documents.us.TypeBankCheckV1)
11+
result = input_doc.parse(TypeBankCheckV1)
1112

1213
# Print a brief summary of the parsed data
1314
print(result.document)
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from mindee import Client, documents
1+
from mindee import Client
2+
from mindee.documents import TypeBarcodeReaderV1
23

34
# Init a new client
45
mindee_client = Client(api_key="my-api-key")
@@ -7,7 +8,7 @@ mindee_client = Client(api_key="my-api-key")
78
input_doc = mindee_client.doc_from_path("/path/to/the/file.ext")
89

910
# Parse the Barcode Reader by passing the appropriate type
10-
result = input_doc.parse(documents.TypeBarcodeReaderV1)
11+
result = input_doc.parse(TypeBarcodeReaderV1)
1112

1213
# Print a brief summary of the parsed data
1314
print(result.document)
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from mindee import Client, documents
1+
from mindee import Client
2+
from mindee.documents.fr import TypeCarteVitaleV1
23

34
# Init a new client
45
mindee_client = Client(api_key="my-api-key")
@@ -7,7 +8,7 @@ mindee_client = Client(api_key="my-api-key")
78
input_doc = mindee_client.doc_from_path("/path/to/the/file.ext")
89

910
# Parse the Carte Vitale by passing the appropriate type
10-
result = input_doc.parse(documents.fr.TypeCarteVitaleV1)
11+
result = input_doc.parse(TypeCarteVitaleV1)
1112

1213
# Print a brief summary of the parsed data
1314
print(result.document)
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from mindee import Client, documents
1+
from mindee import Client
2+
from mindee.documents import TypeCropperV1
23

34
# Init a new client
45
mindee_client = Client(api_key="my-api-key")
@@ -7,7 +8,7 @@ mindee_client = Client(api_key="my-api-key")
78
input_doc = mindee_client.doc_from_path("/path/to/the/file.ext")
89

910
# Parse the Cropper by passing the appropriate type
10-
result = input_doc.parse(documents.TypeCropperV1)
11+
result = input_doc.parse(TypeCropperV1)
1112

1213
# Print a brief summary of the parsed data
1314
print(result.document)
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from mindee import Client, documents
1+
from mindee import Client
2+
from mindee.documents import TypeReceiptV5
23

34
# Init a new client
45
mindee_client = Client(api_key="my-api-key")
@@ -7,7 +8,7 @@ mindee_client = Client(api_key="my-api-key")
78
input_doc = mindee_client.doc_from_path("/path/to/the/file.ext")
89

910
# Parse the Receipt by passing the appropriate type
10-
result = input_doc.parse(documents.TypeReceiptV5)
11+
result = input_doc.parse(TypeReceiptV5)
1112

1213
# Print a brief summary of the parsed data
1314
print(result.document)
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from mindee import Client, documents
1+
from mindee import Client
2+
from mindee.documents import TypeFinancialDocumentV1
23

34
# Init a new client
45
mindee_client = Client(api_key="my-api-key")
@@ -7,7 +8,7 @@ mindee_client = Client(api_key="my-api-key")
78
input_doc = mindee_client.doc_from_path("/path/to/the/file.ext")
89

910
# Parse the Financial Document by passing the appropriate type
10-
result = input_doc.parse(documents.TypeFinancialDocumentV1)
11+
result = input_doc.parse(TypeFinancialDocumentV1)
1112

1213
# Print a brief summary of the parsed data
1314
print(result.document)
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from mindee import Client, documents
1+
from mindee import Client
2+
from mindee.documents.fr import TypeIdCardV1
23

34
# Init a new client
45
mindee_client = Client(api_key="my-api-key")
@@ -7,7 +8,7 @@ mindee_client = Client(api_key="my-api-key")
78
input_doc = mindee_client.doc_from_path("/path/to/the/file.ext")
89

910
# Parse the Carte Nationale d'Identité by passing the appropriate type
10-
result = input_doc.parse(documents.fr.TypeIdCardV1)
11+
result = input_doc.parse(TypeIdCardV1)
1112

1213
# Print a brief summary of the parsed data
1314
print(result.document)
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from mindee import Client, documents
1+
from mindee import Client
2+
from mindee.documents.fr import TypeIdCardV2
23

34
# Init a new client
45
mindee_client = Client(api_key="my-api-key")
@@ -7,7 +8,7 @@ mindee_client = Client(api_key="my-api-key")
78
input_doc = mindee_client.doc_from_path("/path/to/the/file.ext")
89

910
# Parse the Carte Nationale d'Identité by passing the appropriate type
10-
result = input_doc.parse(documents.fr.TypeIdCardV2)
11+
result = input_doc.parse(TypeIdCardV2)
1112

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

0 commit comments

Comments
 (0)