kodexa 6.2.25187940582__tar.gz → 6.2.25191410465__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-6.2.25187940582 → kodexa-6.2.25191410465}/PKG-INFO +1 -1
  2. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/platform/client.py +17 -62
  3. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/platform/kodexa.py +0 -51
  4. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/pyproject.toml +1 -1
  5. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/setup.py +1 -1
  6. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/LICENSE +0 -0
  7. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/README.md +0 -0
  8. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/__init__.py +0 -0
  9. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/assistant/__init__.py +0 -0
  10. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/assistant/assistant.py +0 -0
  11. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/connectors/__init__.py +0 -0
  12. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/connectors/connectors.py +0 -0
  13. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/model/__init__.py +0 -0
  14. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/model/base.py +0 -0
  15. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/model/model.py +0 -0
  16. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/model/objects.py +0 -0
  17. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/model/persistence.py +0 -0
  18. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/pipeline/__init__.py +0 -0
  19. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/pipeline/pipeline.py +0 -0
  20. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/platform/__init__.py +0 -0
  21. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/selectors/__init__.py +0 -0
  22. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/selectors/ast.py +0 -0
  23. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/selectors/core.py +0 -0
  24. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/selectors/lexrules.py +0 -0
  25. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/selectors/lextab.py +0 -0
  26. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/selectors/lextab.pyi +0 -0
  27. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/selectors/parserules.py +0 -0
  28. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/selectors/parserules.pyi +0 -0
  29. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/selectors/parsetab.py +0 -0
  30. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/selectors/parsetab.pyi +0 -0
  31. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/spatial/__init__.py +0 -0
  32. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/spatial/azure_models.py +0 -0
  33. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/spatial/bbox_common.py +0 -0
  34. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/spatial/table_form_common.py +0 -0
  35. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/steps/__init__.py +0 -0
  36. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/steps/common.py +0 -0
  37. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/testing/__init__.py +0 -0
  38. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/testing/test_components.py +0 -0
  39. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/testing/test_utils.py +0 -0
  40. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/training/__init__.py +0 -0
  41. {kodexa-6.2.25187940582 → kodexa-6.2.25191410465}/kodexa/training/train_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 6.2.25187940582
3
+ Version: 6.2.25191410465
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -28,10 +28,10 @@ from kodexa.model.objects import PageStore, PageTaxonomy, PageProject, PageOrgan
28
28
  PlatformOverview, DocumentFamily, DocumentContentMetadata, ModelContentMetadata, ExtensionPack, Pipeline, \
29
29
  AssistantDefinition, Action, ModelRuntime, CredentialDefinition, Execution, PageAssistantDefinition, \
30
30
  PageCredentialDefinition, \
31
- PageProjectTemplate, PageUser, User, FeatureSet, ContentObject, Taxon, SlugBasedMetadata, DataObject, \
31
+ PageProjectTemplate, PageUser, User, ContentObject, Taxon, SlugBasedMetadata, DataObject, \
32
32
  PageDataObject, Assistant, ProjectTemplate, PageExtensionPack, DeploymentOptions, PageMembership, Membership, \
33
33
  PageDocumentFamily, ProjectResourcesUpdate, DataAttribute, PageNote, PageDataForm, DataForm, Store, PageExecution, \
34
- Dashboard, PageAction, PagePipeline, DocumentStatus, ModelTraining, PageModelTraining, ContentException, Option, \
34
+ Dashboard, PageAction, PagePipeline, DocumentStatus, ModelTraining, PageModelTraining, ContentException, \
35
35
  CustomEvent, ProjectTag, PageDataException, DataException, ReprocessRequest, PageWorkspace, Workspace, PageChannel, \
36
36
  PageMessage, Message, Channel, PageDashboard
37
37
 
@@ -49,60 +49,6 @@ class Notifier:
49
49
  print("Done")
50
50
 
51
51
 
52
- # Define the columns that we want for different component types when we
53
- # are printing the listing of them
54
-
55
- DEFAULT_COLUMNS = {
56
- 'extensionPacks': [
57
- 'ref',
58
- 'name',
59
- 'description',
60
- 'type',
61
- 'status'
62
- ],
63
- 'projects': [
64
- 'id',
65
- 'organization.name',
66
- 'name',
67
- 'description'
68
- ],
69
- 'assistants': [
70
- 'ref',
71
- 'name',
72
- 'description',
73
- 'template'
74
- ],
75
- 'executions': [
76
- 'id',
77
- 'startDate',
78
- 'endDate',
79
- 'status',
80
- 'assistant.name',
81
- 'documentFamily.path'
82
- ],
83
- 'memberships': [
84
- 'organization.slug',
85
- 'organization.name'
86
- ],
87
-
88
- 'stores': [
89
- 'ref',
90
- 'name',
91
- 'description',
92
- 'storeType',
93
- 'storePurpose',
94
- 'template'
95
- ],
96
- 'default': [
97
- 'ref',
98
- 'name',
99
- 'description',
100
- 'type',
101
- 'template'
102
- ]
103
- }
104
-
105
-
106
52
  #
107
53
  # Declare all the endpoints that we will have
108
54
  #
@@ -791,6 +737,7 @@ class ComponentInstanceEndpoint(ClientEndpoint, SlugBasedMetadata):
791
737
  raise Exception("Can't create as it already exists")
792
738
  url = f"/api/{self.get_type()}/{self.org_slug}"
793
739
  self.client.post(url, self.to_dict())
740
+ return self
794
741
 
795
742
  def update(self):
796
743
  """Update the component instance"""
@@ -799,6 +746,7 @@ class ComponentInstanceEndpoint(ClientEndpoint, SlugBasedMetadata):
799
746
  if not exists:
800
747
  raise Exception("Can't update as it doesn't exist?")
801
748
  self.client.put(url, self.to_dict())
749
+ return self
802
750
 
803
751
  def delete(self):
804
752
  """Delete the component instance"""
@@ -1005,20 +953,27 @@ class ProjectModelStoresEndpoint(ProjectResourceEndpoint):
1005
953
  return ModelStoreEndpoint
1006
954
 
1007
955
 
1008
- class ChannelEndpoint(EntityEndpoint, Channel):
1009
- """Represents a channel endpoint"""
956
+ class MessageEndpoint(EntityEndpoint, Message):
957
+ """Represents a message endpoint"""
1010
958
 
1011
959
  def get_type(self) -> str:
1012
960
  """Get the type of the endpoint"""
1013
- return "channels"
961
+ return "messages"
1014
962
 
1015
963
 
1016
- class MessageEndpoint(EntityEndpoint, Message):
1017
- """Represents a message endpoint"""
964
+ class ChannelEndpoint(EntityEndpoint, Channel):
965
+ """Represents a channel endpoint"""
1018
966
 
1019
967
  def get_type(self) -> str:
1020
968
  """Get the type of the endpoint"""
1021
- return "messages"
969
+ return "channels"
970
+
971
+ def send_text_message(self, content: str) -> MessageEndpoint:
972
+ new_message = MessageEndpoint().set_client(self.client)
973
+ new_message.channel = self
974
+ new_message.content = content
975
+ new_message.type = "TEXT"
976
+ return new_message.create()
1022
977
 
1023
978
 
1024
979
  class WorkspaceEndpoint(EntityEndpoint, Workspace):
@@ -74,57 +74,6 @@ def save_config(config_obj):
74
74
  with open(path, 'w') as outfile:
75
75
  json.dump(config_obj, outfile)
76
76
 
77
-
78
- DEFAULT_COLUMNS = {
79
- 'extensionPacks': [
80
- 'ref',
81
- 'name',
82
- 'description',
83
- 'type',
84
- 'status'
85
- ],
86
- 'projects': [
87
- 'id',
88
- 'organization.name',
89
- 'name',
90
- 'description'
91
- ],
92
- 'assistants': [
93
- 'ref',
94
- 'name',
95
- 'description',
96
- 'template'
97
- ],
98
- 'executions': [
99
- 'id',
100
- 'startDate',
101
- 'endDate',
102
- 'status',
103
- 'assistant.name',
104
- 'documentFamily.path'
105
- ],
106
- 'memberships': [
107
- 'organization.slug',
108
- 'organization.name'
109
- ],
110
-
111
- 'stores': [
112
- 'ref',
113
- 'name',
114
- 'description',
115
- 'storeType',
116
- 'storePurpose',
117
- 'template'
118
- ],
119
- 'default': [
120
- 'ref',
121
- 'name',
122
- 'description',
123
- 'type',
124
- 'template'
125
- ]
126
- }
127
-
128
77
  OBJECT_TYPES = {
129
78
  "extensionPacks": {
130
79
  "name": "extension pack",
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kodexa"
3
- version = "6.2.25187940582"
3
+ version = "6.2.25191410465"
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"
@@ -37,7 +37,7 @@ install_requires = \
37
37
 
38
38
  setup_kwargs = {
39
39
  'name': 'kodexa',
40
- 'version': '6.2.25187940582',
40
+ 'version': '6.2.25191410465',
41
41
  'description': 'Python SDK for the Kodexa Platform',
42
42
  'long_description': '# Kodexa\n\n[![Build and Package with Poetry](https://github.com/kodexa-ai/kodexa/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/kodexa-ai/kodexa/actions/workflows/main.yml)\n\n![img.png](https://docs.kodexa.com/img.png)\n\nKodexa is a platform for building intelligent document processing pipelines. It is a set of tools and services that\nallow you to build a pipeline that can take a document, extract the content, and then process it to extract the\ninformation you need.\n\nIt is built on a set of core principles:\n\n* **Document Centric** - Kodexa is built around the idea of a document. A document is a collection of content\n nodes that are connected together. This is a powerful model that allows you to build pipelines that can\n extract content from a wide range of sources.\n\n* **Pipeline Oriented** - Kodexa is built around the idea of a pipeline. A pipeline is a series of steps that\n can be executed on a document. This allows you to build a pipeline that can extract content from a wide range\n of sources.\n\n* **Extensible** - Kodexa is built around the idea of a pipeline. A pipeline is a series of steps that can be executed\n on a document. This allows you to build a pipeline that can extract content from a wide range of sources.\n\n* **Label Driven** - Kodexa focuses on the idea of labels. Labels are a way to identify content within a document\n and then use that content to drive the processing of the document.\n\n# Python SDK\n\nThis repository contains the Python SDK for Kodexa. The SDK is the primary way to interact with Kodexa. It allows you to\ndefine actions, models, and pipelines that can be executed on Kodexa. It also includes a complete SDK client for\nworking with a Kodexa platform instance.\n\n## Documentation & Examples\n\nDocumentation is available at the [Kodexa Documentation Portal](https://docs.kodexa.com)\n\n## Current Development\n\n[//]: # (Replace it with the diagrams and descriptions for build releases)\n**BUILD VERSION FLOW**\n![build-version-flow.png](docs%2Fbuild-version-flow.png)\nBuild version will differ based on the branches that are published to pypi.\n\n**GITHUB PROCESS**\n![github-process.png](docs%2Fgithub-process.png)\nChanges that contain bugs, features, and fixes should first be pushed to the test branch. \nOnce these changes are thoroughly tested, they can be submitted as a pull request to the main branch. The pull request should be reviewed and approved by an appropriate person before the changes can be merged.\n\n## Set-up\n\nWe use poetry to manage our dependencies, so you can install them with:\n\n poetry install\n\nYou can then run the tests with:\n\n poetry run pytest\n\n# Contributing\n\nWe welcome contributions to the Kodexa platform. Please see our [contributing guide](CONTRIBUTING.md) for more details.\n\n# License\n\nApache 2.0\n\n',
43
43
  'author': 'Austin Redenbaugh',