kodexa 7.0.8490893071__py3-none-any.whl → 7.0.8590158740__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
@@ -2493,6 +2493,14 @@ class TaxonConditionalFormat(BaseModel):
2493
2493
  properties: Optional[Dict[str, Any]] = Field(default_factory=dict)
2494
2494
 
2495
2495
 
2496
+ class TaxonCardinality(Enum):
2497
+
2498
+ once_per_document = "ONCE_PER_DOCUMENT"
2499
+ multiple_per_document = "MULTIPLE_PER_DOCUMENT"
2500
+ once_per_segment = "ONCE_PER_SEGMENT"
2501
+ multiple_per_segment = "MULTIPLE_PER_SEGMENT"
2502
+
2503
+
2496
2504
  class Taxon(BaseModel):
2497
2505
  """
2498
2506
 
@@ -2645,6 +2653,8 @@ class Taxon(BaseModel):
2645
2653
  description="A list of synonyms of the taxon values, used to understand the taxon",
2646
2654
  )
2647
2655
 
2656
+ cardinality: Optional[TaxonCardinality] = None
2657
+
2648
2658
  conditional_formats: Optional[List[TaxonConditionalFormat]] = Field(None, alias="conditionalFormats")
2649
2659
 
2650
2660
  def update_path(self, parent_path=None):
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.8490893071
3
+ Version: 7.0.8590158740
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=dlsfc1useJEdwUZDz0hw9LmO1DJWCVhfSkuFyOvCPC0,174430
9
+ kodexa/model/objects.py,sha256=Xfe5ilFoxD9hJ68G-4eVj-qXxL_ywDvZOB_qYF0vVF8,174703
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.8490893071.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
39
- kodexa-7.0.8490893071.dist-info/METADATA,sha256=iY0PHRYsVw1puBML0Db2r1JD_Xm-6Im5yZWs_5z3YNw,3493
40
- kodexa-7.0.8490893071.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
41
- kodexa-7.0.8490893071.dist-info/RECORD,,
38
+ kodexa-7.0.8590158740.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
39
+ kodexa-7.0.8590158740.dist-info/METADATA,sha256=H-L3Yk8Ti48gUJBAr5Pfqv6fUfdkPQhmz6sklS56gc4,3493
40
+ kodexa-7.0.8590158740.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
41
+ kodexa-7.0.8590158740.dist-info/RECORD,,