analytic-workspace-client 1.31.2__tar.gz → 1.31.3__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.31.2 → analytic_workspace_client-1.31.3}/PKG-INFO +12 -4
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/setup.py +1 -1
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/analytic_workspace_client.egg-info/PKG-INFO +13 -5
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/data_master/base.py +3 -3
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/data_master/v1.py +5 -1
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/README.md +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/pyproject.toml +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/setup.cfg +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/analytic_workspace_client.egg-info/SOURCES.txt +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/analytic_workspace_client.egg-info/dependency_links.txt +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/analytic_workspace_client.egg-info/requires.txt +4 -4
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/analytic_workspace_client.egg-info/top_level.txt +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/__init__.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/cache.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/core/__init__.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/core/bundle.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/core/compiler.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/core/model_vault.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/core/spark.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/data_master/__init__.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/data_master/v0.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/data_master/v2.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/domain.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/etl_blocks/__init__.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/etl_blocks/application.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/etl_blocks/dto.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/etl_blocks/runtime.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/etl_blocks/services.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/etl_blocks/test_data.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/etl_blocks/tools.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/exceptions.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/ml/__init__.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/ml/mlflow_wrapper.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/model_dev/__init__.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/model_dev/application.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/model_dev/cache.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/model_dev/runner.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/model_dev/virtual_objects.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/models/__init__.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/models/model_schema.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/session.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/tools.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_etl/__init__.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_etl/compiler.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_etl/etl_blocks.py +0 -0
- {analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_etl/models.py +0 -0
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: analytic_workspace_client
|
|
3
|
-
Version: 1.31.
|
|
3
|
+
Version: 1.31.3
|
|
4
4
|
Summary: Библиотека для подключения к Analytic Workspace
|
|
5
5
|
Home-page: https://analyticworkspace.ru/
|
|
6
6
|
Author: Analytic Workspace
|
|
7
7
|
Author-email: aw_help@analyticworkspace.ru
|
|
8
|
-
License: UNKNOWN
|
|
9
|
-
Platform: UNKNOWN
|
|
10
8
|
Classifier: Programming Language :: Python :: 3
|
|
11
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
10
|
Classifier: Operating System :: OS Independent
|
|
13
11
|
Requires-Python: >=3.10,<4
|
|
14
12
|
Description-Content-Type: text/markdown
|
|
13
|
+
Requires-Dist: python-dotenv<1.1,>=1.0
|
|
14
|
+
Requires-Dist: httpx<1.0,>=0.25
|
|
15
|
+
Requires-Dist: pandas
|
|
16
|
+
Requires-Dist: pydantic>=2.0
|
|
17
|
+
Requires-Dist: colorama<0.5,>=0.4
|
|
18
|
+
Requires-Dist: jwt==1.3.1
|
|
15
19
|
Provides-Extra: dev
|
|
20
|
+
Requires-Dist: pyspark==3.5.1; extra == "dev"
|
|
21
|
+
Requires-Dist: pytest<8.3,>=8.2; extra == "dev"
|
|
22
|
+
Requires-Dist: pyparsing<3.3,>=3.2; extra == "dev"
|
|
23
|
+
Requires-Dist: requests<2.33,>=2.32; extra == "dev"
|
|
16
24
|
Provides-Extra: ml
|
|
25
|
+
Requires-Dist: mlflow==2.14.3; extra == "ml"
|
|
17
26
|
|
|
18
27
|
# Библиотека для Analytic Workspace
|
|
19
28
|
|
|
@@ -41,4 +50,3 @@ df = session.load(model_id=123) # df: pandas.DataFrame
|
|
|
41
50
|
|
|
42
51
|
display(df)
|
|
43
52
|
```
|
|
44
|
-
|
|
@@ -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.31.
|
|
13
|
+
version='1.31.3',
|
|
14
14
|
|
|
15
15
|
description='Библиотека для подключения к Analytic Workspace',
|
|
16
16
|
long_description=long_description,
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 1.31.
|
|
2
|
+
Name: analytic_workspace_client
|
|
3
|
+
Version: 1.31.3
|
|
4
4
|
Summary: Библиотека для подключения к Analytic Workspace
|
|
5
5
|
Home-page: https://analyticworkspace.ru/
|
|
6
6
|
Author: Analytic Workspace
|
|
7
7
|
Author-email: aw_help@analyticworkspace.ru
|
|
8
|
-
License: UNKNOWN
|
|
9
|
-
Platform: UNKNOWN
|
|
10
8
|
Classifier: Programming Language :: Python :: 3
|
|
11
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
10
|
Classifier: Operating System :: OS Independent
|
|
13
11
|
Requires-Python: >=3.10,<4
|
|
14
12
|
Description-Content-Type: text/markdown
|
|
13
|
+
Requires-Dist: python-dotenv<1.1,>=1.0
|
|
14
|
+
Requires-Dist: httpx<1.0,>=0.25
|
|
15
|
+
Requires-Dist: pandas
|
|
16
|
+
Requires-Dist: pydantic>=2.0
|
|
17
|
+
Requires-Dist: colorama<0.5,>=0.4
|
|
18
|
+
Requires-Dist: jwt==1.3.1
|
|
15
19
|
Provides-Extra: dev
|
|
20
|
+
Requires-Dist: pyspark==3.5.1; extra == "dev"
|
|
21
|
+
Requires-Dist: pytest<8.3,>=8.2; extra == "dev"
|
|
22
|
+
Requires-Dist: pyparsing<3.3,>=3.2; extra == "dev"
|
|
23
|
+
Requires-Dist: requests<2.33,>=2.32; extra == "dev"
|
|
16
24
|
Provides-Extra: ml
|
|
25
|
+
Requires-Dist: mlflow==2.14.3; extra == "ml"
|
|
17
26
|
|
|
18
27
|
# Библиотека для Analytic Workspace
|
|
19
28
|
|
|
@@ -41,4 +50,3 @@ df = session.load(model_id=123) # df: pandas.DataFrame
|
|
|
41
50
|
|
|
42
51
|
display(df)
|
|
43
52
|
```
|
|
44
|
-
|
|
@@ -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:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
python-dotenv<1.1,>=1.0
|
|
2
2
|
httpx<1.0,>=0.25
|
|
3
|
-
jwt==1.3.1
|
|
4
3
|
pandas
|
|
5
4
|
pydantic>=2.0
|
|
6
|
-
|
|
5
|
+
colorama<0.5,>=0.4
|
|
6
|
+
jwt==1.3.1
|
|
7
7
|
|
|
8
8
|
[dev]
|
|
9
|
-
pyparsing<3.3,>=3.2
|
|
10
9
|
pyspark==3.5.1
|
|
11
10
|
pytest<8.3,>=8.2
|
|
11
|
+
pyparsing<3.3,>=3.2
|
|
12
12
|
requests<2.33,>=2.32
|
|
13
13
|
|
|
14
14
|
[ml]
|
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/__init__.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/cache.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/core/__init__.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/core/bundle.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/core/compiler.py
RENAMED
|
File without changes
|
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/core/spark.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/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
|
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/exceptions.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/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
|
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/session.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_client/tools.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_etl/__init__.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_etl/compiler.py
RENAMED
|
File without changes
|
{analytic_workspace_client-1.31.2 → analytic_workspace_client-1.31.3}/src/aw_etl/etl_blocks.py
RENAMED
|
File without changes
|
|
File without changes
|