Skip to content

Commit 9b5d3dc

Browse files
committed
📝 add sample code for carte vitale v1
1 parent 1e97aab commit 9b5d3dc

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ repos:
3838
hooks:
3939
- id: mypy
4040
args: []
41-
exclude: "tests/|examples/"
41+
exclude: "tests/|examples/|docs/"
4242
additional_dependencies:
4343
- toml
4444
- pikepdf
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from mindee import Client, documents
2+
3+
# Init a new client
4+
mindee_client = Client(api_key="my-api-key")
5+
6+
# Load a file from disk
7+
input_doc = mindee_client.doc_from_path("/path/to/the/file.ext")
8+
9+
# Parse the Carte Vitale by passing the appropriate type
10+
result = input_doc.parse(documents.fr.TypeCarteVitaleV1)
11+
12+
# Print a brief summary of the parsed data
13+
print(result.document)

0 commit comments

Comments
 (0)