Skip to content

Commit b1f43ed

Browse files
committed
📝 update docs
1 parent 45690f6 commit b1f43ed

34 files changed

+384
-238
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Mindee Python API Library Changelog
22

3-
## v3.0.0 (2022-10-31)
3+
## v3.0.0 (2022-11-07)
44
### ¡Breaking Changes!
55
* :sparkles: New PDF cut/merge system, allowing specifying exactly which pages to use.
66
* :recycle: PDF documents are no longer cut by default, use the `page_options` parameter in the `parse` method.

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mindee_client = Client(api_key="my-api-key")
2323

2424
# Load a file from disk
2525
input_doc = mindee_client.doc_from_path("/path/to/the/invoice.pdf")
26-
# Parse the document as an invoice by passing the documents.Invoice type
26+
# Parse the document as an invoice by passing the appropriate type
2727
api_response = input_doc.parse(documents.TypeInvoiceV3)
2828

2929
# Print a brief summary of the parsed data
@@ -39,7 +39,7 @@ mindee_client = Client(api_key="my-api-key")
3939

4040
# Load a file from disk
4141
input_doc = mindee_client.doc_from_path("/path/to/the/check.jpg")
42-
# Parse the document as a USA bank check by passing the documents.us.TypeBankCheckV1 type
42+
# Parse the document as a USA bank check by passing the appropriate type
4343
api_response = input_doc.parse(documents.us.TypeBankCheckV1)
4444

4545
# Print a brief summary of the parsed data
@@ -72,7 +72,10 @@ There's more to it than that for those that need more features, or want to
7272
customize the experience.
7373

7474
All the juicy details are described in the
75-
**[Official Documentation](https://developers.mindee.com/docs/python-sdk)**.
75+
**[Official Guide](https://developers.mindee.com/docs/python-sdk)**.
76+
77+
You can also take a look at the
78+
**[Reference Documentation](https://mindee.github.io/mindee-api-python/)**.
7679

7780
## License
7881
Copyright © Mindee

docs/client.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ Client
1111

1212
DocumentClient
1313
--------------
14+
.. autoclass:: mindee.input.page_options.PageOptions
15+
:members:
16+
1417
.. autoclass:: mindee.client.DocumentClient
1518
:members:
1619

17-
DocumentResponse
18-
----------------
19-
.. autoclass:: mindee.response.DocumentResponse
20+
PredictResponse
21+
---------------
22+
.. autoclass:: mindee.response.PredictResponse
2023
:members:

docs/conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
# ones.
3030
extensions = [
3131
"sphinx.ext.autodoc",
32+
"sphinx_autodoc_typehints",
3233
]
3334

3435
# Add any paths that contain templates here, relative to this directory.
@@ -56,4 +57,13 @@
5657
html_static_path = ["_static"]
5758

5859

60+
# -- autodoc -----------------------------------------------------------------
61+
5962
autodoc_member_order = "groupwise"
63+
autodoc_class_signature = "separated"
64+
autodoc_typehints = "description"
65+
autodoc_default_options = {"undoc-members": True, "exclude-members": "__init__"}
66+
67+
# -- autodoc-typehints -------------------------------------------------------
68+
69+
typehints_defaults = "comma"

docs/documents.rst

Lines changed: 0 additions & 48 deletions
This file was deleted.

docs/field_types.rst

Lines changed: 0 additions & 60 deletions
This file was deleted.

docs/geometry.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
----------------
2+
Geometry Helpers
3+
----------------
4+
5+
.. automodule:: mindee.geometry
6+
:members:
7+
:undoc-members:

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ https://developers.mindee.com/docs/python-sdk
1414
:caption: Contents:
1515

1616
client
17-
field_types
18-
documents
17+
products/index
18+
geometry

docs/products/custom.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Custom Documents
2+
================
3+
.. autoclass:: mindee.documents.CustomV1
4+
:members:

docs/products/field_types.rst

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
------
2+
Fields
3+
------
4+
5+
Off the Shelf Documents
6+
=======================
7+
8+
Base Field
9+
----------
10+
.. autoclass:: mindee.fields.base.BaseField
11+
:members:
12+
:inherited-members:
13+
14+
Text Field
15+
----------
16+
.. autoclass:: mindee.fields.text.TextField
17+
:members:
18+
:inherited-members:
19+
20+
Typed Field
21+
-----------
22+
.. autoclass:: mindee.fields.typed.TypedField
23+
:members:
24+
:inherited-members:
25+
26+
Amount Field
27+
------------
28+
.. autoclass:: mindee.fields.amount.AmountField
29+
:members:
30+
:inherited-members:
31+
32+
Date Field
33+
----------
34+
.. autoclass:: mindee.fields.date.DateField
35+
:members:
36+
:inherited-members:
37+
38+
Tax Field
39+
---------
40+
.. autoclass:: mindee.fields.tax.TaxField
41+
:members:
42+
:inherited-members:
43+
44+
Locale Field
45+
------------
46+
.. autoclass:: mindee.fields.locale.LocaleField
47+
:members:
48+
:inherited-members:
49+
50+
Orientation
51+
-----------
52+
.. autoclass:: mindee.fields.orientation.Orientation
53+
:members:
54+
:inherited-members:
55+
56+
Payment Details
57+
---------------
58+
.. autoclass:: mindee.fields.payment_details.PaymentDetails
59+
:members:
60+
:inherited-members:
61+
62+
Position
63+
--------
64+
.. autoclass:: mindee.fields.position.Position
65+
:members:
66+
:inherited-members:
67+
68+
Custom Documents
69+
================
70+
71+
Value List
72+
----------
73+
.. autoclass:: mindee.fields.api_builder.ListField
74+
:members:
75+
:inherited-members:
76+
77+
Word Value
78+
----------
79+
.. autoclass:: mindee.fields.api_builder.ListFieldValue
80+
:members:
81+
:inherited-members:
82+
83+
Classification
84+
--------------
85+
.. autoclass:: mindee.fields.api_builder.ClassificationField
86+
:members:
87+
:inherited-members:

0 commit comments

Comments
 (0)