docling-core 1.1.1__py3-none-any.whl → 1.1.2__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 docling-core might be problematic. Click here for more details.

@@ -6,7 +6,7 @@
6
6
  """Define common models across CCS objects."""
7
7
  from typing import Annotated, Literal, Optional, Union
8
8
 
9
- from pydantic import BaseModel, Field, StrictStr
9
+ from pydantic import BaseModel, Field, PositiveInt, StrictStr
10
10
 
11
11
  from docling_core.search.mapping import es_field
12
12
  from docling_core.utils.alias import AliasModel
@@ -39,7 +39,7 @@ class S3Resource(BaseModel):
39
39
 
40
40
  mime: str
41
41
  path: str
42
- page: Optional[int] = None
42
+ page: Optional[PositiveInt] = None
43
43
 
44
44
 
45
45
  class S3Data(AliasModel):
@@ -68,7 +68,7 @@ class Prov(AliasModel):
68
68
  """Provenance."""
69
69
 
70
70
  bbox: BoundingBox
71
- page: int
71
+ page: PositiveInt
72
72
  span: Span
73
73
  ref_s3_data: Optional[StrictStr] = Field(
74
74
  default=None, alias="__ref_s3_data", json_schema_extra=es_field(suppress=True)
@@ -96,7 +96,7 @@ class PageDimensions(BaseModel):
96
96
  """Page dimensions."""
97
97
 
98
98
  height: float
99
- page: int
99
+ page: PositiveInt
100
100
  width: float
101
101
 
102
102
 
@@ -196,4 +196,4 @@ class PageReference(BaseModel):
196
196
 
197
197
  hash: str = Field(json_schema_extra=es_field(type="keyword", ignore_above=8191))
198
198
  model: str = Field(json_schema_extra=es_field(suppress=True))
199
- page: int = Field(json_schema_extra=es_field(type="short"))
199
+ page: PositiveInt = Field(json_schema_extra=es_field(type="short"))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: docling-core
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: A python library to define and validate data types in Docling.
5
5
  Home-page: https://ds4sd.github.io/
6
6
  License: MIT
@@ -16,7 +16,7 @@ docling_core/search/package.py,sha256=Lz2ml2eDy5t0ZimnGTq-DXHAn-f18w0bn4H5xrhs75
16
16
  docling_core/types/__init__.py,sha256=6mrAEKRW85uHJwNQBufwjPcMWCjm3oocA6MaO4_NLgg,805
17
17
  docling_core/types/base.py,sha256=fNtfQ20NKa_RBNBWbq0DfO8o0zC1Cec8UAMu0Znsltk,8170
18
18
  docling_core/types/doc/__init__.py,sha256=Pzj_8rft6SJTVTCHgXRwHtuZjL6LK_6dcBWjikL9biY,125
19
- docling_core/types/doc/base.py,sha256=-j4vVs3JZuaUjm0fHIkLU9TD_4IZXQuGouLrddEAwPw,5508
19
+ docling_core/types/doc/base.py,sha256=ihkr_RqcyK_ngRFhTc1OhQiilIYymw5_0cgBe7VdVq0,5553
20
20
  docling_core/types/doc/doc_ann.py,sha256=8pV2efUglw19jxl4_oqB__mSxjWvtGIcllyCdqA-b2s,1196
21
21
  docling_core/types/doc/doc_ocr.py,sha256=6PC0C-OczF-MyfgRxEI1xs3PWgNOzi7i2yEQbTqZz0I,1387
22
22
  docling_core/types/doc/doc_raw.py,sha256=Y69G6IiauNDaoT-5el4xo1ypWpnBJQ75akGGkCMTZSc,3888
@@ -39,8 +39,8 @@ docling_core/utils/ds_generate_docs.py,sha256=0xGBagdC_PGjyeHXYZo90VnVrSTMZgHb0S
39
39
  docling_core/utils/ds_generate_jsonschema.py,sha256=EhNQutqWJFWuN-yl9UUPFZ7DJTvGqg54qBIvUMHTHdA,1647
40
40
  docling_core/utils/validate.py,sha256=3FmnxnKTDZC5J9OGxCL3U3DGRl0t0bBV1NcySXswdas,2031
41
41
  docling_core/utils/validators.py,sha256=fBdyWX4PvFh7o_d25ZTs4iwmeo75QTbrxsvXv2kXkTg,2777
42
- docling_core-1.1.1.dist-info/LICENSE,sha256=2M9-6EoQ1sxFztTOkXGAtwUDJvnWaAHdB9BYWVwGkIw,1087
43
- docling_core-1.1.1.dist-info/METADATA,sha256=IyDQiHgqcwSgNkZU0WiK-2_6kqk6A5KKNi8AUmyZ0nc,5335
44
- docling_core-1.1.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
45
- docling_core-1.1.1.dist-info/entry_points.txt,sha256=XHhtJEkdUuLxXSNxLdFIzx_siQ3z2UFQEKp-P8VYAE4,189
46
- docling_core-1.1.1.dist-info/RECORD,,
42
+ docling_core-1.1.2.dist-info/LICENSE,sha256=2M9-6EoQ1sxFztTOkXGAtwUDJvnWaAHdB9BYWVwGkIw,1087
43
+ docling_core-1.1.2.dist-info/METADATA,sha256=_6KPgXt_4k2BdT7Pu6RiOvZ3DMQ4nnZ5lpgdK73IHeY,5335
44
+ docling_core-1.1.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
45
+ docling_core-1.1.2.dist-info/entry_points.txt,sha256=XHhtJEkdUuLxXSNxLdFIzx_siQ3z2UFQEKp-P8VYAE4,189
46
+ docling_core-1.1.2.dist-info/RECORD,,