kodexa 7.4.416803490107__py3-none-any.whl → 7.4.416807352183__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 CHANGED
@@ -3254,7 +3254,7 @@ class ProjectsEndpoint(EntitiesEndpoint):
3254
3254
  ).set_client(self.client)
3255
3255
  return None
3256
3256
 
3257
- def stream_query(self, query: str = "*", sort=None, limit=None):
3257
+ def stream_query(self, query: str = "*", sort=None, limit=None, starting_offset = 0):
3258
3258
  """
3259
3259
  Stream the query for the project endpoints.
3260
3260
 
@@ -3267,7 +3267,7 @@ class ProjectsEndpoint(EntitiesEndpoint):
3267
3267
  ProjectEndpoint: A generator of the project endpoints.
3268
3268
  """
3269
3269
  page_size = 5
3270
- page = 1
3270
+ page = starting_offset // page_size + 1
3271
3271
  counter = 0
3272
3272
 
3273
3273
  if not sort:
@@ -5970,7 +5970,7 @@ class DocumentStoreEndpoint(StoreEndpoint):
5970
5970
  page += 1
5971
5971
 
5972
5972
  def filter(
5973
- self, filter_string: str = "", page: int = 1, page_size: int = 100, sort=None, starting_offset: int = 0
5973
+ self, filter_string: str = "", page: int = 1, page_size: int = 100, sort=None
5974
5974
  ) -> PageDocumentFamilyEndpoint:
5975
5975
  """
5976
5976
  Filter the document family.
@@ -5980,11 +5980,9 @@ class DocumentStoreEndpoint(StoreEndpoint):
5980
5980
  page (int, optional): The page number to get. Defaults to 1.
5981
5981
  page_size (int, optional): The number of items per page. Defaults to 100.
5982
5982
  sort (str, optional): Sorting order of the query. Defaults to None.
5983
- starting_offset (int, optional): The starting offset for the filter (offset is 0-indexed, and over-rides the page parameter)
5984
5983
  Returns:
5985
5984
  PageDocumentFamilyEndpoint: The page of document families.
5986
5985
  """
5987
- page = starting_offset // page_size + 1
5988
5986
  params = {"page": page, "pageSize": page_size, "filter": filter_string}
5989
5987
 
5990
5988
  if sort is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kodexa
3
- Version: 7.4.416803490107
3
+ Version: 7.4.416807352183
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -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=e1siGyF3Pwa9VDLBUjudErVL18FYF6VyUjKFBytCEkE,238862
22
+ kodexa/platform/client.py,sha256=dnl2grl7nv1lEMV-QwosDUcW4Ll-FTAxVWT1nq4YjgM,238703
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.416803490107.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
49
- kodexa-7.4.416803490107.dist-info/METADATA,sha256=VozbjXwyzKTXhGBmZmj8phXX07m81WzxIO1aN6St7Ss,2916
50
- kodexa-7.4.416803490107.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
51
- kodexa-7.4.416803490107.dist-info/RECORD,,
48
+ kodexa-7.4.416807352183.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
49
+ kodexa-7.4.416807352183.dist-info/METADATA,sha256=Y4Og75pnoAvg5VHhnN8RAmoTn-MHEchlFijCD_WT-dc,2916
50
+ kodexa-7.4.416807352183.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
51
+ kodexa-7.4.416807352183.dist-info/RECORD,,