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

Sign up to get free protection for your applications and to get access to all the features.
kodexa/platform/client.py CHANGED
@@ -4616,6 +4616,35 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
4616
4616
  url = f"/api/documentFamilies/{self.id}/externalData"
4617
4617
  response = self.client.put(url, body=external_data)
4618
4618
  return response.json()
4619
+
4620
+ def get_json(
4621
+ self,
4622
+ project_id: str,
4623
+ friendly_names=False,
4624
+ ) -> str:
4625
+ """Get the JSON export for the document family
4626
+
4627
+ Args:
4628
+ project_id str: The project ID
4629
+ friendly_names (bool): Whether to use friendly names. Defaults to False
4630
+
4631
+ Returns:
4632
+ str: The JSON
4633
+ """
4634
+ if project_id is None:
4635
+ raise Exception(
4636
+ f"Project ID is required"
4637
+ )
4638
+
4639
+ url = f"/api/stores/{self.store_ref.replace(':', '/')}/families/{self.id}/dataObjects"
4640
+ params = {
4641
+ "format": "json",
4642
+ "friendlyNames": friendly_names,
4643
+ "projectId": project_id,
4644
+ }
4645
+
4646
+ response = self.client.get(url, params=params)
4647
+ return response.text
4619
4648
 
4620
4649
  def export(self) -> bytes:
4621
4650
  """
@@ -5138,7 +5167,7 @@ class DataStoreEndpoint(StoreEndpoint):
5138
5167
 
5139
5168
  response = self.client.get(url, params=params)
5140
5169
  return response.text
5141
-
5170
+
5142
5171
  def get_taxonomies(self) -> List[Taxonomy]:
5143
5172
  """Get the taxonomies of the store
5144
5173
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.4.412538433490
3
+ Version: 7.4.412795515848
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -19,7 +19,7 @@ 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=Fvibf_arAlujA5jJQYKMnBi_KKpdUE7sdLQBcFLFliI,227736
22
+ kodexa/platform/client.py,sha256=z3ka3ej9M6bVaXfOvo66PP1WcIs22gZpTOPCrGEc56I,228573
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.412538433490.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
48
- kodexa-7.4.412538433490.dist-info/METADATA,sha256=wkNEgKynrDMzrfIbgRjIa5t1L8cCZBN473-s_EopnnY,3528
49
- kodexa-7.4.412538433490.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
50
- kodexa-7.4.412538433490.dist-info/RECORD,,
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,,