8000 Merge pull request #115 from u2d-ai/0.0.110 · u2d-ai/msaDocModels@427c7c5 · GitHub
[go: up one dir, main page]

< 8000 div data-turbo-body class="logged-out env-production page-responsive" style="word-wrap: break-word;">
Skip to content

Commit 427c7c5

Browse files
Merge pull request #115 from u2d-ai/0.0.110
feat: add svcEngineUtils models, update pyproject.toml
2 parents 60dd394 + 96948bd commit 427c7c5

File tree

4 files changed

+47
-2
lines changed

4 files changed

+47
-2
lines changed

docs/release-notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# msaDocModels Release Notes
22
## Possible future features:
3+
# 0.0.110
4+
5+
- add svcEngineUtils models
36

47
# 0.0.109
58

msaDocModels/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import glob
22
from os.path import basename, dirname, isfile, join
33

4-
version = "0.0.109"
4+
version = "0.0.110"
55
__author__ = "Stefan Welcker"
66
__copyright__ = "Copyright 2022, U2D.ai"
77
__license__ = "MIT"

msaDocModels/sdu.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3641,6 +3641,48 @@ class StatisticsDocumentDTO(BaseModel):
36413641
text_extraction_statistics: Union[StatisticsDocument, StatisticsPages]
36423642

36433643

3644+
class UtilsRunEmbeddedPythonCodeInput(BaseModel):
3645+
"""
3646+
Represents the input data for running embedded Python code within a document.
3647+
3648+
Attributes:
3649+
document_id: optional uuid for document.
3650+
code: The Python code to be executed.
3651+
vars: A dictionary representing variables for code execution.
3652+
return_vars: A list of keys from local variables which need to return back.
3653+
"""
3654+
3655+
document_id: Optional[UUID4] = None
3656+
code: str
3657+
vars: Dict[str, Any] = {}
3658+
return_vars: List[str] = []
3659+
3660+
3661+
class UtilsRunEmbeddedPythonCodeDTO(BaseModel):
3662+
"""
3663+
Represents the output data of the run_code function.
3664+
3665+
Attributes:
3666+
vars: A dictionary containing the modified provided variables after code execution.
3667+
"""
3668+
3669+
vars: Dict[str, Any]
3670+
3671+
3672+
class UtilsJsonProps(BaseModel):
3673+
"""
3674+
Represents the input data for nfs_writer.
3675+
3676+
Attributes:
3677+
file_path: path to file.
3678+
json_payload: json payload.
3679+
3680+
"""
3681+
3682+
file_path: str
3683+
json_payload: str
3684+
3685+
36443686
class CleanDocumentInput(BaseDocumentInput):
36453687
"""
36463688
Model that contains input data to clean text from document.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "msaDocModels"
3-
version = "0.0.109"
3+
version = "0.0.110"
44
description = "MSA Document Pydantic Models and Schemas, used to store Parser, NLP, NLU and AI results for processed documents"
55
authors = ["Stefan Welcker"]
66
readme = "README.md"

0 commit comments

Comments
 (0)
0