kodexa 6.3.37304149165__tar.gz → 6.3.37314935435__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.
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/PKG-INFO +1 -1
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/platform/client.py +23 -1
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/pyproject.toml +1 -1
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/LICENSE +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/README.md +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/__init__.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/assistant/__init__.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/assistant/assistant.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/connectors/__init__.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/connectors/connectors.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/model/__init__.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/model/base.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/model/model.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/model/objects.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/model/persistence.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/pipeline/__init__.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/pipeline/pipeline.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/platform/__init__.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/platform/kodexa.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/selectors/__init__.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/selectors/ast.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/selectors/core.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/selectors/lexrules.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/selectors/lextab.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/selectors/lextab.pyi +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/selectors/parserules.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/selectors/parserules.pyi +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/selectors/parsetab.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/selectors/parsetab.pyi +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/spatial/__init__.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/spatial/azure_models.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/spatial/bbox_common.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/spatial/table_form_common.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/steps/__init__.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/steps/common.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/testing/__init__.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/testing/test_components.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/testing/test_utils.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/training/__init__.py +0 -0
- {kodexa-6.3.37304149165 → kodexa-6.3.37314935435}/kodexa/training/train_utils.py +0 -0
@@ -619,7 +619,10 @@ class EntityEndpoint(ClientEndpoint):
|
|
619
619
|
raise Exception("Can't create as it already exists")
|
620
620
|
|
621
621
|
url = f"/api/{self.get_type()}"
|
622
|
-
self.client.post(url, self.model_dump(mode="json", by_alias=True))
|
622
|
+
response = self.client.post(url, self.model_dump(mode="json", by_alias=True))
|
623
|
+
|
624
|
+
# We need to update the id
|
625
|
+
self.id = response.json()["id"]
|
623
626
|
|
624
627
|
def update(self):
|
625
628
|
"""
|
@@ -2175,6 +2178,25 @@ class ChannelEndpoint(EntityEndpoint, Channel):
|
|
2175
2178
|
new_message.message_type = "TEXT"
|
2176
2179
|
return new_message.create()
|
2177
2180
|
|
2181
|
+
def send_message(self, message: Message) -> MessageEndpoint:
|
2182
|
+
"""Send a message.
|
2183
|
+
|
2184
|
+
This method is used to send a message through the channel endpoint. It sets the client, channel,
|
2185
|
+
and message type, and then creates the message.
|
2186
|
+
|
2187
|
+
Args:
|
2188
|
+
message (Message): The message to be sent.
|
2189
|
+
"""
|
2190
|
+
|
2191
|
+
# We need to convert the Message into a MessageEndpoint
|
2192
|
+
message_endpoint = MessageEndpoint().set_client(self.client)
|
2193
|
+
message_endpoint.channel = self.detach()
|
2194
|
+
message_endpoint.message_type = message.message_type
|
2195
|
+
message_endpoint.content = message.content
|
2196
|
+
message_endpoint.message_blocks = message.message_blocks
|
2197
|
+
message_endpoint.message_feedback = message.message_feedback
|
2198
|
+
return message_endpoint.create()
|
2199
|
+
|
2178
2200
|
|
2179
2201
|
class WorkspaceEndpoint(EntityEndpoint, Workspace):
|
2180
2202
|
"""Represents a workspace endpoint"""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "kodexa"
|
3
|
-
version = "6.3.
|
3
|
+
version = "6.3.37314935435"
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|