kodexa 7.0.11058299779__tar.gz → 7.0.11123031191__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.11058299779 → kodexa-7.0.11123031191}/PKG-INFO +1 -1
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/model/objects.py +87 -2
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/platform/client.py +54 -4
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/pyproject.toml +1 -1
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/LICENSE +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/README.md +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/__init__.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/assistant/__init__.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/assistant/assistant.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/connectors/__init__.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/connectors/connectors.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/dataclasses/__init__.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/model/__init__.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/model/base.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/model/entities/__init__.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/model/entities/check_response.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/model/entities/product.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/model/entities/product_subscription.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/model/model.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/model/persistence.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/pipeline/__init__.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/pipeline/pipeline.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/platform/__init__.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/platform/interaction.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/platform/kodexa.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/selectors/__init__.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/selectors/ast.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/selectors/core.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/selectors/lexrules.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/selectors/lextab.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/selectors/lextab.pyi +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/selectors/parserules.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/selectors/parserules.pyi +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/selectors/parsetab.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/selectors/parsetab.pyi +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/spatial/__init__.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/spatial/azure_models.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/spatial/bbox_common.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/spatial/table_form_common.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/steps/__init__.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/steps/common.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/testing/__init__.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/testing/test_components.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/testing/test_utils.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/training/__init__.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/training/train_utils.py +0 -0
- {kodexa-7.0.11058299779 → kodexa-7.0.11123031191}/kodexa/utils/__init__.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
|
-
from typing import Union
|
3
|
+
from typing import Union, Set
|
4
4
|
from enum import Enum
|
5
5
|
from typing import Optional, List, Dict, Any
|
6
6
|
from pydantic import AnyUrl, Field, RootModel, BaseModel, ConfigDict
|
@@ -2548,9 +2548,16 @@ class TaxonCardinality(Enum):
|
|
2548
2548
|
ONCE_PER_SEGMENT = "ONCE_PER_SEGMENT"
|
2549
2549
|
MULTIPLE_PER_SEGMENT = "MULTIPLE_PER_SEGMENT"
|
2550
2550
|
|
2551
|
+
class TaxonAdditionContextType(str, Enum):
|
2552
|
+
RECORD_DEFINITION = "RECORD_DEFINITION"
|
2553
|
+
RECORD_SECTION_STARTER_MARKER = "RECORD_SECTION_STARTER_MARKER"
|
2554
|
+
RECORD_SECTION_END_MARKER = "RECORD_SECTION_END_MARKER"
|
2555
|
+
RECORD_START_MARKER = "RECORD_START_MARKER"
|
2556
|
+
RECORD_END_MARKER = "RECORD_END_MARKER"
|
2551
2557
|
|
2552
2558
|
class TaxonAdditionContext(BaseModel):
|
2553
|
-
|
2559
|
+
type: TaxonAdditionContextType
|
2560
|
+
context: str
|
2554
2561
|
weight: Optional[float] = None
|
2555
2562
|
negative: Optional[bool] = None
|
2556
2563
|
|
@@ -2863,6 +2870,62 @@ class Project(BaseModel):
|
|
2863
2870
|
options: Optional[ProjectOptions] = Field(None, alias="options")
|
2864
2871
|
|
2865
2872
|
|
2873
|
+
class TaskStatus(str, Enum):
|
2874
|
+
TODO = "TODO"
|
2875
|
+
IN_PROGRESS = "IN_PROGRESS"
|
2876
|
+
DONE = "DONE"
|
2877
|
+
|
2878
|
+
|
2879
|
+
class TaskCheckItem(BaseModel):
|
2880
|
+
|
2881
|
+
model_config = ConfigDict(
|
2882
|
+
populate_by_name=True,
|
2883
|
+
use_enum_values=True,
|
2884
|
+
arbitrary_types_allowed=True,
|
2885
|
+
protected_namespaces=("model_config",),
|
2886
|
+
)
|
2887
|
+
|
2888
|
+
name: str
|
2889
|
+
description: Optional[str] = None
|
2890
|
+
taxon_path: Optional[str] = Field(None, alias="taxonPath")
|
2891
|
+
taxonomy_ref: Optional[str] = Field(None, alias="taxonomyRef")
|
2892
|
+
|
2893
|
+
|
2894
|
+
class TaskMetadata(BaseModel):
|
2895
|
+
|
2896
|
+
model_config = ConfigDict(
|
2897
|
+
populate_by_name=True,
|
2898
|
+
use_enum_values=True,
|
2899
|
+
arbitrary_types_allowed=True,
|
2900
|
+
protected_namespaces=("model_config",),
|
2901
|
+
)
|
2902
|
+
|
2903
|
+
field_values: Dict[str, Any] = Field(default_factory=dict)
|
2904
|
+
fields: List[Option] = Field(default_factory=list)
|
2905
|
+
check_items: List[TaskCheckItem] = Field(default_factory=list)
|
2906
|
+
document_store_ref: Optional[str] = None
|
2907
|
+
|
2908
|
+
|
2909
|
+
class Task(BaseModel):
|
2910
|
+
|
2911
|
+
model_config = ConfigDict(
|
2912
|
+
populate_by_name=True,
|
2913
|
+
use_enum_values=True,
|
2914
|
+
arbitrary_types_allowed=True,
|
2915
|
+
protected_namespaces=("model_config",),
|
2916
|
+
)
|
2917
|
+
|
2918
|
+
project: Optional['Project'] = Field(None)
|
2919
|
+
title: Optional[str] = Field(None)
|
2920
|
+
template: Optional[bool] = Field(None)
|
2921
|
+
description: Optional[str] = Field(None)
|
2922
|
+
metadata: Optional['TaskMetadata'] = Field(None)
|
2923
|
+
due_date: Optional[StandardDateTime] = Field(None, alias="dueDate")
|
2924
|
+
completed_date: Optional[StandardDateTime] = Field(None, alias="completedDate")
|
2925
|
+
status: Optional['TaskStatus'] = Field(None)
|
2926
|
+
assignee: Optional['User'] = Field(None)
|
2927
|
+
|
2928
|
+
|
2866
2929
|
class FeatureSet(BaseModel):
|
2867
2930
|
"""
|
2868
2931
|
|
@@ -3425,6 +3488,28 @@ class PageMessage(BaseModel):
|
|
3425
3488
|
empty: Optional[bool] = None
|
3426
3489
|
|
3427
3490
|
|
3491
|
+
class PageTask(BaseModel):
|
3492
|
+
"""
|
3493
|
+
|
3494
|
+
"""
|
3495
|
+
model_config = ConfigDict(
|
3496
|
+
populate_by_name=True,
|
3497
|
+
use_enum_values=True,
|
3498
|
+
arbitrary_types_allowed=True,
|
3499
|
+
protected_namespaces=("model_config",),
|
3500
|
+
)
|
3501
|
+
total_pages: Optional[int] = Field(None, alias="totalPages")
|
3502
|
+
total_elements: Optional[int] = Field(None, alias="totalElements")
|
3503
|
+
size: Optional[int] = None
|
3504
|
+
content: Optional[List[Task]] = None
|
3505
|
+
number: Optional[int] = None
|
3506
|
+
|
3507
|
+
number_of_elements: Optional[int] = Field(None, alias="numberOfElements")
|
3508
|
+
first: Optional[bool] = None
|
3509
|
+
last: Optional[bool] = None
|
3510
|
+
empty: Optional[bool] = None
|
3511
|
+
|
3512
|
+
|
3428
3513
|
class PageChannel(BaseModel):
|
3429
3514
|
"""
|
3430
3515
|
|
@@ -86,7 +86,7 @@ from kodexa.model.objects import (
|
|
86
86
|
PageExtensionPack,
|
87
87
|
PageOrganization,
|
88
88
|
DocumentFamilyStatistics, MessageContext, PagePrompt, Prompt, GuidanceSet, PageGuidanceSet, DocumentEmbedding,
|
89
|
-
DocumentExternalData,
|
89
|
+
DocumentExternalData, Task, PageTask,
|
90
90
|
)
|
91
91
|
|
92
92
|
logger = logging.getLogger()
|
@@ -1173,6 +1173,11 @@ class PagePipelineEndpoint(PagePipeline, PageEndpoint):
|
|
1173
1173
|
return "pipeline"
|
1174
1174
|
|
1175
1175
|
|
1176
|
+
class PageTaskEndpoint(PageTask, PageEndpoint):
|
1177
|
+
def get_type(self) -> Optional[str]:
|
1178
|
+
return "task"
|
1179
|
+
|
1180
|
+
|
1176
1181
|
class PageProjectEndpoint(PageProject, PageEndpoint):
|
1177
1182
|
"""Represents a page project endpoint.
|
1178
1183
|
|
@@ -2516,15 +2521,25 @@ class WorkspaceEndpoint(EntityEndpoint, Workspace):
|
|
2516
2521
|
else:
|
2517
2522
|
raise ValueError("Workspace has no channel")
|
2518
2523
|
|
2524
|
+
class TaskEndpoint(EntityEndpoint, Task):
|
2525
|
+
"""Represents a task endpoint.
|
2526
|
+
|
2527
|
+
This class is used to interact with the task endpoint of the API.
|
2528
|
+
"""
|
2529
|
+
def get_type(self) -> str:
|
2530
|
+
"""Get the type of the endpoint.
|
2531
|
+
|
2532
|
+
Returns:
|
2533
|
+
str: The type of the endpoint, in this case "projects".
|
2534
|
+
"""
|
2535
|
+
return "tasks"
|
2536
|
+
|
2519
2537
|
|
2520
2538
|
class ProjectEndpoint(EntityEndpoint, Project):
|
2521
2539
|
"""Represents a project endpoint.
|
2522
2540
|
|
2523
2541
|
This class is used to interact with the project endpoint of the API.
|
2524
2542
|
"""
|
2525
|
-
|
2526
|
-
"""Represents a project endpoint"""
|
2527
|
-
|
2528
2543
|
def get_type(self) -> str:
|
2529
2544
|
"""Get the type of the endpoint.
|
2530
2545
|
|
@@ -2849,6 +2864,39 @@ class AssistantsEndpoint(EntitiesEndpoint):
|
|
2849
2864
|
return PageAssistantEndpoint
|
2850
2865
|
|
2851
2866
|
|
2867
|
+
class TasksEndpoint(EntitiesEndpoint):
|
2868
|
+
"""Represents a projects endpoint"""
|
2869
|
+
|
2870
|
+
"""Represents a projects endpoint"""
|
2871
|
+
|
2872
|
+
def get_type(self) -> str:
|
2873
|
+
"""
|
2874
|
+
Get the type of the endpoint.
|
2875
|
+
|
2876
|
+
Returns:
|
2877
|
+
str: The type of the endpoint.
|
2878
|
+
"""
|
2879
|
+
return "tasks"
|
2880
|
+
|
2881
|
+
def get_instance_class(self, object_dict=None):
|
2882
|
+
"""
|
2883
|
+
Get the instance class of the endpoint.
|
2884
|
+
|
2885
|
+
Returns:
|
2886
|
+
ProjectEndpoint: The instance class of the endpoint.
|
2887
|
+
"""
|
2888
|
+
return TaskEndpoint
|
2889
|
+
|
2890
|
+
def get_page_class(self, object_dict=None):
|
2891
|
+
"""
|
2892
|
+
Get the page class of the endpoint.
|
2893
|
+
|
2894
|
+
Returns:
|
2895
|
+
PageProjectEndpoint: The page class of the endpoint.
|
2896
|
+
"""
|
2897
|
+
return PageTaskEndpoint
|
2898
|
+
|
2899
|
+
|
2852
2900
|
class ProjectsEndpoint(EntitiesEndpoint):
|
2853
2901
|
"""Represents a projects endpoint"""
|
2854
2902
|
|
@@ -6374,6 +6422,7 @@ class KodexaClient:
|
|
6374
6422
|
self.messages = MessagesEndpoint(self)
|
6375
6423
|
from kodexa.model.entities.product import ProductsEndpoint
|
6376
6424
|
self.products = ProductsEndpoint(self)
|
6425
|
+
self.tasks = TasksEndpoint(self)
|
6377
6426
|
|
6378
6427
|
@staticmethod
|
6379
6428
|
def login(url, token):
|
@@ -6969,6 +7018,7 @@ class KodexaClient:
|
|
6969
7018
|
"guidance": GuidanceSetEndpoint,
|
6970
7019
|
"channel": ChannelEndpoint,
|
6971
7020
|
"product": ProductEndpoint,
|
7021
|
+
"task": TaskEndpoint,
|
6972
7022
|
"productSubscription": ProductSubscriptionEndpoint,
|
6973
7023
|
"checkResponse": CheckResponseEndpoint
|
6974
7024
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "kodexa"
|
3
|
-
version = "7.0.
|
3
|
+
version = "7.0.011123031191"
|
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.11058299779 → kodexa-7.0.11123031191}/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.11058299779 → kodexa-7.0.11123031191}/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
|