kodexa 7.0.8458473320__py3-none-any.whl → 7.0.8551368104__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
@@ -2479,6 +2479,20 @@ class ProjectAssistant(BaseModel):
2479
2479
  assistant_role: Optional[str] = Field(None, alias="assistantRole")
2480
2480
 
2481
2481
 
2482
+ class TaxonConditionalFormat(BaseModel):
2483
+
2484
+ model_config = ConfigDict(
2485
+ populate_by_name=True,
2486
+ use_enum_values=True,
2487
+ arbitrary_types_allowed=True,
2488
+ protected_namespaces=("model_config",),
2489
+ )
2490
+
2491
+ type: Optional[str] = None
2492
+ condition: Optional[str] = None
2493
+ properties: Optional[Dict[str, Any]] = Field(default_factory=dict)
2494
+
2495
+
2482
2496
  class Taxon(BaseModel):
2483
2497
  """
2484
2498
 
@@ -2631,6 +2645,8 @@ class Taxon(BaseModel):
2631
2645
  description="A list of synonyms of the taxon values, used to understand the taxon",
2632
2646
  )
2633
2647
 
2648
+ conditional_formats: Optional[List[TaxonConditionalFormat]] = Field(None, alias="conditionalFormats")
2649
+
2634
2650
  def update_path(self, parent_path=None):
2635
2651
  if parent_path is None:
2636
2652
  parent_path = ""
kodexa/platform/kodexa.py CHANGED
@@ -333,7 +333,10 @@ class KodexaPlatform:
333
333
  if r.status_code == 401:
334
334
  raise Exception("Your access token was not authorized")
335
335
  if r.status_code == 200:
336
- return r.json()
336
+ try:
337
+ return r.json()
338
+ except JSONDecodeError:
339
+ raise Exception("Unable to decode server information, check your access token")
337
340
 
338
341
  logger.warning(r.text)
339
342
  raise Exception(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.8458473320
3
+ Version: 7.0.8551368104
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -6,14 +6,14 @@ kodexa/connectors/connectors.py,sha256=FpUZDkSyHld2b9eYRuVOWzaFtuGoaRuPXXicJB7TH
6
6
  kodexa/model/__init__.py,sha256=rtLXYJBxB-rnukhslN9rlqoB3--1H3253HyHGbD_Gc8,796
7
7
  kodexa/model/base.py,sha256=CaZK8nMhT1LdCpt4aLhebJGcorjq9qRID1FjnXnP14M,521
8
8
  kodexa/model/model.py,sha256=vVdz2W1LVXIZEtXFjdIZ3L4wxcGiQB--dQRUkN2VsRw,115491
9
- kodexa/model/objects.py,sha256=RI8wEUPRFPnH-m4ag1Lh13x_XUkT1UsPyhtTQUJZ3fs,173956
9
+ kodexa/model/objects.py,sha256=dlsfc1useJEdwUZDz0hw9LmO1DJWCVhfSkuFyOvCPC0,174430
10
10
  kodexa/model/persistence.py,sha256=XiVGKf6PnqKscO9KzZegED-xvuphrFc9IZ7rWCiUa9I,61841
11
11
  kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
12
12
  kodexa/pipeline/pipeline.py,sha256=ZYpJAWcwV4YRK589DUhU0vXGQlkNSj4J2TsGbYqTLjo,25221
13
13
  kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
14
14
  kodexa/platform/client.py,sha256=EHk0L9mYAJXRdMvwvc-fm4IwPqnNQKUisMQqgyTDzFE,213246
15
15
  kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
16
- kodexa/platform/kodexa.py,sha256=oUY4aiKDIs_xdv41RN_EiQBqlQ7e7Mpq1vuu5dRcqU0,33780
16
+ kodexa/platform/kodexa.py,sha256=1z4Wd7QxfFMbBv6U27_3IpoQitvxuhPX-vPq1_8jIto,33933
17
17
  kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
18
18
  kodexa/selectors/ast.py,sha256=gG-1st841IntgBE5V7p3Cq9azaym2jV5lB_AIywQTCI,13269
19
19
  kodexa/selectors/core.py,sha256=kkt02DN20gXeaDGoGubPPeeTV7rCr4sxTyELrI0l1YU,3691
@@ -35,7 +35,7 @@ kodexa/testing/test_components.py,sha256=g5lP-GY0nTHuH5cIEw45vIejEeBaWkPKQGHL36j
35
35
  kodexa/testing/test_utils.py,sha256=DrLCkHxdb6AbZ-X3WmTMbQmnVIm55VEBL8MjtUK9POs,14021
36
36
  kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
37
37
  kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
- kodexa-7.0.8458473320.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
39
- kodexa-7.0.8458473320.dist-info/METADATA,sha256=42a6wT3o0-TjCsc_02LQaCWy5fNBSGl58TX-4xHhQbM,3493
40
- kodexa-7.0.8458473320.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
41
- kodexa-7.0.8458473320.dist-info/RECORD,,
38
+ kodexa-7.0.8551368104.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
39
+ kodexa-7.0.8551368104.dist-info/METADATA,sha256=QhULdqLcsxZlxqLyfmJ1OfVs_pADiBRxp_sF-b-6Fjw,3493
40
+ kodexa-7.0.8551368104.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
41
+ kodexa-7.0.8551368104.dist-info/RECORD,,