ecodev-core 0.0.51__py3-none-any.whl → 0.0.52__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.
Potentially problematic release.
This version of ecodev-core might be problematic. Click here for more details.
- ecodev_core/__init__.py +5 -3
- ecodev_core/settings.py +0 -5
- {ecodev_core-0.0.51.dist-info → ecodev_core-0.0.52.dist-info}/METADATA +1 -1
- {ecodev_core-0.0.51.dist-info → ecodev_core-0.0.52.dist-info}/RECORD +6 -6
- {ecodev_core-0.0.51.dist-info → ecodev_core-0.0.52.dist-info}/LICENSE.md +0 -0
- {ecodev_core-0.0.51.dist-info → ecodev_core-0.0.52.dist-info}/WHEEL +0 -0
ecodev_core/__init__.py
CHANGED
|
@@ -41,13 +41,13 @@ from ecodev_core.db_retrieval import count_rows
|
|
|
41
41
|
from ecodev_core.db_retrieval import get_rows
|
|
42
42
|
from ecodev_core.db_retrieval import ServerSideField
|
|
43
43
|
from ecodev_core.db_upsertion import field
|
|
44
|
+
from ecodev_core.db_upsertion import filter_to_sfield_dict
|
|
45
|
+
from ecodev_core.db_upsertion import get_sfield_columns
|
|
44
46
|
from ecodev_core.db_upsertion import sfield
|
|
45
47
|
from ecodev_core.db_upsertion import upsert_data
|
|
46
48
|
from ecodev_core.db_upsertion import upsert_deletor
|
|
47
49
|
from ecodev_core.db_upsertion import upsert_df_data
|
|
48
50
|
from ecodev_core.db_upsertion import upsert_selector
|
|
49
|
-
from ecodev_core.db_upsertion import get_sfield_columns
|
|
50
|
-
from ecodev_core.db_upsertion import filter_to_sfield_dict
|
|
51
51
|
from ecodev_core.deployment import Deployment
|
|
52
52
|
from ecodev_core.email_sender import send_email
|
|
53
53
|
from ecodev_core.enum_utils import enum_converter
|
|
@@ -85,6 +85,7 @@ from ecodev_core.safe_utils import safe_clt
|
|
|
85
85
|
from ecodev_core.safe_utils import SafeTestCase
|
|
86
86
|
from ecodev_core.safe_utils import SimpleReturn
|
|
87
87
|
from ecodev_core.safe_utils import stringify
|
|
88
|
+
from ecodev_core.settings import SETTINGS
|
|
88
89
|
from ecodev_core.settings import Settings
|
|
89
90
|
from ecodev_core.version import db_to_value
|
|
90
91
|
from ecodev_core.version import get_row_versions
|
|
@@ -105,4 +106,5 @@ __all__ = [
|
|
|
105
106
|
'datify', 'safe_drop_columns', 'get_value', 'is_null', 'send_email', 'first_func_or_default',
|
|
106
107
|
'sort_by_keys', 'sort_by_values', 'Settings', 'load_yaml_file', 'Deployment', 'Version',
|
|
107
108
|
'sfield', 'field', 'upsert_df_data', 'upsert_deletor', 'get_row_versions', 'get_versions',
|
|
108
|
-
'db_to_value', 'upsert_data', 'upsert_selector', 'get_sfield_columns', 'filter_to_sfield_dict'
|
|
109
|
+
'db_to_value', 'upsert_data', 'upsert_selector', 'get_sfield_columns', 'filter_to_sfield_dict',
|
|
110
|
+
'SETTINGS']
|
ecodev_core/settings.py
CHANGED
|
@@ -10,11 +10,8 @@ from pydantic_settings import SettingsConfigDict
|
|
|
10
10
|
|
|
11
11
|
from ecodev_core.deployment import Deployment
|
|
12
12
|
from ecodev_core.list_utils import dict_to_class
|
|
13
|
-
from ecodev_core.logger import logger_get
|
|
14
13
|
from ecodev_core.read_write import load_yaml_file
|
|
15
14
|
|
|
16
|
-
log = logger_get(__name__)
|
|
17
|
-
|
|
18
15
|
|
|
19
16
|
class DeploymentSetting(BaseSettings):
|
|
20
17
|
"""
|
|
@@ -43,9 +40,7 @@ class Settings:
|
|
|
43
40
|
information coming from a secret file.
|
|
44
41
|
"""
|
|
45
42
|
self.deployment = deployment
|
|
46
|
-
|
|
47
43
|
with suppress(FileNotFoundError):
|
|
48
|
-
log.info((base_path / 'config' / f'{deployment.value}.yaml').exists())
|
|
49
44
|
data = load_yaml_file(base_path / 'config' / f'{deployment.value}.yaml')
|
|
50
45
|
if (secrets_file := base_path / 'secrets' / f'{deployment.value}.yaml').exists():
|
|
51
46
|
data = deep_update(data, load_yaml_file(secrets_file))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
ecodev_core/__init__.py,sha256=
|
|
1
|
+
ecodev_core/__init__.py,sha256=ULUNsG-OwP5pZkqFemYcA5NZURCdSjrC2v4PNTlreDs,6001
|
|
2
2
|
ecodev_core/app_activity.py,sha256=KBtI-35LBLPDppFB7xjxWthXQrY3Z_aGDnC-HrW8Ea0,4641
|
|
3
3
|
ecodev_core/app_rights.py,sha256=RZPdDtydFqc_nFj96huKAc56BS0qS6ScKv4Kghqd6lc,726
|
|
4
4
|
ecodev_core/app_user.py,sha256=r1bqA4H08x53XmxmjwyGKl_PFjYQazzBbVErdkztqeE,2947
|
|
@@ -23,10 +23,10 @@ ecodev_core/permissions.py,sha256=WAx-ilMu8LlQp2sjJVdkhNQieytEaEm8577ZF1HWeTY,50
|
|
|
23
23
|
ecodev_core/pydantic_utils.py,sha256=e3GH50JmcpTmd2UgrB94QSwWOlOCW3WIlVdyX9C4T-U,741
|
|
24
24
|
ecodev_core/read_write.py,sha256=YIGRERvFHU7vy-JIaCWAza4CPMysLRUHKJxN-ZgFmu0,1208
|
|
25
25
|
ecodev_core/safe_utils.py,sha256=Q8N15El1tSxZJJsy1i_1CCycuBN1_98QQoHmYJRcLIY,6904
|
|
26
|
-
ecodev_core/settings.py,sha256=
|
|
26
|
+
ecodev_core/settings.py,sha256=UvaTv8S_HvfFAL-m1Rfqv_geSGcccuV3ziR1o1d5wu4,1795
|
|
27
27
|
ecodev_core/sqlmodel_utils.py,sha256=t57H3QPtKRy4ujic1clMK_2L4p0yjGJLZbDjHPZ8M94,453
|
|
28
28
|
ecodev_core/version.py,sha256=eyIf8KkW_t-hMuYFIoy0cUlNaMewLe6i45m2HKZKh0Q,4403
|
|
29
|
-
ecodev_core-0.0.
|
|
30
|
-
ecodev_core-0.0.
|
|
31
|
-
ecodev_core-0.0.
|
|
32
|
-
ecodev_core-0.0.
|
|
29
|
+
ecodev_core-0.0.52.dist-info/LICENSE.md,sha256=8dqVJEbwXjPWjjRKjdLMym5k9Gi8hwtrHh84sti6KIs,1068
|
|
30
|
+
ecodev_core-0.0.52.dist-info/METADATA,sha256=UgEUyk-1FHtzUXSP3t7fattxjRHbSVXjwvMI8_Ioa8g,3509
|
|
31
|
+
ecodev_core-0.0.52.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
32
|
+
ecodev_core-0.0.52.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|