kodexa 7.0.9209617492__py3-none-any.whl → 7.0.9584926849__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.
- kodexa/platform/client.py +8 -1
- {kodexa-7.0.9209617492.dist-info → kodexa-7.0.9584926849.dist-info}/METADATA +1 -1
- {kodexa-7.0.9209617492.dist-info → kodexa-7.0.9584926849.dist-info}/RECORD +5 -5
- {kodexa-7.0.9209617492.dist-info → kodexa-7.0.9584926849.dist-info}/LICENSE +0 -0
- {kodexa-7.0.9209617492.dist-info → kodexa-7.0.9584926849.dist-info}/WHEEL +0 -0
kodexa/platform/client.py
CHANGED
@@ -5432,19 +5432,21 @@ class DocumentStoreEndpoint(StoreEndpoint):
|
|
5432
5432
|
document_family_response.json()
|
5433
5433
|
).set_client(self.client)
|
5434
5434
|
|
5435
|
-
def stream_query(self, query: str = "*", sort=None):
|
5435
|
+
def stream_query(self, query: str = "*", sort=None, limit=None):
|
5436
5436
|
"""
|
5437
5437
|
Stream the query for the document family.
|
5438
5438
|
|
5439
5439
|
Args:
|
5440
5440
|
query (str, optional): The query to run. Defaults to "*".
|
5441
5441
|
sort (str, optional): Sorting order of the query. Defaults to None.
|
5442
|
+
limit (int, optional): The maximum number of items to return. Defaults to None.
|
5442
5443
|
|
5443
5444
|
Returns:
|
5444
5445
|
generator: A generator of the document families.
|
5445
5446
|
"""
|
5446
5447
|
page_size = 5
|
5447
5448
|
page = 1
|
5449
|
+
number_of_items = 0
|
5448
5450
|
|
5449
5451
|
if not sort:
|
5450
5452
|
sort = "id"
|
@@ -5456,7 +5458,12 @@ class DocumentStoreEndpoint(StoreEndpoint):
|
|
5456
5458
|
if not page_response.content:
|
5457
5459
|
break
|
5458
5460
|
for document_family in page_response.content:
|
5461
|
+
number_of_items += 1
|
5462
|
+
if limit and number_of_items > limit:
|
5463
|
+
break
|
5464
|
+
|
5459
5465
|
yield document_family
|
5466
|
+
|
5460
5467
|
page += 1
|
5461
5468
|
|
5462
5469
|
def query(
|
@@ -14,7 +14,7 @@ kodexa/model/persistence.py,sha256=sx5FwTSsWMdAZpAs0-6PqyULHkQyNQClApUKJZ-ly8M,6
|
|
14
14
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
15
15
|
kodexa/pipeline/pipeline.py,sha256=ZYpJAWcwV4YRK589DUhU0vXGQlkNSj4J2TsGbYqTLjo,25221
|
16
16
|
kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
|
17
|
-
kodexa/platform/client.py,sha256=
|
17
|
+
kodexa/platform/client.py,sha256=IOkBDespqZkWNNbK2WSnrHsr5sPZ7JI4PojaikTvc4o,221175
|
18
18
|
kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
|
19
19
|
kodexa/platform/kodexa.py,sha256=Bvf6x43FWsFuAuQ4N8TvjSZq6niEtBTESmFCWVPASeQ,34024
|
20
20
|
kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
|
@@ -38,7 +38,7 @@ kodexa/testing/test_components.py,sha256=g5lP-GY0nTHuH5cIEw45vIejEeBaWkPKQGHL36j
|
|
38
38
|
kodexa/testing/test_utils.py,sha256=DrLCkHxdb6AbZ-X3WmTMbQmnVIm55VEBL8MjtUK9POs,14021
|
39
39
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
40
40
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
41
|
-
kodexa-7.0.
|
42
|
-
kodexa-7.0.
|
43
|
-
kodexa-7.0.
|
44
|
-
kodexa-7.0.
|
41
|
+
kodexa-7.0.9584926849.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
42
|
+
kodexa-7.0.9584926849.dist-info/METADATA,sha256=t3vlm8IbwKO-XFlQ-UHvVXFMMnZ4j2lsY-xUWtBkei0,3486
|
43
|
+
kodexa-7.0.9584926849.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
44
|
+
kodexa-7.0.9584926849.dist-info/RECORD,,
|
File without changes
|
File without changes
|