kodexa 7.4.412795515848__py3-none-any.whl → 7.4.412833907659__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
kodexa/model/objects.py CHANGED
@@ -822,7 +822,7 @@ class SelectionOption(BaseModel):
822
822
  label: Optional[str] = None
823
823
  id: Optional[str] = None
824
824
  description: Optional[str] = None
825
- lexical_relations: Optional[List[LexicalRelation]] = Field([], alias="lexicalRelations")
825
+ lexical_relations: Optional[List[LexicalRelation]] = Field(default_factory=list, alias="lexicalRelations")
826
826
 
827
827
 
828
828
  class SlugBasedMetadata1(BaseModel):
@@ -2645,6 +2645,8 @@ class Taxon(BaseModel):
2645
2645
  expression: Optional[str] = None
2646
2646
  enable_fallback_expression: Optional[bool] = Field(None, alias="enableFallbackExpression")
2647
2647
  fallback_expression: Optional[str] = Field(None, alias="fallbackExpression")
2648
+ enable_serialization_expression: Optional[bool] = Field(None, alias="enableSerializationExpression")
2649
+ serialization_expression: Optional[str] = Field(None, alias="serializationExpression")
2648
2650
  nullable: Optional[bool] = None
2649
2651
  null_value: Optional[str] = Field(None, alias="nullValue")
2650
2652
  denormalize_to_children: Optional[bool] = Field(False, alias="denormalizeToChildren")
kodexa/platform/client.py CHANGED
@@ -4577,7 +4577,7 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
4577
4577
 
4578
4578
  def unlock(self):
4579
4579
  """
4580
- Lock the document family.
4580
+ Unlock the document family.
4581
4581
  """
4582
4582
  url = f"/api/stores/{self.store_ref.replace(':', '/')}/families/{self.id}/unlock"
4583
4583
  response = self.client.put(url)
@@ -4680,6 +4680,7 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
4680
4680
  mixin: Optional[str] = None,
4681
4681
  label: Optional[str] = None,
4682
4682
  timeout: int = 60,
4683
+ polling_delay_in_seconds: int = 5,
4683
4684
  ) -> "DocumentFamilyEndpoint":
4684
4685
  """
4685
4686
  Wait for the document family to be ready.
@@ -4688,6 +4689,7 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
4688
4689
  mixin (Optional[str]): The mixin. Defaults to None.
4689
4690
  label (Optional[str]): The label. Defaults to None.
4690
4691
  timeout (int): The timeout. Defaults to 60.
4692
+ polling_delay_in_seconds (int): The polling delay in seconds. Defaults to 5. 5 is the minimum value.
4691
4693
 
4692
4694
  Returns:
4693
4695
  DocumentFamilyEndpoint: The updated document family endpoint.
@@ -4696,6 +4698,9 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
4696
4698
  "Waiting for mixin and/or label to be available on document family %s",
4697
4699
  self.id,
4698
4700
  )
4701
+ if polling_delay_in_seconds < 5:
4702
+ polling_delay_in_seconds = 5
4703
+
4699
4704
  start = time.time()
4700
4705
  while time.time() - start < timeout:
4701
4706
  url = f"/api/stores/{self.store_ref.replace(':', '/')}/families/{self.id}"
@@ -4709,7 +4714,7 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
4709
4714
  ):
4710
4715
  return updated_document_family
4711
4716
 
4712
- time.sleep(5)
4717
+ time.sleep(polling_delay_in_seconds)
4713
4718
 
4714
4719
  raise Exception(f"Not available on document family {self.id}")
4715
4720
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.4.412795515848
3
+ Version: 7.4.412833907659
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=qh1YUew3UgtjU0t4fAwSXYYuzQjXTOZWZkafyFp_w8M,118801
16
- kodexa/model/objects.py,sha256=X1jCMcVKve2JNAVOHoeRp0DkW813gE79V5mm8CQs-Rk,184860
16
+ kodexa/model/objects.py,sha256=D90kTi8RZSnWOATchu0DmGLd3CD6Eg8At8c_HjqpCX0,185074
17
17
  kodexa/model/persistence.py,sha256=HX_uIkGs8bqHwqyE5wB2qMlGIG5ZnjuTu7xMdvKhEzA,72033
18
18
  kodexa/model/utils.py,sha256=6R-3rFiW9irBwj0Mq5yhp7EDXkNUFaeFhr3bWmnlW4g,2961
19
19
  kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
20
20
  kodexa/pipeline/pipeline.py,sha256=Z4O6UwoISeP_HMlxm6l6kbcvFBDw3Glm7lT4cUibri4,25461
21
21
  kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
22
- kodexa/platform/client.py,sha256=z3ka3ej9M6bVaXfOvo66PP1WcIs22gZpTOPCrGEc56I,228573
22
+ kodexa/platform/client.py,sha256=UdMLp_1fcWa8bJc30AD8kwLyqM6zxWLQp57cZKYZV9Q,228861
23
23
  kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
24
24
  kodexa/platform/kodexa.py,sha256=tPXHO500q3S75GhKGDcaxO51Viq2PNlHmAzpBZlahgo,34857
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.412795515848.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
48
- kodexa-7.4.412795515848.dist-info/METADATA,sha256=rUUpWzKtS_A_BUrwIkBVKRCTQYpbExdVAtnPaBCpIwE,3528
49
- kodexa-7.4.412795515848.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
50
- kodexa-7.4.412795515848.dist-info/RECORD,,
47
+ kodexa-7.4.412833907659.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
48
+ kodexa-7.4.412833907659.dist-info/METADATA,sha256=eMueirzULKg5-Co0jpJxcl9UC9t9oINr3fyEDo51n3Y,3528
49
+ kodexa-7.4.412833907659.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
50
+ kodexa-7.4.412833907659.dist-info/RECORD,,