analytic-workspace-client 1.29.4__tar.gz → 1.29.6__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.
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/PKG-INFO +1 -1
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/setup.py +1 -1
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/analytic_workspace_client.egg-info/PKG-INFO +1 -1
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/data_master/base.py +3 -3
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/data_master/v1.py +5 -1
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/etl_blocks/runtime.py +4 -4
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/model_dev/cache.py +2 -1
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/README.md +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/pyproject.toml +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/setup.cfg +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/analytic_workspace_client.egg-info/SOURCES.txt +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/analytic_workspace_client.egg-info/dependency_links.txt +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/analytic_workspace_client.egg-info/requires.txt +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/analytic_workspace_client.egg-info/top_level.txt +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/__init__.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/cache.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/core/__init__.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/core/bundle.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/core/compiler.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/core/model_vault.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/core/spark.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/data_master/__init__.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/data_master/v0.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/data_master/v2.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/domain.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/etl_blocks/__init__.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/etl_blocks/application.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/etl_blocks/dto.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/etl_blocks/services.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/etl_blocks/test_data.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/etl_blocks/tools.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/exceptions.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/ml/__init__.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/ml/mlflow_wrapper.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/model_dev/__init__.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/model_dev/application.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/model_dev/runner.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/model_dev/virtual_objects.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/models/__init__.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/models/model_schema.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/session.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/tools.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_etl/__init__.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_etl/compiler.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_etl/etl_blocks.py +0 -0
- {analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_etl/models.py +0 -0
|
@@ -10,7 +10,7 @@ long_description = (here / "README.md").read_text(encoding="utf-8")
|
|
|
10
10
|
|
|
11
11
|
setup(
|
|
12
12
|
name='analytic_workspace_client',
|
|
13
|
-
version='1.29.
|
|
13
|
+
version='1.29.6',
|
|
14
14
|
|
|
15
15
|
description='Библиотека для подключения к Analytic Workspace',
|
|
16
16
|
long_description=long_description,
|
|
@@ -38,17 +38,17 @@ class DataMasterApi(metaclass=abc.ABCMeta):
|
|
|
38
38
|
""" """
|
|
39
39
|
|
|
40
40
|
@contextmanager
|
|
41
|
-
def get_http_client(self) -> Iterator[httpx.Client]:
|
|
41
|
+
def get_http_client(self, **options) -> Iterator[httpx.Client]:
|
|
42
42
|
""" """
|
|
43
43
|
if not self.api_config.aw_url:
|
|
44
44
|
raise DataMasterApi.MisconfiguredError('Не указан URL к Analytic Workspace')
|
|
45
45
|
|
|
46
46
|
if not self.api_config.token:
|
|
47
47
|
raise DataMasterApi.MisconfiguredError('Не указано токен доступа к Analytic Workspace')
|
|
48
|
-
|
|
48
|
+
|
|
49
49
|
headers = {"Authorization": f"Bearer {self.api_config.token}"}
|
|
50
50
|
|
|
51
|
-
client = httpx.Client(base_url=self.api_config.aw_url, headers=headers)
|
|
51
|
+
client = httpx.Client(base_url=self.api_config.aw_url, headers=headers, **options)
|
|
52
52
|
|
|
53
53
|
try:
|
|
54
54
|
yield client
|
|
@@ -21,7 +21,11 @@ class DataMasterV1(DataMasterApi):
|
|
|
21
21
|
if timeout is not None:
|
|
22
22
|
timeout = int(timeout)
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
http_client_options = {}
|
|
25
|
+
if 'verify' in options:
|
|
26
|
+
http_client_options['verify'] = options['verify']
|
|
27
|
+
|
|
28
|
+
with self.get_http_client(**http_client_options) as client:
|
|
25
29
|
|
|
26
30
|
model_schema = None
|
|
27
31
|
if apply_schema:
|
|
@@ -32,7 +32,7 @@ def get_etl_block_meta(block_path: Path) -> ETLBlockMeta:
|
|
|
32
32
|
if not block_meta_path.exists():
|
|
33
33
|
raise Exception(f'Файл с метаданным блока не найден: {block_meta_path}')
|
|
34
34
|
|
|
35
|
-
with open(block_meta_path, 'rt') as f:
|
|
35
|
+
with open(block_meta_path, 'rt', encoding='utf-8') as f:
|
|
36
36
|
return ETLBlockMeta.model_validate_json(f.read())
|
|
37
37
|
|
|
38
38
|
|
|
@@ -51,7 +51,7 @@ def get_etl_block_schema(block_path: Path,
|
|
|
51
51
|
if not block_code_path.exists():
|
|
52
52
|
raise Exception(f'Файл с исходным кодом блока не найден: {block_code_path}')
|
|
53
53
|
|
|
54
|
-
with open(block_code_path, 'rt') as f:
|
|
54
|
+
with open(block_code_path, 'rt', encoding='utf-8') as f:
|
|
55
55
|
block_code = f.read()
|
|
56
56
|
|
|
57
57
|
# Компиляция кода блока
|
|
@@ -152,7 +152,7 @@ def get_etl_block_data(block_path: Path,
|
|
|
152
152
|
if not block_code_path.exists():
|
|
153
153
|
raise Exception(f'Файл с исходным кодом блока не найден: {block_code_path}')
|
|
154
154
|
|
|
155
|
-
with open(block_code_path, 'rt') as f:
|
|
155
|
+
with open(block_code_path, 'rt', encoding='utf-8') as f:
|
|
156
156
|
block_code = f.read()
|
|
157
157
|
|
|
158
158
|
# Компиляция кода блока
|
|
@@ -242,7 +242,7 @@ def run_block_action(
|
|
|
242
242
|
if not block_code_path.exists():
|
|
243
243
|
raise Exception(f'Файл с исходным кодом блока не найден: {block_code_path}')
|
|
244
244
|
|
|
245
|
-
with open(block_code_path, 'rt') as f:
|
|
245
|
+
with open(block_code_path, 'rt', encoding='utf-8') as f:
|
|
246
246
|
block_code = f.read()
|
|
247
247
|
|
|
248
248
|
# Компиляция кода блока
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from hashlib import md5
|
|
2
2
|
from urllib.parse import urlparse
|
|
3
3
|
from pathlib import Path
|
|
4
|
+
import json
|
|
4
5
|
|
|
5
6
|
from aw_client.models.model_schema import ModelSchema, ModelObject
|
|
6
7
|
|
|
@@ -54,4 +55,4 @@ class ModelDevCache:
|
|
|
54
55
|
|
|
55
56
|
@staticmethod
|
|
56
57
|
def _model_object_hash(model_object: ModelObject) -> str:
|
|
57
|
-
return md5(model_object.
|
|
58
|
+
return md5(json.dumps(model_object.model_dump(), ensure_ascii=False, sort_keys=True).encode()).hexdigest()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/__init__.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/cache.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/core/__init__.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/core/bundle.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/core/compiler.py
RENAMED
|
File without changes
|
|
File without changes
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/core/spark.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/domain.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/exceptions.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/ml/__init__.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
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/session.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_client/tools.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_etl/__init__.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_etl/compiler.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.29.4 → analytic_workspace_client-1.29.6}/src/aw_etl/etl_blocks.py
RENAMED
|
File without changes
|
|
File without changes
|