mmar-mapi 1.0.20__py3-none-any.whl → 1.0.21__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mmar-mapi might be problematic. Click here for more details.
- mmar_mapi/api.py +7 -1
- {mmar_mapi-1.0.20.dist-info → mmar_mapi-1.0.21.dist-info}/METADATA +1 -1
- {mmar_mapi-1.0.20.dist-info → mmar_mapi-1.0.21.dist-info}/RECORD +5 -5
- {mmar_mapi-1.0.20.dist-info → mmar_mapi-1.0.21.dist-info}/WHEEL +0 -0
- {mmar_mapi-1.0.20.dist-info → mmar_mapi-1.0.21.dist-info}/licenses/LICENSE +0 -0
mmar_mapi/api.py
CHANGED
|
@@ -71,7 +71,13 @@ class TextExtractorAPI:
|
|
|
71
71
|
raise NotImplementedError
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
def _validate_page_range(v: tuple[int, int]) -> tuple[int, int]:
|
|
75
|
+
if v[0] < 1 or v[1] < v[0]:
|
|
76
|
+
raise ValueError("Invalid page range: start must be ≥ 1 and end must be ≥ start.")
|
|
77
|
+
return v
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
PageRange = Annotated[tuple[int, int], AfterValidator(_validate_page_range)]
|
|
75
81
|
ForceOCR = StrEnum("ForceOCR", ["ENABLED", "DISABLED", "AUTO"])
|
|
76
82
|
OutputType = StrEnum("OutputType", ["RAW", "PLAIN", "MARKDOWN"])
|
|
77
83
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
mmar_mapi/__init__.py,sha256=9Q5xsrj26uUnn7ZWvvJUvdVIuzC2oCIeNB4dEoqjF-o,1256
|
|
2
|
-
mmar_mapi/api.py,sha256=
|
|
2
|
+
mmar_mapi/api.py,sha256=8e_C3sfzX67bLDhgFJlUovIlhYN1Lw9ip5qCRpCCVVM,4869
|
|
3
3
|
mmar_mapi/decorators_maybe_lru_cache.py,sha256=eO2I6t1fHLUNRABClK1c8EZzHAmCeSK6O-hbJGb2c9E,444
|
|
4
4
|
mmar_mapi/file_storage.py,sha256=xJU59HmXFsfc53XALdx53IwyqV_k4218AzzXq1Q65Js,5052
|
|
5
5
|
mmar_mapi/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -13,7 +13,7 @@ mmar_mapi/type_union.py,sha256=diwmzcnbqkpGFckPHNw9o8zyQ955mOGNvhTlcBJ0RMI,1905
|
|
|
13
13
|
mmar_mapi/utils.py,sha256=FlW9n-84xz2zSHsahHzJ3Y4Wu5mjpFer6t9z6PF6lS0,488
|
|
14
14
|
mmar_mapi/utils_import.py,sha256=pUyMFd8SItTxBKI-GO9JhRmy43jG_OQlUPr8QCBOSwg,1682
|
|
15
15
|
mmar_mapi/xml_parser.py,sha256=VvLIX_XCZao9i0qqpTVx8nx0vbFXSe8pEbdJdXnj97g,568
|
|
16
|
-
mmar_mapi-1.0.
|
|
17
|
-
mmar_mapi-1.0.
|
|
18
|
-
mmar_mapi-1.0.
|
|
19
|
-
mmar_mapi-1.0.
|
|
16
|
+
mmar_mapi-1.0.21.dist-info/licenses/LICENSE,sha256=2A90w8WjhOgQXnFuUijKJYazaqZ4_NTokYb9Po4y-9k,1061
|
|
17
|
+
mmar_mapi-1.0.21.dist-info/WHEEL,sha256=-neZj6nU9KAMg2CnCY6T3w8J53nx1kFGw_9HfoSzM60,79
|
|
18
|
+
mmar_mapi-1.0.21.dist-info/METADATA,sha256=EFNEhMdQS1WL5gCxZFSqaqBGdQQRriWcWh9aPFkCm2k,944
|
|
19
|
+
mmar_mapi-1.0.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|