nucliadb 6.9.2.post5256__py3-none-any.whl → 6.9.2.post5260__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 nucliadb might be problematic. Click here for more details.
- nucliadb/common/filter_expression.py +15 -32
- nucliadb/search/search/query_parser/parsers/catalog.py +2 -2
- {nucliadb-6.9.2.post5256.dist-info → nucliadb-6.9.2.post5260.dist-info}/METADATA +7 -8
- {nucliadb-6.9.2.post5256.dist-info → nucliadb-6.9.2.post5260.dist-info}/RECORD +7 -7
- {nucliadb-6.9.2.post5256.dist-info → nucliadb-6.9.2.post5260.dist-info}/WHEEL +0 -0
- {nucliadb-6.9.2.post5256.dist-info → nucliadb-6.9.2.post5260.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.9.2.post5256.dist-info → nucliadb-6.9.2.post5260.dist-info}/top_level.txt +0 -0
|
@@ -52,37 +52,20 @@ from nucliadb_models.filters import (
|
|
|
52
52
|
)
|
|
53
53
|
|
|
54
54
|
# Filters that end up as a facet
|
|
55
|
-
FacetFilter =
|
|
56
|
-
OriginTag
|
|
57
|
-
Label
|
|
58
|
-
ResourceMimetype
|
|
59
|
-
FieldMimetype
|
|
60
|
-
Entity
|
|
61
|
-
Language
|
|
62
|
-
OriginMetadata
|
|
63
|
-
OriginPath
|
|
64
|
-
Generated
|
|
65
|
-
Kind
|
|
66
|
-
OriginCollaborator
|
|
67
|
-
OriginSource
|
|
68
|
-
Status
|
|
69
|
-
]
|
|
70
|
-
# In Python 3.9 we cannot do isinstance against an union
|
|
71
|
-
# Once we support only 3.10+, we can remove this
|
|
72
|
-
FacetFilterTypes = (
|
|
73
|
-
OriginTag,
|
|
74
|
-
Label,
|
|
75
|
-
ResourceMimetype,
|
|
76
|
-
FieldMimetype,
|
|
77
|
-
Entity,
|
|
78
|
-
Language,
|
|
79
|
-
OriginMetadata,
|
|
80
|
-
OriginPath,
|
|
81
|
-
Generated,
|
|
82
|
-
Kind,
|
|
83
|
-
OriginCollaborator,
|
|
84
|
-
OriginSource,
|
|
85
|
-
Status,
|
|
55
|
+
FacetFilter = (
|
|
56
|
+
OriginTag
|
|
57
|
+
| Label
|
|
58
|
+
| ResourceMimetype
|
|
59
|
+
| FieldMimetype
|
|
60
|
+
| Entity
|
|
61
|
+
| Language
|
|
62
|
+
| OriginMetadata
|
|
63
|
+
| OriginPath
|
|
64
|
+
| Generated
|
|
65
|
+
| Kind
|
|
66
|
+
| OriginCollaborator
|
|
67
|
+
| OriginSource
|
|
68
|
+
| Status
|
|
86
69
|
)
|
|
87
70
|
|
|
88
71
|
|
|
@@ -131,7 +114,7 @@ async def parse_expression(
|
|
|
131
114
|
f.date.since.FromDatetime(expr.since)
|
|
132
115
|
if expr.until:
|
|
133
116
|
f.date.until.FromDatetime(expr.until)
|
|
134
|
-
elif isinstance(expr,
|
|
117
|
+
elif isinstance(expr, FacetFilter):
|
|
135
118
|
f.facet.facet = facet_from_filter(expr)
|
|
136
119
|
else:
|
|
137
120
|
# This is a trick so mypy generates an error if this branch can be reached,
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
from nucliadb.common import datamanagers
|
|
22
22
|
from nucliadb.common.catalog.interface import CatalogExpression, CatalogQuery
|
|
23
23
|
from nucliadb.common.exceptions import InvalidQueryError
|
|
24
|
-
from nucliadb.common.filter_expression import
|
|
24
|
+
from nucliadb.common.filter_expression import FacetFilter, facet_from_filter
|
|
25
25
|
from nucliadb.search.search.filters import translate_label
|
|
26
26
|
from nucliadb_models import search as search_models
|
|
27
27
|
from nucliadb_models.filters import (
|
|
@@ -189,7 +189,7 @@ async def parse_filter_expression(expr: ResourceFilterExpression, kbid: str) ->
|
|
|
189
189
|
cat.date = CatalogExpression.Date(field="created_at", since=expr.since, until=expr.until)
|
|
190
190
|
elif isinstance(expr, DateModified):
|
|
191
191
|
cat.date = CatalogExpression.Date(field="modified_at", since=expr.since, until=expr.until)
|
|
192
|
-
elif isinstance(expr,
|
|
192
|
+
elif isinstance(expr, FacetFilter):
|
|
193
193
|
cat.facet = facet_from_filter(expr)
|
|
194
194
|
else:
|
|
195
195
|
# This is a trick so mypy generates an error if this branch can be reached,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nucliadb
|
|
3
|
-
Version: 6.9.2.
|
|
3
|
+
Version: 6.9.2.post5260
|
|
4
4
|
Summary: NucliaDB
|
|
5
5
|
Author-email: Nuclia <nucliadb@nuclia.com>
|
|
6
6
|
License-Expression: AGPL-3.0-or-later
|
|
@@ -12,18 +12,17 @@ Classifier: Development Status :: 4 - Beta
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Classifier: Intended Audience :: Information Technology
|
|
14
14
|
Classifier: Programming Language :: Python
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
18
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
-
Requires-Python: <4,>=3.
|
|
19
|
+
Requires-Python: <4,>=3.10
|
|
21
20
|
Description-Content-Type: text/markdown
|
|
22
|
-
Requires-Dist: nucliadb-telemetry[all]>=6.9.2.
|
|
23
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.9.2.
|
|
24
|
-
Requires-Dist: nucliadb-protos>=6.9.2.
|
|
25
|
-
Requires-Dist: nucliadb-models>=6.9.2.
|
|
26
|
-
Requires-Dist: nidx-protos>=6.9.2.
|
|
21
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.9.2.post5260
|
|
22
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.9.2.post5260
|
|
23
|
+
Requires-Dist: nucliadb-protos>=6.9.2.post5260
|
|
24
|
+
Requires-Dist: nucliadb-models>=6.9.2.post5260
|
|
25
|
+
Requires-Dist: nidx-protos>=6.9.2.post5260
|
|
27
26
|
Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
|
|
28
27
|
Requires-Dist: nuclia-models>=0.50.0
|
|
29
28
|
Requires-Dist: uvicorn[standard]
|
|
@@ -67,7 +67,7 @@ nucliadb/common/cache.py,sha256=FmMVPoxmKGODvOCyO_pxEHjAV3sYeefW9Jeh1cVLTU0,6538
|
|
|
67
67
|
nucliadb/common/constants.py,sha256=QpigxJh_CtD85Evy0PtV5cVq6x0U_f9xfIcXz1ymkUg,869
|
|
68
68
|
nucliadb/common/counters.py,sha256=8lOi3A2HeLDDlcNaS2QT1SfD3350VPBjiY3FkmHH1V8,977
|
|
69
69
|
nucliadb/common/exceptions.py,sha256=_PJk_NfAhZBFBvmgAfvsJKZ9KuRt5Y1cNsH3-cXE07w,1120
|
|
70
|
-
nucliadb/common/filter_expression.py,sha256
|
|
70
|
+
nucliadb/common/filter_expression.py,sha256=qVNVBqhD-RgKR3U_fBnp_a33vhuw684dkKaoMgjyWjI,6233
|
|
71
71
|
nucliadb/common/ids.py,sha256=M4bcl6gmBhVeD3XhRMv40YsbY83bOgSHInQ2ol33Mjc,8829
|
|
72
72
|
nucliadb/common/locking.py,sha256=eZG47mI1OPnKbxSd95qa6jDXBhUoxVBIuSjxoEuBRWE,5894
|
|
73
73
|
nucliadb/common/nidx.py,sha256=W0NkbYfhXgyP9f0QCdAZDv4P-S99QuVrt6ft3B8CZM8,10089
|
|
@@ -285,7 +285,7 @@ nucliadb/search/search/query_parser/models.py,sha256=ARJYv88bj-u1G4-JxLKNbaz8gwC
|
|
|
285
285
|
nucliadb/search/search/query_parser/old_filters.py,sha256=GsU3T3-WiSPvjucP7evHkshzAWZOli8qsuXChvWRCY0,9092
|
|
286
286
|
nucliadb/search/search/query_parser/parsers/__init__.py,sha256=ySCNSdbesLXGZyR88919njulA6UE10_3PhqMG_Yj1o4,1034
|
|
287
287
|
nucliadb/search/search/query_parser/parsers/ask.py,sha256=ySa3lBhUuammIchJvj7xodeGIYGkR0uyLnHuOtLfWE8,2810
|
|
288
|
-
nucliadb/search/search/query_parser/parsers/catalog.py,sha256=
|
|
288
|
+
nucliadb/search/search/query_parser/parsers/catalog.py,sha256=ZECncFrgcxtsXrvAA2sqH9h0HJrQvSdezdlQhPR78Lk,7464
|
|
289
289
|
nucliadb/search/search/query_parser/parsers/common.py,sha256=LvpCHL5a8mwVn3_3MMZq9WiVHOFMfLuJlZKvh_neHiM,6872
|
|
290
290
|
nucliadb/search/search/query_parser/parsers/find.py,sha256=7z6GDscMGybvlXENAKOs7XM3p1IJmdC-AZsb4GX_O3g,12698
|
|
291
291
|
nucliadb/search/search/query_parser/parsers/graph.py,sha256=s7nCB7ly_4BZWds-8zce1R-r2fHSiEhAK8P-eL14wTk,9390
|
|
@@ -385,8 +385,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
|
385
385
|
nucliadb/writer/tus/s3.py,sha256=vu1BGg4VqJ_x2P1u2BxqPKlSfw5orT_a3R-Ln5oPUpU,8483
|
|
386
386
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
|
387
387
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
|
388
|
-
nucliadb-6.9.2.
|
|
389
|
-
nucliadb-6.9.2.
|
|
390
|
-
nucliadb-6.9.2.
|
|
391
|
-
nucliadb-6.9.2.
|
|
392
|
-
nucliadb-6.9.2.
|
|
388
|
+
nucliadb-6.9.2.post5260.dist-info/METADATA,sha256=Te6flE0ilSxOp5VO2RHB43wSXDTG0ZEiMXBYTybX49M,4118
|
|
389
|
+
nucliadb-6.9.2.post5260.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
390
|
+
nucliadb-6.9.2.post5260.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
|
391
|
+
nucliadb-6.9.2.post5260.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
|
392
|
+
nucliadb-6.9.2.post5260.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|