kodexa 7.0.10886382675__py3-none-any.whl → 7.0.10946707979__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
@@ -3946,6 +3946,18 @@ class TaxonomyEndpoint(ComponentInstanceEndpoint, Taxonomy):
3946
3946
  params={"format": "xsd"},
3947
3947
  ).text
3948
3948
 
3949
+ def to_json_schema(self) -> dict:
3950
+ """
3951
+ Convert the taxonomy to an XSD.
3952
+
3953
+ Returns:
3954
+ str: The XSD representation of the taxonomy.
3955
+ """
3956
+ return self.client.get(
3957
+ f'/api/taxonomies/{self.ref.replace(":", "/")}/export',
3958
+ params={"format": "json-schema"},
3959
+ ).json()
3960
+
3949
3961
  def get_taxon_by_path(self, path) -> Optional[Taxon]:
3950
3962
  """
3951
3963
  Get a taxon by its path.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.10886382675
3
+ Version: 7.0.10946707979
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -17,7 +17,7 @@ kodexa/model/persistence.py,sha256=w4WGS_qH1iowH8-ZMawZBZ2RFW3bNvmFy5fgSwr6VmQ,6
17
17
  kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
18
18
  kodexa/pipeline/pipeline.py,sha256=ZYpJAWcwV4YRK589DUhU0vXGQlkNSj4J2TsGbYqTLjo,25221
19
19
  kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
20
- kodexa/platform/client.py,sha256=q4wDmcCQ1wvAX_90HueLjkIEsLe0rxG3Te34P540RVo,222587
20
+ kodexa/platform/client.py,sha256=mvKyYfrtmWp5haytxWd0-eWzET4RREPaV-5LS8V9RVM,222928
21
21
  kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
22
22
  kodexa/platform/kodexa.py,sha256=RVtArtzn1TVhBf3NGC4xe-ZO-VEVDIC3RjLhR06p-uU,34033
23
23
  kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
@@ -42,7 +42,7 @@ kodexa/testing/test_utils.py,sha256=DrLCkHxdb6AbZ-X3WmTMbQmnVIm55VEBL8MjtUK9POs,
42
42
  kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
43
43
  kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
44
  kodexa/utils/__init__.py,sha256=Pnim1o9_db5YEnNvDTxpM7HG-qTlL6n8JwFwOafU9wo,5928
45
- kodexa-7.0.10886382675.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
46
- kodexa-7.0.10886382675.dist-info/METADATA,sha256=-6a-Co9HZ66D4FRenFEl2W-1NiWATjrwiBhUu9qHtt4,3529
47
- kodexa-7.0.10886382675.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
48
- kodexa-7.0.10886382675.dist-info/RECORD,,
45
+ kodexa-7.0.10946707979.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
46
+ kodexa-7.0.10946707979.dist-info/METADATA,sha256=oj0DIQf7ad1fUJLAdEmlxeEi1NioZ2H6S1LKz2M6HzY,3529
47
+ kodexa-7.0.10946707979.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
48
+ kodexa-7.0.10946707979.dist-info/RECORD,,