nucliadb-models 6.3.5.post3985__py3-none-any.whl → 6.3.5.post3995__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.
@@ -24,7 +24,6 @@ from typing import List, Optional
24
24
  from pydantic import BaseModel, Field, field_validator
25
25
 
26
26
  from nucliadb_models import CloudLink, FieldRef, FileB64
27
- from nucliadb_models.labels import ClassificationLabel
28
27
  from nucliadb_models.utils import DateTime
29
28
 
30
29
  # Shared classes
@@ -121,34 +120,3 @@ class InputConversationField(BaseModel):
121
120
  default=None,
122
121
  description="Id of the Nuclia extract strategy used at processing time. If not set, the default strategy was used. Extract strategies are defined at the learning configuration api.",
123
122
  )
124
-
125
-
126
- # Processing classes (Those used to sent to push endpoints)
127
-
128
-
129
- class PushMessageFormat(int, Enum):
130
- PLAIN = 0
131
- HTML = 1
132
- MARKDOWN = 2
133
- RST = 3
134
- JSON = 4
135
-
136
-
137
- class PushMessageContent(BaseModel):
138
- text: Optional[str] = None
139
- format: PushMessageFormat
140
- attachments: List[str] = []
141
-
142
-
143
- class PushMessage(BaseModel):
144
- timestamp: Optional[datetime] = None
145
- who: Optional[str] = None
146
- to: List[str] = []
147
- content: PushMessageContent
148
- ident: str
149
-
150
-
151
- class PushConversation(BaseModel):
152
- messages: List[PushMessage] = []
153
- extract_strategy: Optional[str] = None
154
- classification_labels: list[ClassificationLabel] = []
nucliadb_models/file.py CHANGED
@@ -53,8 +53,3 @@ class FileField(BaseModel):
53
53
  default=None,
54
54
  description="Id of the Nuclia extract strategy to use at processing time. If not set, the default strategy will be used. Extract strategies are defined at the learning configuration api.",
55
55
  )
56
-
57
-
58
- # Processing classes (Those used to sent to push endpoints)
59
- # - No class used, all files are send to push as opaque string tokens
60
- # set directly in the files dict on PushPayload
nucliadb_models/labels.py CHANGED
@@ -129,16 +129,3 @@ class LabelSet(BaseModel):
129
129
  class KnowledgeBoxLabels(BaseModel):
130
130
  uuid: str
131
131
  labelsets: Dict[str, LabelSet] = {}
132
-
133
-
134
- class ClassificationLabel(BaseModel):
135
- """
136
- NOTE: This model is used to send the labels of each field in the processing requests.
137
- It is a rath is not meant to be used by api users.
138
- """
139
-
140
- labelset: str
141
- label: str
142
-
143
- def __hash__(self):
144
- return hash((self.labelset, self.label))
nucliadb_models/link.py CHANGED
@@ -22,8 +22,6 @@ from typing import Dict, Optional
22
22
 
23
23
  from pydantic import BaseModel, Field
24
24
 
25
- from nucliadb_models.labels import ClassificationLabel
26
-
27
25
  # Shared classes
28
26
 
29
27
  # NOTHING TO SEE HERE
@@ -61,25 +59,3 @@ class LinkField(BaseModel):
61
59
  default=None,
62
60
  description="Id of the Nuclia extract strategy to use at processing time. If not set, the default strategy will be used. Extract strategies are defined at the learning configuration api.",
63
61
  )
64
-
65
-
66
- # Processing classes (Those used to sent to push endpoints)
67
-
68
-
69
- class LinkUpload(BaseModel):
70
- link: str
71
- headers: Dict[str, str] = {}
72
- cookies: Dict[str, str] = {}
73
- localstorage: Dict[str, str] = {}
74
- css_selector: Optional[str] = Field(
75
- None,
76
- title="Css selector",
77
- description="Css selector to parse the link",
78
- )
79
- xpath: Optional[str] = Field(
80
- None,
81
- title="Xpath",
82
- description="Xpath to parse the link",
83
- )
84
- extract_strategy: Optional[str] = None
85
- classification_labels: list[ClassificationLabel] = []
nucliadb_models/text.py CHANGED
@@ -23,7 +23,6 @@ from typing import Optional
23
23
  from pydantic import BaseModel, Field, model_validator
24
24
  from typing_extensions import Self
25
25
 
26
- from nucliadb_models.labels import ClassificationLabel
27
26
  from nucliadb_models.utils import validate_json
28
27
 
29
28
  MB = 1024 * 1024
@@ -92,24 +91,3 @@ If you need to store more text, consider using a file field instead or splitting
92
91
  if self.format == TextFormat.JSON:
93
92
  validate_json(self.body or "")
94
93
  return self
95
-
96
-
97
- # Processing classes (Those used to sent to push endpoints)
98
-
99
-
100
- class PushTextFormat(int, Enum):
101
- PLAIN = 0
102
- HTML = 1
103
- MARKDOWN = 2
104
- RST = 3
105
- JSON = 4
106
- KEEP_MARKDOWN = 5
107
- JSONL = 6
108
- PLAIN_BLANKLINE_SPLIT = 7
109
-
110
-
111
- class Text(BaseModel):
112
- body: str
113
- format: PushTextFormat
114
- extract_strategy: Optional[str] = None
115
- classification_labels: list[ClassificationLabel] = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb_models
3
- Version: 6.3.5.post3985
3
+ Version: 6.3.5.post3995
4
4
  Author-email: Nuclia <nucliadb@nuclia.com>
5
5
  License: AGPL
6
6
  Project-URL: Homepage, https://nuclia.com
@@ -2,15 +2,15 @@ nucliadb_models/__init__.py,sha256=qSmhNKACMwdbU1rklMWlmJKmlRaWvrSksTtwEVkiydQ,1
2
2
  nucliadb_models/common.py,sha256=JEEY7_AxRCBPHUF6J8XptR_QnGEjRBd02Kqm5WOySYc,7828
3
3
  nucliadb_models/configuration.py,sha256=7iUgSCkmFinu6clCfT54P5tuz5Lvf6eJVmahYjwI7qk,2525
4
4
  nucliadb_models/content_types.py,sha256=2B3TJpPYJqd-9xGiNiHJFngSIrVyNsZlN4PeB-HafIk,3682
5
- nucliadb_models/conversation.py,sha256=_ubB_22-ovyS8PbRi4TZX5qf1WZ6nAvXIVJtu21BMeM,4339
5
+ nucliadb_models/conversation.py,sha256=nUXvcH3J_xk4HB7raI38dGtZebc_G6TZZWjicjyAa7g,3635
6
6
  nucliadb_models/entities.py,sha256=IqsbF0dSCWkp222sd_R2Ste0iG1eoBPNh1Fh6mNVcu0,2608
7
7
  nucliadb_models/export_import.py,sha256=A1KTjwQCRtyVAWcgabXsdltI78rauXBmZX1ie6Rx_pQ,1325
8
8
  nucliadb_models/external_index_providers.py,sha256=aVyj-P4kVqfqPjF13E_lUM0FZsq8-DTbIsh-kHOgt2s,1787
9
9
  nucliadb_models/extracted.py,sha256=CBeC0hUphXq1T79K7Cpohuyg7f1pqTB4WGErb0HGgRs,6497
10
- nucliadb_models/file.py,sha256=4pDfQtXaBNB-ExeXC7NIdt33RbJp_u53_x8ACVkHXCM,2174
10
+ nucliadb_models/file.py,sha256=FKnaYUZPjxCEDUpbyDTudnHHKeSuQLfBnRR2FL6tL2s,1992
11
11
  nucliadb_models/filters.py,sha256=iUwxQcX8LuFbQekuPatM_YSwlTd0UxsowjC636zVMjQ,13199
12
- nucliadb_models/labels.py,sha256=AGNVzvt-FUQlTBiBCV-w4Lpq4Hey0b_jqhGzkrFbtFg,4510
13
- nucliadb_models/link.py,sha256=GDCBREpMFEPmIjvf56zlU9quxI8j4NnlhsaEYWxCHqU,2899
12
+ nucliadb_models/labels.py,sha256=OUlX-apmFkibEN9bWThRJlbCD84hzJdddN1YYUV2Y3w,4201
13
+ nucliadb_models/link.py,sha256=x6YainEQ9gx6X1KF8oelA-RTaqjOesoWJNYENihDfgo,2262
14
14
  nucliadb_models/metadata.py,sha256=ppwU__5IWHvBNDUT5EGLZxgpSBTwuA-rEpY-8Ef-Lwo,8600
15
15
  nucliadb_models/notifications.py,sha256=jr2J3zncs880jYf2oZHYt0VFcnlZevsbkyX69ovTah8,4271
16
16
  nucliadb_models/processing.py,sha256=UeU-VxbBlOzkNxviOS3a0X_k7Ye-jYu3UOdGuu21M8M,971
@@ -19,7 +19,7 @@ nucliadb_models/resource.py,sha256=cjYloaRuCJFc3lGIxLZcX959oOq_N1f3V9bpPMYv4WA,9
19
19
  nucliadb_models/search.py,sha256=0fkmldZIn8DfnXz24yFuXxQfzzD9HgDX8pGVIgMVm7w,82051
20
20
  nucliadb_models/security.py,sha256=RewdzQ55nPZ9V7B0NX9KHeWg6B4Hg_RkeiFv2TQyrjs,1402
21
21
  nucliadb_models/synonyms.py,sha256=qXTPHfspMgw22hCjAOdFOIoUsRZ7Ju3JW-Lw9Nz4VaI,942
22
- nucliadb_models/text.py,sha256=EdKn90H9wIEIclH_ZQ9casLF3C6D0oxC53RBtMe4Pew,3604
22
+ nucliadb_models/text.py,sha256=dr-ckEIK0a8c5u-7uO1wpund_8KKb_4T79Au4Lfv-Bo,3150
23
23
  nucliadb_models/trainset.py,sha256=bJMnL9vvbVqicERRsrogPXYjMmqelBSAWdTEWPW_xME,933
24
24
  nucliadb_models/utils.py,sha256=ndsLMxu9XWvJcCTT-1THJasr3EfZVAx2JtxmcU6F7mA,2651
25
25
  nucliadb_models/vectors.py,sha256=hDrvUag4WpmQkM8rN5v868IlKSNpVc9OEddJxaxuYws,748
@@ -32,7 +32,7 @@ nucliadb_models/graph/responses.py,sha256=3aimAHrd3YW1BXHU_ZXRoidlccRtkCcREkfCNo
32
32
  nucliadb_models/internal/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
33
33
  nucliadb_models/internal/predict.py,sha256=5rgUPrH_98gerySOZ-TR2PX_qzCGF1_8VxyOu3bGhis,2281
34
34
  nucliadb_models/internal/shards.py,sha256=uZLsMkYWrJDHq3xy_w7snSeV2X3aDBuht9GC_MG3sKc,1976
35
- nucliadb_models-6.3.5.post3985.dist-info/METADATA,sha256=2XzHwQzfDPfAJqQHQgoWX9TWlScVM1SolhvZXu0XprA,759
36
- nucliadb_models-6.3.5.post3985.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
37
- nucliadb_models-6.3.5.post3985.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
38
- nucliadb_models-6.3.5.post3985.dist-info/RECORD,,
35
+ nucliadb_models-6.3.5.post3995.dist-info/METADATA,sha256=jhqlgyLgMXArXJhCZ0RbnNw3bGU3Jx5idxMoYsD7LAU,759
36
+ nucliadb_models-6.3.5.post3995.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
37
+ nucliadb_models-6.3.5.post3995.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
38
+ nucliadb_models-6.3.5.post3995.dist-info/RECORD,,