kodexa 7.0.10668104287__tar.gz → 7.0.10779333544__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-7.0.10668104287 → kodexa-7.0.10779333544}/PKG-INFO +1 -1
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/platform/client.py +8 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/pyproject.toml +1 -1
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/LICENSE +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/README.md +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/__init__.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/assistant/__init__.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/assistant/assistant.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/connectors/__init__.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/connectors/connectors.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/dataclasses/__init__.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/model/__init__.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/model/base.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/model/entities/__init__.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/model/entities/check_response.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/model/entities/product.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/model/entities/product_subscription.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/model/model.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/model/objects.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/model/persistence.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/pipeline/__init__.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/pipeline/pipeline.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/platform/__init__.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/platform/interaction.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/platform/kodexa.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/selectors/__init__.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/selectors/ast.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/selectors/core.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/selectors/lexrules.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/selectors/lextab.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/selectors/lextab.pyi +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/selectors/parserules.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/selectors/parserules.pyi +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/selectors/parsetab.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/selectors/parsetab.pyi +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/spatial/__init__.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/spatial/azure_models.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/spatial/bbox_common.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/spatial/table_form_common.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/steps/__init__.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/steps/common.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/testing/__init__.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/testing/test_components.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/testing/test_utils.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/training/__init__.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/training/train_utils.py +0 -0
- {kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/utils/__init__.py +0 -0
@@ -5289,6 +5289,7 @@ class DocumentStoreEndpoint(StoreEndpoint):
|
|
5289
5289
|
object_path: Optional[str] = None,
|
5290
5290
|
replace=False,
|
5291
5291
|
additional_metadata: Optional[dict] = None,
|
5292
|
+
external_data: Optional[dict] = None,
|
5292
5293
|
):
|
5293
5294
|
"""
|
5294
5295
|
Upload a file to the store.
|
@@ -5298,6 +5299,7 @@ class DocumentStoreEndpoint(StoreEndpoint):
|
|
5298
5299
|
object_path (Optional[str]): The path to the object (Default is the same the file path).
|
5299
5300
|
replace (bool): Replace the file if it already exists (Default False).
|
5300
5301
|
additional_metadata (Optional[dict]): Additional metadata to add to the file (Default None).
|
5302
|
+
external_data (Optional[dict]): External data to add to the file (Default None).
|
5301
5303
|
"""
|
5302
5304
|
if Path(file_path).is_file():
|
5303
5305
|
logger.info(f"Uploading {file_path}")
|
@@ -5307,6 +5309,7 @@ class DocumentStoreEndpoint(StoreEndpoint):
|
|
5307
5309
|
content=path_content,
|
5308
5310
|
replace=replace,
|
5309
5311
|
additional_metadata=additional_metadata,
|
5312
|
+
external_data=external_data
|
5310
5313
|
)
|
5311
5314
|
else:
|
5312
5315
|
raise Exception(f"{file_path} is not a file")
|
@@ -5317,6 +5320,7 @@ class DocumentStoreEndpoint(StoreEndpoint):
|
|
5317
5320
|
content,
|
5318
5321
|
replace=False,
|
5319
5322
|
additional_metadata: Optional[dict] = None,
|
5323
|
+
external_data: Optional[dict] = None,
|
5320
5324
|
) -> DocumentFamilyEndpoint:
|
5321
5325
|
"""
|
5322
5326
|
Put the content into the store at the given path.
|
@@ -5326,6 +5330,7 @@ class DocumentStoreEndpoint(StoreEndpoint):
|
|
5326
5330
|
content: The content for that object.
|
5327
5331
|
replace (bool): Replace the content if it exists.
|
5328
5332
|
additional_metadata (Optional[dict]): Additional metadata to store with the document (not it can't include 'path').
|
5333
|
+
external_data (Optional[dict]): External data to store with the document.
|
5329
5334
|
|
5330
5335
|
Returns:
|
5331
5336
|
DocumentFamilyEndpoint: The document family that was created.
|
@@ -5335,6 +5340,9 @@ class DocumentStoreEndpoint(StoreEndpoint):
|
|
5335
5340
|
if additional_metadata is None:
|
5336
5341
|
additional_metadata = {}
|
5337
5342
|
|
5343
|
+
if external_data is None:
|
5344
|
+
additional_metadata["externalData"] = json.dumps(external_data)
|
5345
|
+
|
5338
5346
|
if replace and self.client.exists(
|
5339
5347
|
f"/api/stores/{self.ref.replace(':', '/')}/fs", params={"path": path}
|
5340
5348
|
):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "kodexa"
|
3
|
-
version = "7.0.
|
3
|
+
version = "7.0.010779333544"
|
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
|
{kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/dataclasses/templates/llm_data_class.j2
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{kodexa-7.0.10668104287 → kodexa-7.0.10779333544}/kodexa/model/entities/product_subscription.py
RENAMED
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
|