nucliadb-models 6.3.0.post3424__py3-none-any.whl → 6.3.0.post3430__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.
- nucliadb_models/filters.py +11 -10
- {nucliadb_models-6.3.0.post3424.dist-info → nucliadb_models-6.3.0.post3430.dist-info}/METADATA +1 -1
- {nucliadb_models-6.3.0.post3424.dist-info → nucliadb_models-6.3.0.post3430.dist-info}/RECORD +5 -5
- {nucliadb_models-6.3.0.post3424.dist-info → nucliadb_models-6.3.0.post3430.dist-info}/WHEEL +0 -0
- {nucliadb_models-6.3.0.post3424.dist-info → nucliadb_models-6.3.0.post3430.dist-info}/top_level.txt +0 -0
nucliadb_models/filters.py
CHANGED
|
@@ -120,13 +120,6 @@ class DateModified(BaseModel, extra="forbid"):
|
|
|
120
120
|
return self
|
|
121
121
|
|
|
122
122
|
|
|
123
|
-
class OriginTag(BaseModel, extra="forbid"):
|
|
124
|
-
"""Matches all fields with a given origin tag"""
|
|
125
|
-
|
|
126
|
-
prop: Literal["origin_tag"]
|
|
127
|
-
tag: str = pydantic.Field(description="The tag to match")
|
|
128
|
-
|
|
129
|
-
|
|
130
123
|
class Label(BaseModel, extra="forbid"):
|
|
131
124
|
"""Matches fields/paragraphs with a label (or labelset)"""
|
|
132
125
|
|
|
@@ -195,6 +188,13 @@ class Language(BaseModel, extra="forbid"):
|
|
|
195
188
|
language: str = pydantic.Field(description="The code of the language to match, e.g: en")
|
|
196
189
|
|
|
197
190
|
|
|
191
|
+
class OriginTag(BaseModel, extra="forbid"):
|
|
192
|
+
"""Matches all fields with a given origin tag"""
|
|
193
|
+
|
|
194
|
+
prop: Literal["origin_tag"]
|
|
195
|
+
tag: str = pydantic.Field(description="The tag to match")
|
|
196
|
+
|
|
197
|
+
|
|
198
198
|
class OriginMetadata(BaseModel, extra="forbid"):
|
|
199
199
|
"""Matches metadata from the origin"""
|
|
200
200
|
|
|
@@ -210,11 +210,12 @@ class OriginPath(BaseModel, extra="forbid"):
|
|
|
210
210
|
"""Matches the origin path"""
|
|
211
211
|
|
|
212
212
|
prop: Literal["origin_path"]
|
|
213
|
-
prefix: str = pydantic.Field(
|
|
213
|
+
prefix: Optional[str] = pydantic.Field(
|
|
214
|
+
default=None,
|
|
214
215
|
description=(
|
|
215
216
|
"Prefix of the path, matches all paths under this prefix"
|
|
216
217
|
"e.g: `prefix=/dir/` matches `/dir` and `/dir/a/b` but not `/dirrrr`"
|
|
217
|
-
)
|
|
218
|
+
),
|
|
218
219
|
)
|
|
219
220
|
|
|
220
221
|
|
|
@@ -222,7 +223,7 @@ class OriginSource(BaseModel, extra="forbid"):
|
|
|
222
223
|
"""Matches the origin source id"""
|
|
223
224
|
|
|
224
225
|
prop: Literal["origin_source"]
|
|
225
|
-
id: str = pydantic.Field(description=("Source ID"))
|
|
226
|
+
id: Optional[str] = pydantic.Field(default=None, description=("Source ID"))
|
|
226
227
|
|
|
227
228
|
|
|
228
229
|
class OriginCollaborator(BaseModel, extra="forbid"):
|
{nucliadb_models-6.3.0.post3424.dist-info → nucliadb_models-6.3.0.post3430.dist-info}/RECORD
RENAMED
|
@@ -8,7 +8,7 @@ nucliadb_models/export_import.py,sha256=A1KTjwQCRtyVAWcgabXsdltI78rauXBmZX1ie6Rx
|
|
|
8
8
|
nucliadb_models/external_index_providers.py,sha256=aVyj-P4kVqfqPjF13E_lUM0FZsq8-DTbIsh-kHOgt2s,1787
|
|
9
9
|
nucliadb_models/extracted.py,sha256=wnTjMsSPk1iZFtn4eFrBC9fSOZkNTeHQ_B9CRyaL0cA,6444
|
|
10
10
|
nucliadb_models/file.py,sha256=4pDfQtXaBNB-ExeXC7NIdt33RbJp_u53_x8ACVkHXCM,2174
|
|
11
|
-
nucliadb_models/filters.py,sha256=
|
|
11
|
+
nucliadb_models/filters.py,sha256=mHep1AnMrrmity-M0Kb4rdYei8sAO6F6kWu2HVI6g8A,13199
|
|
12
12
|
nucliadb_models/labels.py,sha256=OUlX-apmFkibEN9bWThRJlbCD84hzJdddN1YYUV2Y3w,4201
|
|
13
13
|
nucliadb_models/link.py,sha256=NRfsjLQpjZXndkb5o8qnSVPqb2knqk2kk5_iQB4AkaY,2785
|
|
14
14
|
nucliadb_models/metadata.py,sha256=fiIJfht0Eg5a65ud2FdmHzElZ8VGdrDQ-F65-VJI4IE,8151
|
|
@@ -29,7 +29,7 @@ nucliadb_models/agents/ingestion.py,sha256=mV7gV6VpYg4VNpc59K3275TMUJZbUzeUnp3SZ
|
|
|
29
29
|
nucliadb_models/internal/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
|
30
30
|
nucliadb_models/internal/predict.py,sha256=5rgUPrH_98gerySOZ-TR2PX_qzCGF1_8VxyOu3bGhis,2281
|
|
31
31
|
nucliadb_models/internal/shards.py,sha256=uZLsMkYWrJDHq3xy_w7snSeV2X3aDBuht9GC_MG3sKc,1976
|
|
32
|
-
nucliadb_models-6.3.0.
|
|
33
|
-
nucliadb_models-6.3.0.
|
|
34
|
-
nucliadb_models-6.3.0.
|
|
35
|
-
nucliadb_models-6.3.0.
|
|
32
|
+
nucliadb_models-6.3.0.post3430.dist-info/METADATA,sha256=soLA5zE1CF7vVperpcYUfhNUPNxzKYE__uoniTpzjeY,759
|
|
33
|
+
nucliadb_models-6.3.0.post3430.dist-info/WHEEL,sha256=nn6H5-ilmfVryoAQl3ZQ2l8SH5imPWFpm1A5FgEuFV4,91
|
|
34
|
+
nucliadb_models-6.3.0.post3430.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
|
|
35
|
+
nucliadb_models-6.3.0.post3430.dist-info/RECORD,,
|
|
File without changes
|
{nucliadb_models-6.3.0.post3424.dist-info → nucliadb_models-6.3.0.post3430.dist-info}/top_level.txt
RENAMED
|
File without changes
|