kodexa 7.0.7892372174__tar.gz → 7.0.7898633185__tar.gz

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.
Files changed (41) hide show
  1. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/PKG-INFO +1 -1
  2. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/platform/kodexa.py +44 -16
  3. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/pyproject.toml +1 -1
  4. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/LICENSE +0 -0
  5. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/README.md +0 -0
  6. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/__init__.py +0 -0
  7. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/assistant/__init__.py +0 -0
  8. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/assistant/assistant.py +0 -0
  9. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/connectors/__init__.py +0 -0
  10. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/connectors/connectors.py +0 -0
  11. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/model/__init__.py +0 -0
  12. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/model/base.py +0 -0
  13. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/model/model.py +0 -0
  14. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/model/objects.py +0 -0
  15. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/model/persistence.py +0 -0
  16. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/pipeline/__init__.py +0 -0
  17. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/pipeline/pipeline.py +0 -0
  18. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/platform/__init__.py +0 -0
  19. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/platform/client.py +0 -0
  20. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/platform/interaction.py +0 -0
  21. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/selectors/__init__.py +0 -0
  22. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/selectors/ast.py +0 -0
  23. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/selectors/core.py +0 -0
  24. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/selectors/lexrules.py +0 -0
  25. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/selectors/lextab.py +0 -0
  26. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/selectors/lextab.pyi +0 -0
  27. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/selectors/parserules.py +0 -0
  28. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/selectors/parserules.pyi +0 -0
  29. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/selectors/parsetab.py +0 -0
  30. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/selectors/parsetab.pyi +0 -0
  31. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/spatial/__init__.py +0 -0
  32. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/spatial/azure_models.py +0 -0
  33. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/spatial/bbox_common.py +0 -0
  34. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/spatial/table_form_common.py +0 -0
  35. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/steps/__init__.py +0 -0
  36. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/steps/common.py +0 -0
  37. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/testing/__init__.py +0 -0
  38. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/testing/test_components.py +0 -0
  39. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/testing/test_utils.py +0 -0
  40. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/training/__init__.py +0 -0
  41. {kodexa-7.0.7892372174 → kodexa-7.0.7898633185}/kodexa/training/train_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.7892372174
3
+ Version: 7.0.7898633185
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -213,6 +213,34 @@ class KodexaPlatform:
213
213
 
214
214
  return [org_slug, slug, version]
215
215
 
216
+ @classmethod
217
+ def configure(cls, kodexa_url, access_token, profile=None, insecure=False):
218
+ """
219
+ Configure kodexa access to platform
220
+
221
+ Args
222
+ kodexa_url (str): The URL of the Kodexa platform.
223
+ access_token (str): The access token to use.
224
+ profile (str, optional): The profile to use. Defaults to None.
225
+ insecure (bool, optional): Whether to use insecure connection. Defaults to False.
226
+ """
227
+ kodexa_config = get_config(profile)
228
+ if profile and profile in kodexa_config:
229
+ kodexa_config = get_config(profile)
230
+ kodexa_config[profile] = {
231
+ "url": kodexa_url,
232
+ "access_token": access_token,
233
+ "insecure": insecure,
234
+ }
235
+ else:
236
+ kodexa_config = {
237
+ "url": kodexa_url,
238
+ "access_token": access_token,
239
+ "insecure": insecure
240
+ }
241
+
242
+ save_config(kodexa_config)
243
+
216
244
  @classmethod
217
245
  def login(cls, kodexa_url, username, password, profile=None, insecure=False):
218
246
  """
@@ -518,13 +546,13 @@ class RemotePipeline:
518
546
  """Allow you to interact with a pipeline that has been deployed to an instance of Kodexa Platform"""
519
547
 
520
548
  def __init__(
521
- self,
522
- slug,
523
- connector,
524
- version=None,
525
- attach_source=True,
526
- parameters=None,
527
- auth=None,
549
+ self,
550
+ slug,
551
+ connector,
552
+ version=None,
553
+ attach_source=True,
554
+ parameters=None,
555
+ auth=None,
528
556
  ):
529
557
  logger.info(f"Initializing a new pipeline {slug}")
530
558
 
@@ -588,7 +616,7 @@ class RemotePipeline:
588
616
 
589
617
  @staticmethod
590
618
  def from_file(
591
- slug: str, file_path: str, unpack: bool = False, *args, **kwargs
619
+ slug: str, file_path: str, unpack: bool = False, *args, **kwargs
592
620
  ) -> RemotePipeline:
593
621
  """Creates a new pipeline using a file path as a source.
594
622
 
@@ -626,13 +654,13 @@ class RemotePipeline:
626
654
 
627
655
  @staticmethod
628
656
  def from_folder(
629
- slug: str,
630
- folder_path: str,
631
- filename_filter: str = "*",
632
- recursive: bool = False,
633
- unpack: bool = False,
634
- relative: bool = False,
635
- caller_path: str = get_caller_dir(),
657
+ slug: str,
658
+ folder_path: str,
659
+ filename_filter: str = "*",
660
+ recursive: bool = False,
661
+ unpack: bool = False,
662
+ relative: bool = False,
663
+ caller_path: str = get_caller_dir(),
636
664
  ) -> RemotePipeline:
637
665
  """Creates a pipeline that will run against a set of local files from a folder.
638
666
 
@@ -816,7 +844,7 @@ class EventHelper:
816
844
  return io.BytesIO(co_response.content)
817
845
 
818
846
  def put_content_object(
819
- self, content_object: ContentObject, content
847
+ self, content_object: ContentObject, content
820
848
  ) -> ContentObject:
821
849
  """Puts a content object to the Kodexa platform.
822
850
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kodexa"
3
- version = "7.0.07892372174"
3
+ version = "7.0.07898633185"
4
4
  description = "Python SDK for the Kodexa Platform"
5
5
  authors = ["Austin Redenbaugh <austin@kodexa.com>", "Philip Dodds <philip@kodexa.com>", "Romar Cablao <rcablao@kodexa.com>", "Amadea Paula Dodds <amadeapaula@kodexa.com>"]
6
6
  readme = "README.md"
File without changes