amsdal_utils 0.5.2__py3-none-any.whl → 0.5.4__py3-none-any.whl
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.
- amsdal_utils/__about__.py +1 -1
- amsdal_utils/config/data_models/amsdal_config.py +3 -0
- amsdal_utils/schemas/schema.py +6 -5
- {amsdal_utils-0.5.2.dist-info → amsdal_utils-0.5.4.dist-info}/METADATA +1 -1
- {amsdal_utils-0.5.2.dist-info → amsdal_utils-0.5.4.dist-info}/RECORD +7 -7
- {amsdal_utils-0.5.2.dist-info → amsdal_utils-0.5.4.dist-info}/WHEEL +0 -0
- {amsdal_utils-0.5.2.dist-info → amsdal_utils-0.5.4.dist-info}/licenses/LICENSE.txt +0 -0
amsdal_utils/__about__.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
1
3
|
from pydantic import BaseModel
|
|
2
4
|
from pydantic import field_validator
|
|
3
5
|
|
|
@@ -20,6 +22,7 @@ class AmsdalConfig(BaseModel):
|
|
|
20
22
|
connections: dict[str, ConnectionConfig]
|
|
21
23
|
resources_config: ResourcesConfig
|
|
22
24
|
async_mode: bool = False
|
|
25
|
+
config_dir: Path | None = None
|
|
23
26
|
|
|
24
27
|
@property
|
|
25
28
|
def is_lakehouse_only(self) -> bool:
|
amsdal_utils/schemas/schema.py
CHANGED
|
@@ -103,11 +103,11 @@ class PropertyData(TypeData, extra='allow'):
|
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
class StorageMetadata(BaseModel, extra='allow'):
|
|
106
|
-
table_name: str | None = Field(None, title='Table name')
|
|
107
|
-
db_fields: dict[str, list[str]] | None = Field(None, title='Database property to fields mapping')
|
|
108
|
-
primary_key: list[str] | None = Field(None, title='Primary key fields')
|
|
109
|
-
indexed: list[list[str]] | None = Field(None, title='Indexed')
|
|
110
|
-
unique: list[list[str]] | None = Field(None, title='Unique Fields')
|
|
106
|
+
table_name: str | None = Field(default=None, title='Table name')
|
|
107
|
+
db_fields: dict[str, list[str]] | None = Field(default=None, title='Database property to fields mapping')
|
|
108
|
+
primary_key: list[str] | None = Field(default=None, title='Primary key fields')
|
|
109
|
+
indexed: list[list[str]] | None = Field(default=None, title='Indexed')
|
|
110
|
+
unique: list[list[str]] | None = Field(default=None, title='Unique Fields')
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
class ObjectSchema(BaseModel, extra='allow'):
|
|
@@ -126,6 +126,7 @@ class ObjectSchema(BaseModel, extra='allow'):
|
|
|
126
126
|
options (list\[OptionItemData\] | None): A list of option item data.
|
|
127
127
|
meta_class (str): The meta class of the object, default is the value of MetaClasses.CLASS_OBJECT.
|
|
128
128
|
custom_code (str | None): Custom code associated with the object.
|
|
129
|
+
storage_metadata (StorageMetadata | None): Storage metadata associated with the object.
|
|
129
130
|
"""
|
|
130
131
|
|
|
131
132
|
title: Annotated[str, Field(..., min_length=1, max_length=255)]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
amsdal_utils/Third-Party Materials - AMSDAL Dependencies - License Notices.md,sha256=blZRsT9Qg4u4LzZuxlWQOzlWGpLAg7DugWS6nz7s_yw,62595
|
|
2
|
-
amsdal_utils/__about__.py,sha256=
|
|
2
|
+
amsdal_utils/__about__.py,sha256=Wtwe0oKsI5yPYO-Bi6bO-d5lQqCSshnr9G6Vx7i__Vg,124
|
|
3
3
|
amsdal_utils/__init__.py,sha256=EQCJ5OevmkkIpIULumPNIbWk3UI7afDfRzIsZN5mfwg,73
|
|
4
4
|
amsdal_utils/errors.py,sha256=P90oGdKczHZzHukWnzJfbsSxMC-Sc8dUXvHzP7b1IIA,129
|
|
5
5
|
amsdal_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -11,7 +11,7 @@ amsdal_utils/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
|
11
11
|
amsdal_utils/config/enums.py,sha256=uvc5TjL5zc_nwz3-avFW4zXQsI6cmc_kyJ0nES82--g,371
|
|
12
12
|
amsdal_utils/config/manager.py,sha256=0_aJYCTRSos1PmVPDCNooz_hIX0NR7ce3dXKqoRQmeE,2709
|
|
13
13
|
amsdal_utils/config/data_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
-
amsdal_utils/config/data_models/amsdal_config.py,sha256=
|
|
14
|
+
amsdal_utils/config/data_models/amsdal_config.py,sha256=tOQP6ab8dqdfdM34Q2znf-Lch4VqvtXhkm5RFkC2HiE,1975
|
|
15
15
|
amsdal_utils/config/data_models/connection_config.py,sha256=Q6-uXhxsPlb4migy-RGttOsxtkEUbTkGsah9UnWZdmA,1381
|
|
16
16
|
amsdal_utils/config/data_models/integration_config.py,sha256=UhFUhEchDY5PPrGiFfmisLkslVtKfiac3BMiU77FoT4,387
|
|
17
17
|
amsdal_utils/config/data_models/repository_config.py,sha256=Mrqzki0cYMNJI2mywD4BTNSl438B-Jlmy7LqyNZ6I_o,383
|
|
@@ -49,7 +49,7 @@ amsdal_utils/query/data_models/paginator.py,sha256=oDEWEdyrEBBkHXyrS4K2mglYVw8An
|
|
|
49
49
|
amsdal_utils/query/data_models/query_specifier.py,sha256=7rEVChU2XPy-3ooaTgfSZGKIOyIIKn8245MMuWrv3Mk,469
|
|
50
50
|
amsdal_utils/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
51
51
|
amsdal_utils/schemas/interfaces.py,sha256=XJGw45IE7E1HjYArdz2LELOcx15PeTw4L1V34atKm6Y,773
|
|
52
|
-
amsdal_utils/schemas/schema.py,sha256=
|
|
52
|
+
amsdal_utils/schemas/schema.py,sha256=3cj_oEJG8gqdQrEg2iXhHLN_xks2RLHi5ASvuap1j14,6629
|
|
53
53
|
amsdal_utils/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
54
54
|
amsdal_utils/utils/classes.py,sha256=GeJIt-jxOHgMnlEHMmzNk9vwxv4_V5dLP-Fv89hN5hc,354
|
|
55
55
|
amsdal_utils/utils/decorators.py,sha256=RCWbbQJ2hY2s-uAI0C5M0X8gTXqUbL1Gx9NxACYBMOA,992
|
|
@@ -57,7 +57,7 @@ amsdal_utils/utils/identifier.py,sha256=oP3CHd2i8EBHMVUC8DWLr9pFZBt1IdH7Falaa3M2
|
|
|
57
57
|
amsdal_utils/utils/lazy_object.py,sha256=eIVHBDNCSHKQopzYjviPCuh0svbRJQOCZ8KzqFLiS-s,2115
|
|
58
58
|
amsdal_utils/utils/singleton.py,sha256=DbgQVJdeftO8sGVm2ti4zf4KDaDd2ogclO3B6gxfqag,744
|
|
59
59
|
amsdal_utils/utils/text.py,sha256=4L5aICJGbmFZwNUhMrACb5thqmcIaWb3aVD24lW24a0,1962
|
|
60
|
-
amsdal_utils-0.5.
|
|
61
|
-
amsdal_utils-0.5.
|
|
62
|
-
amsdal_utils-0.5.
|
|
63
|
-
amsdal_utils-0.5.
|
|
60
|
+
amsdal_utils-0.5.4.dist-info/METADATA,sha256=-_nDjQ2zlovW2aaWGLm7TvEDlYxQNCTUEccNNtDA6ZM,57431
|
|
61
|
+
amsdal_utils-0.5.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
62
|
+
amsdal_utils-0.5.4.dist-info/licenses/LICENSE.txt,sha256=hG-541PFYfNJi9WRZi_hno91UyqNg7YLK8LR3vLblZA,27355
|
|
63
|
+
amsdal_utils-0.5.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|