kodexa 7.4.416648957029__py3-none-any.whl → 7.4.416789395760__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 +6 -4
- {kodexa-7.4.416648957029.dist-info → kodexa-7.4.416789395760.dist-info}/METADATA +1 -1
- {kodexa-7.4.416648957029.dist-info → kodexa-7.4.416789395760.dist-info}/RECORD +5 -5
- {kodexa-7.4.416648957029.dist-info → kodexa-7.4.416789395760.dist-info}/LICENSE +0 -0
- {kodexa-7.4.416648957029.dist-info → kodexa-7.4.416789395760.dist-info}/WHEEL +0 -0
kodexa/platform/client.py
CHANGED
@@ -5934,7 +5934,7 @@ class DocumentStoreEndpoint(StoreEndpoint):
|
|
5934
5934
|
get_response.json()
|
5935
5935
|
).set_client(self.client)
|
5936
5936
|
|
5937
|
-
def stream_filter(self, filter_string: str = "", sort=None, limit=None, page_size=5):
|
5937
|
+
def stream_filter(self, filter_string: str = "", sort=None, limit=None, page_size=5, starting_offset: int = 0):
|
5938
5938
|
"""
|
5939
5939
|
Stream the filter for the document family.
|
5940
5940
|
|
@@ -5943,11 +5943,12 @@ class DocumentStoreEndpoint(StoreEndpoint):
|
|
5943
5943
|
sort (str, optional): Sorting order of the query. Defaults to None.
|
5944
5944
|
limit (int, optional): The maximum number of items to return. Defaults to None.
|
5945
5945
|
page_size (int, optional): The pagination size for the streaming
|
5946
|
+
starting_offset (int, optional): The starting offset for the streaming
|
5946
5947
|
|
5947
5948
|
Returns:
|
5948
5949
|
generator: A generator of the document families.
|
5949
5950
|
"""
|
5950
|
-
page = 1
|
5951
|
+
page = starting_offset // page_size + 1
|
5951
5952
|
count = 0
|
5952
5953
|
if not sort:
|
5953
5954
|
sort = "id"
|
@@ -5968,7 +5969,7 @@ class DocumentStoreEndpoint(StoreEndpoint):
|
|
5968
5969
|
page += 1
|
5969
5970
|
|
5970
5971
|
def filter(
|
5971
|
-
self, filter_string: str = "", page: int = 1, page_size: int = 100, sort=None
|
5972
|
+
self, filter_string: str = "", page: int = 1, page_size: int = 100, sort=None, starting_offset: int = 0
|
5972
5973
|
) -> PageDocumentFamilyEndpoint:
|
5973
5974
|
"""
|
5974
5975
|
Filter the document family.
|
@@ -5978,10 +5979,11 @@ class DocumentStoreEndpoint(StoreEndpoint):
|
|
5978
5979
|
page (int, optional): The page number to get. Defaults to 1.
|
5979
5980
|
page_size (int, optional): The number of items per page. Defaults to 100.
|
5980
5981
|
sort (str, optional): Sorting order of the query. Defaults to None.
|
5981
|
-
|
5982
|
+
starting_offset (int, optional): The starting offset for the filter (offset is 0-indexed, and over-rides the page parameter)
|
5982
5983
|
Returns:
|
5983
5984
|
PageDocumentFamilyEndpoint: The page of document families.
|
5984
5985
|
"""
|
5986
|
+
page = starting_offset // page_size + 1
|
5985
5987
|
params = {"page": page, "pageSize": page_size, "filter": filter_string}
|
5986
5988
|
|
5987
5989
|
if sort is not None:
|
@@ -19,7 +19,7 @@ kodexa/model/utils.py,sha256=YEG3f8YzBil06D0P3_dfx2S9GnHREzyrjnlWwQ7oPlU,3038
|
|
19
19
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
20
20
|
kodexa/pipeline/pipeline.py,sha256=zyNEpA7KlGhPs_l-vgV6m-OCb16dbxQhl8QezeylugA,25540
|
21
21
|
kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
|
22
|
-
kodexa/platform/client.py,sha256=
|
22
|
+
kodexa/platform/client.py,sha256=hfSD87kbtLXf3oho_MULQbnaQGJYmxqISjfAc_MJkjY,237773
|
23
23
|
kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
|
24
24
|
kodexa/platform/kodexa.py,sha256=2s7Ez7_o-ywpNwbTRhtOUaQKtB9hKsDC_oJHaskXw-I,35315
|
25
25
|
kodexa/platform/manifest.py,sha256=ThjQOk0xbP0qACcpS8NM6-zQL_Emd_bv4QAW2FpbUWk,19454
|
@@ -45,7 +45,7 @@ kodexa/testing/test_utils.py,sha256=v44p__gE7ia67W7WeHN2HBFCWSCUrCZt7G4xBNCmwf8,
|
|
45
45
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
46
46
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
47
47
|
kodexa/utils/__init__.py,sha256=Pnim1o9_db5YEnNvDTxpM7HG-qTlL6n8JwFwOafU9wo,5928
|
48
|
-
kodexa-7.4.
|
49
|
-
kodexa-7.4.
|
50
|
-
kodexa-7.4.
|
51
|
-
kodexa-7.4.
|
48
|
+
kodexa-7.4.416789395760.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
49
|
+
kodexa-7.4.416789395760.dist-info/METADATA,sha256=uv7xYEa5omirE0VBlMzM6Nd5i_fIpQmQvUPaMxBBX88,2916
|
50
|
+
kodexa-7.4.416789395760.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
51
|
+
kodexa-7.4.416789395760.dist-info/RECORD,,
|
File without changes
|
File without changes
|