kodexa 7.4.413775878390__py3-none-any.whl → 7.4.413824212111__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/model/objects.py CHANGED
@@ -6217,7 +6217,7 @@ class TaskEvent(BaseModel):
6217
6217
  )
6218
6218
  type: Optional[str] = "task"
6219
6219
  task: Optional[Task] = None
6220
- document_families: List[DocumentFamily] = Field(default_factory=list, alias="documentFamilies")
6220
+ document_families: Optional[List[DocumentFamily]] = Field(default_factory=list, alias="documentFamilies")
6221
6221
 
6222
6222
 
6223
6223
  class DocumentFamilyEvent(BaseModel):
kodexa/platform/client.py CHANGED
@@ -5775,7 +5775,7 @@ class DocumentStoreEndpoint(StoreEndpoint):
5775
5775
  document_family_response.json()
5776
5776
  ).set_client(self.client)
5777
5777
 
5778
- def stream_query(self, query: str = "*", sort=None, limit=None):
5778
+ def stream_query(self, query: str = "*", sort=None, limit=None, page_size=5):
5779
5779
  """
5780
5780
  Stream the query for the document family.
5781
5781
 
@@ -5783,11 +5783,11 @@ class DocumentStoreEndpoint(StoreEndpoint):
5783
5783
  query (str, optional): The query to run. Defaults to "*".
5784
5784
  sort (str, optional): Sorting order of the query. Defaults to None.
5785
5785
  limit (int, optional): The maximum number of items to return. Defaults to None.
5786
+ page_size (int, optional): Pagination size for the streaming
5786
5787
 
5787
5788
  Returns:
5788
5789
  generator: A generator of the document families.
5789
5790
  """
5790
- page_size = 5
5791
5791
  page = 1
5792
5792
  number_of_items = 0
5793
5793
 
@@ -5841,7 +5841,7 @@ class DocumentStoreEndpoint(StoreEndpoint):
5841
5841
  get_response.json()
5842
5842
  ).set_client(self.client)
5843
5843
 
5844
- def stream_filter(self, filter_string: str = "", sort=None, limit=None):
5844
+ def stream_filter(self, filter_string: str = "", sort=None, limit=None, page_size=5):
5845
5845
  """
5846
5846
  Stream the filter for the document family.
5847
5847
 
@@ -5849,11 +5849,11 @@ class DocumentStoreEndpoint(StoreEndpoint):
5849
5849
  filter_string (str, optional): The filter string to use. Defaults to "".
5850
5850
  sort (str, optional): Sorting order of the query. Defaults to None.
5851
5851
  limit (int, optional): The maximum number of items to return. Defaults to None.
5852
+ page_size (int, optional): The pagination size for the streaming
5852
5853
 
5853
5854
  Returns:
5854
5855
  generator: A generator of the document families.
5855
5856
  """
5856
- page_size = 5
5857
5857
  page = 1
5858
5858
  count = 0
5859
5859
  if not sort:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.4.413775878390
3
+ Version: 7.4.413824212111
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -13,13 +13,13 @@ kodexa/model/entities/product.py,sha256=StUhTEeLXmc05cj6XnZppQfeJsqCPbX1jdhsysHH
13
13
  kodexa/model/entities/product_group.py,sha256=540fRGyUf34h1BzAN1DiWu6rGgvaj3xDFhZ2k-RvSFY,3617
14
14
  kodexa/model/entities/product_subscription.py,sha256=UcmWR-qgLfdV7VCtJNwzgkanoS8nBSL6ngVuxQUK1M8,3810
15
15
  kodexa/model/model.py,sha256=q3zEm6pPOB-xPCKbOxmTMqLALzmQr2Ppam8knApoSEE,119645
16
- kodexa/model/objects.py,sha256=L0xBQ-WYI-D0jepBND5C87rphD5t9Gt5LqwVVrqJs5s,198821
16
+ kodexa/model/objects.py,sha256=TuwX89ERCa34BUbO2iMln5GHxGdOXDHH737zjyO-LTY,198831
17
17
  kodexa/model/persistence.py,sha256=jUgQ8xwsAFIoZ_bEynxCDEWhUII42eN0e0Mum0dkQPg,72043
18
18
  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=TzcpWtkkD_h7Jf4O4eRFgSZL7GC5NaA8TgCiubhlfaI,234255
22
+ kodexa/platform/client.py,sha256=c1okoTPob-TgRhH3qve4WumMwKAFMfzOxuOIrjg-wM4,234387
23
23
  kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
24
24
  kodexa/platform/kodexa.py,sha256=MUkJx0g-92R0JxoOTUubFqDP4YriXreCSLy6s46XPmo,35102
25
25
  kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
@@ -44,7 +44,7 @@ kodexa/testing/test_utils.py,sha256=v44p__gE7ia67W7WeHN2HBFCWSCUrCZt7G4xBNCmwf8,
44
44
  kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
45
45
  kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
46
  kodexa/utils/__init__.py,sha256=Pnim1o9_db5YEnNvDTxpM7HG-qTlL6n8JwFwOafU9wo,5928
47
- kodexa-7.4.413775878390.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
48
- kodexa-7.4.413775878390.dist-info/METADATA,sha256=G4jz9k2c23QnXvKQh4bzImXc61aBqVxeGX3AGXAz_vk,2813
49
- kodexa-7.4.413775878390.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
50
- kodexa-7.4.413775878390.dist-info/RECORD,,
47
+ kodexa-7.4.413824212111.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
48
+ kodexa-7.4.413824212111.dist-info/METADATA,sha256=AZyKBXVWNrySrSEatVSkAFq_z4raju8Wu8TSGTFGr2A,2813
49
+ kodexa-7.4.413824212111.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
50
+ kodexa-7.4.413824212111.dist-info/RECORD,,