dataiku-api-client 14.4.0__tar.gz → 14.4.2__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.
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/HISTORY.txt +10 -0
- {dataiku_api_client-14.4.0/dataiku_api_client.egg-info → dataiku_api_client-14.4.2}/PKG-INFO +12 -2
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2/dataiku_api_client.egg-info}/PKG-INFO +12 -2
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataiku_api_client.egg-info/SOURCES.txt +10 -1
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/__init__.py +11 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/agent.py +4 -2
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/langchain/tool.py +4 -2
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/project.py +2 -1
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/recipe.py +102 -32
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dssclient.py +19 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern/time_series.py +1 -1
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern_client.py +1 -1
- dataiku_api_client-14.4.2/dataikuapi/launchpad/__init__.py +4 -0
- dataiku_api_client-14.4.2/dataikuapi/launchpad/exceptions.py +111 -0
- dataiku_api_client-14.4.2/dataikuapi/launchpad/group.py +464 -0
- dataiku_api_client-14.4.2/dataikuapi/launchpad/node.py +45 -0
- dataiku_api_client-14.4.2/dataikuapi/launchpad/profile.py +77 -0
- dataiku_api_client-14.4.2/dataikuapi/launchpad/response.py +70 -0
- dataiku_api_client-14.4.2/dataikuapi/launchpad/task.py +108 -0
- dataiku_api_client-14.4.2/dataikuapi/launchpad/user.py +344 -0
- dataiku_api_client-14.4.2/dataikuapi/launchpad_client.py +616 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/setup.py +2 -2
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/LICENSE.txt +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/MANIFEST.in +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/README +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataiku_api_client.egg-info/dependency_links.txt +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataiku_api_client.egg-info/requires.txt +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataiku_api_client.egg-info/top_level.txt +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/apinode_admin/__init__.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/apinode_admin/auth.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/apinode_admin/service.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/apinode_admin_client.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/apinode_client.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/auth.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/base_client.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/__init__.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/admin.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/agent_review.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/agent_tool.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/analysis.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/apideployer.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/apiservice.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/app.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/businessapp.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/codestudio.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/continuousactivity.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/dashboard.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/data_collection.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/data_directories_footprint.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/data_quality.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/dataset.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/discussion.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/document_extractor.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/drift.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/enterprise_asset_library.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/evaluationcomparison.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/evaluationstore.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/feature_store.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/flow.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/future.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/insight.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/job.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/jupyternotebook.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/knowledgebank.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/labeling_task.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/langchain/__init__.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/langchain/embeddings.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/langchain/knowledge_bank.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/langchain/llm.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/langchain/utils.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/llm.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/llm_tracing/__init__.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/macro.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/managedfolder.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/meaning.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/messaging_channel.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/metrics.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/ml.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/mlflow.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/modelcomparison.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/modelevaluationstore.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/notebook.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/plugin.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/project_standards.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/projectdeployer.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/projectfolder.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/projectlibrary.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/retrieval_augmented_llm.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/savedmodel.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/scenario.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/semantic_model.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/sqlnotebook.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/sqlquery.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/statistics.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/streaming_endpoint.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/tools/__init__.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/tools/codegen.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/tools/langchain.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/unifiedmonitoring.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/utils.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/webapp.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/wiki.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss/workspace.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss_plugin_mlflow/__init__.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss_plugin_mlflow/artifact_repository.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss_plugin_mlflow/header_provider.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/dss_plugin_mlflow/utils.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/fm/__init__.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/fm/cloudaccounts.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/fm/future.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/fm/instances.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/fm/instancesettingstemplates.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/fm/loadbalancers.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/fm/tenant.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/fm/virtualnetworks.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/fmclient.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern/__init__.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern/admin.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern/admin_blueprint_designer.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern/admin_custom_pages_handler.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern/admin_roles_permissions_handler.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern/artifact.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern/artifact_search.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern/blueprint.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern/custom_page.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern/future.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern/uploaded_file.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/govern/users_container.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/iam/__init__.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/iam/settings.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataikuapi/utils.py +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/requirements.txt +0 -0
- {dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/setup.cfg +0 -0
{dataiku_api_client-14.4.0/dataiku_api_client.egg-info → dataiku_api_client-14.4.2}/PKG-INFO
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dataiku-api-client
|
|
3
|
-
Version: 14.4.
|
|
3
|
+
Version: 14.4.2
|
|
4
4
|
Summary: Python API client for Dataiku APIs
|
|
5
5
|
Home-page: https://www.dataiku.com
|
|
6
|
-
Download-URL: https://github.com/dataiku/dataiku-api-client-python/tarball/14.4.
|
|
6
|
+
Download-URL: https://github.com/dataiku/dataiku-api-client-python/tarball/14.4.2
|
|
7
7
|
Author: Dataiku
|
|
8
8
|
Author-email: support@dataiku.com
|
|
9
9
|
License: Apache Software License
|
|
@@ -36,6 +36,16 @@ Changelog
|
|
|
36
36
|
==========
|
|
37
37
|
|
|
38
38
|
|
|
39
|
+
14.4.2 (2026-03-06)
|
|
40
|
+
-------------------
|
|
41
|
+
|
|
42
|
+
* Initial release for DSS 14.4.2
|
|
43
|
+
|
|
44
|
+
14.4.1 (2026-02-23)
|
|
45
|
+
-------------------
|
|
46
|
+
|
|
47
|
+
* Initial release for DSS 14.4.1
|
|
48
|
+
|
|
39
49
|
14.4.0 (2026-02-09)
|
|
40
50
|
-------------------
|
|
41
51
|
|
{dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2/dataiku_api_client.egg-info}/PKG-INFO
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dataiku-api-client
|
|
3
|
-
Version: 14.4.
|
|
3
|
+
Version: 14.4.2
|
|
4
4
|
Summary: Python API client for Dataiku APIs
|
|
5
5
|
Home-page: https://www.dataiku.com
|
|
6
|
-
Download-URL: https://github.com/dataiku/dataiku-api-client-python/tarball/14.4.
|
|
6
|
+
Download-URL: https://github.com/dataiku/dataiku-api-client-python/tarball/14.4.2
|
|
7
7
|
Author: Dataiku
|
|
8
8
|
Author-email: support@dataiku.com
|
|
9
9
|
License: Apache Software License
|
|
@@ -36,6 +36,16 @@ Changelog
|
|
|
36
36
|
==========
|
|
37
37
|
|
|
38
38
|
|
|
39
|
+
14.4.2 (2026-03-06)
|
|
40
|
+
-------------------
|
|
41
|
+
|
|
42
|
+
* Initial release for DSS 14.4.2
|
|
43
|
+
|
|
44
|
+
14.4.1 (2026-02-23)
|
|
45
|
+
-------------------
|
|
46
|
+
|
|
47
|
+
* Initial release for DSS 14.4.1
|
|
48
|
+
|
|
39
49
|
14.4.0 (2026-02-09)
|
|
40
50
|
-------------------
|
|
41
51
|
|
{dataiku_api_client-14.4.0 → dataiku_api_client-14.4.2}/dataiku_api_client.egg-info/SOURCES.txt
RENAMED
|
@@ -17,6 +17,7 @@ dataikuapi/base_client.py
|
|
|
17
17
|
dataikuapi/dssclient.py
|
|
18
18
|
dataikuapi/fmclient.py
|
|
19
19
|
dataikuapi/govern_client.py
|
|
20
|
+
dataikuapi/launchpad_client.py
|
|
20
21
|
dataikuapi/utils.py
|
|
21
22
|
dataikuapi/apinode_admin/__init__.py
|
|
22
23
|
dataikuapi/apinode_admin/auth.py
|
|
@@ -119,4 +120,12 @@ dataikuapi/govern/time_series.py
|
|
|
119
120
|
dataikuapi/govern/uploaded_file.py
|
|
120
121
|
dataikuapi/govern/users_container.py
|
|
121
122
|
dataikuapi/iam/__init__.py
|
|
122
|
-
dataikuapi/iam/settings.py
|
|
123
|
+
dataikuapi/iam/settings.py
|
|
124
|
+
dataikuapi/launchpad/__init__.py
|
|
125
|
+
dataikuapi/launchpad/exceptions.py
|
|
126
|
+
dataikuapi/launchpad/group.py
|
|
127
|
+
dataikuapi/launchpad/node.py
|
|
128
|
+
dataikuapi/launchpad/profile.py
|
|
129
|
+
dataikuapi/launchpad/response.py
|
|
130
|
+
dataikuapi/launchpad/task.py
|
|
131
|
+
dataikuapi/launchpad/user.py
|
|
@@ -8,3 +8,14 @@ from .apinode_admin_client import APINodeAdminClient
|
|
|
8
8
|
from .dss.recipe import GroupingRecipeCreator, UpsertRecipeCreator, JoinRecipeCreator, StackRecipeCreator, WindowRecipeCreator, SyncRecipeCreator, SamplingRecipeCreator, SQLQueryRecipeCreator, CodeRecipeCreator, SplitRecipeCreator, SortRecipeCreator, TopNRecipeCreator, DistinctRecipeCreator, DownloadRecipeCreator, PredictionScoringRecipeCreator, ClusteringScoringRecipeCreator
|
|
9
9
|
|
|
10
10
|
from .dss.admin import DSSUserImpersonationRule, DSSGroupImpersonationRule
|
|
11
|
+
|
|
12
|
+
import sys
|
|
13
|
+
import warnings
|
|
14
|
+
|
|
15
|
+
if sys.version_info >= (3, 6):
|
|
16
|
+
from .launchpad_client import LaunchpadClient
|
|
17
|
+
else:
|
|
18
|
+
warnings.warn(
|
|
19
|
+
"dataikuapi.LaunchpadClient is only available for Python 3.6 and above",
|
|
20
|
+
DeprecationWarning,
|
|
21
|
+
)
|
|
@@ -189,13 +189,13 @@ class DSSAgentVersionSettings(object):
|
|
|
189
189
|
:rtype: :class:`str`
|
|
190
190
|
"""
|
|
191
191
|
if not self._agent_settings.type == "TOOLS_USING_AGENT":
|
|
192
|
-
raise ValueError("Only valid for Visual Agents")
|
|
192
|
+
raise ValueError("Only valid for Simple Visual Agents")
|
|
193
193
|
return self._version_settings["toolsUsingAgentSettings"]["llmId"]
|
|
194
194
|
|
|
195
195
|
@llm_id.setter
|
|
196
196
|
def llm_id(self, value):
|
|
197
197
|
if not self._agent_settings.type == "TOOLS_USING_AGENT":
|
|
198
|
-
raise ValueError("Only valid for Visual Agents")
|
|
198
|
+
raise ValueError("Only valid for Simple Visual Agents")
|
|
199
199
|
self._version_settings["toolsUsingAgentSettings"]["llmId"] = value
|
|
200
200
|
|
|
201
201
|
@property
|
|
@@ -206,6 +206,8 @@ class DSSAgentVersionSettings(object):
|
|
|
206
206
|
Each tool is a dict, containing at least "toolRef", which is the identifier of the tool.
|
|
207
207
|
The dict may also contain "additionalDescription" which is added to the description of the tool
|
|
208
208
|
"""
|
|
209
|
+
if not self._agent_settings.type == "TOOLS_USING_AGENT":
|
|
210
|
+
raise ValueError("Only valid for Simple Visual Agents")
|
|
209
211
|
return self._version_settings["toolsUsingAgentSettings"]["tools"]
|
|
210
212
|
|
|
211
213
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import textwrap
|
|
1
2
|
import warnings
|
|
2
3
|
from typing import Optional, Callable, Literal, Type, Any, Dict
|
|
3
4
|
|
|
@@ -31,6 +32,7 @@ class DKUStructuredTool(StructuredTool):
|
|
|
31
32
|
def dku_from_function(
|
|
32
33
|
cls,
|
|
33
34
|
func: Optional[Callable] = None,
|
|
35
|
+
coroutine: Optional[Callable] = None,
|
|
34
36
|
name: Optional[str] = None,
|
|
35
37
|
description: Optional[str] = None,
|
|
36
38
|
return_direct: bool = False,
|
|
@@ -96,12 +98,12 @@ class DKUStructuredTool(StructuredTool):
|
|
|
96
98
|
name = name or source_function.__name__
|
|
97
99
|
if args_schema is None and infer_schema:
|
|
98
100
|
# schema name is appended within function
|
|
99
|
-
args_schema = create_schema_from_function(
|
|
101
|
+
args_schema = create_schema_from_function( # noqa: F821
|
|
100
102
|
name,
|
|
101
103
|
source_function,
|
|
102
104
|
parse_docstring=parse_docstring,
|
|
103
105
|
error_on_invalid_docstring=error_on_invalid_docstring,
|
|
104
|
-
filter_args=_filter_schema_args(source_function),
|
|
106
|
+
filter_args=_filter_schema_args(source_function), # noqa: F821
|
|
105
107
|
)
|
|
106
108
|
description_ = description
|
|
107
109
|
if description is None and not parse_docstring:
|
|
@@ -2740,6 +2740,7 @@ class DSSProject(object):
|
|
|
2740
2740
|
* FAISS *(not recommended)*
|
|
2741
2741
|
* QDRANT_LOCAL *(not recommended)*
|
|
2742
2742
|
* MILVUS_LOCAL
|
|
2743
|
+
* MILVUS_REMOTE
|
|
2743
2744
|
|
|
2744
2745
|
:param str embedding_llm_id: The id of the embedding LLM. It has to have the TEXT_EMBEDDING_EXTRACTION purpose.
|
|
2745
2746
|
:param Optional[dict] settings: Additional settings for the knowledge bank, including:
|
|
@@ -2891,7 +2892,7 @@ class DSSProject(object):
|
|
|
2891
2892
|
Create a new agent in the project, and return a handle to interact with it
|
|
2892
2893
|
|
|
2893
2894
|
:param str name: The name for the new agent. This does not need to be unique
|
|
2894
|
-
:param str type: one of PYTHON_AGENT, PLUGIN_AGENT or
|
|
2895
|
+
:param str type: one of PYTHON_AGENT, PLUGIN_AGENT, TOOLS_USING_AGENT or STRUCTURED_AGENT (Visual Agent)
|
|
2895
2896
|
:param str plugin_agent_type: only if type=PLUGIN_AGENT, the id of the custom plugin component
|
|
2896
2897
|
|
|
2897
2898
|
:returns: a :class:`dataikuapi.dss.agent.DSSAgent` handle to interact with the newly-created agent
|
|
@@ -3,7 +3,7 @@ import datetime
|
|
|
3
3
|
import dateutil.parser
|
|
4
4
|
|
|
5
5
|
from ..utils import DataikuException
|
|
6
|
-
from .utils import DSSTaggableObjectListItem, DSSTaggableObjectSettings, DSSFilterOperator, DSSFilter
|
|
6
|
+
from .utils import DSSTaggableObjectListItem, DSSTaggableObjectSettings, DSSFilterOperator, DSSFilter, DSSInfoMessage
|
|
7
7
|
from .discussion import DSSObjectDiscussions
|
|
8
8
|
from .llm import DSSLLM, DSSLLMListItem
|
|
9
9
|
from copy import deepcopy
|
|
@@ -2165,6 +2165,8 @@ class SplitRecipeSettings(DSSRecipeSettings):
|
|
|
2165
2165
|
:return: The current split mode.
|
|
2166
2166
|
:rtype: str
|
|
2167
2167
|
"""
|
|
2168
|
+
if "mode" not in self.obj_payload:
|
|
2169
|
+
raise DataikuException("Split mode not set yet, cannot be retrieved.")
|
|
2168
2170
|
return self.obj_payload["mode"]
|
|
2169
2171
|
|
|
2170
2172
|
def set_split_on_single_column_values(self, column_name, splits, default_output_index=None, default_output=None):
|
|
@@ -2174,19 +2176,23 @@ class SplitRecipeSettings(DSSRecipeSettings):
|
|
|
2174
2176
|
In this mode, records are mapped to a given output dataset based on the value of the column column_name
|
|
2175
2177
|
|
|
2176
2178
|
:param str column_name: name of the column used as reference to split records
|
|
2177
|
-
:param list splits: list of datasets data are mapped to when conditions are fulfilled
|
|
2178
|
-
|
|
2179
|
-
|
|
2179
|
+
:param list splits: list of datasets data are mapped to when conditions are fulfilled.
|
|
2180
|
+
Each split is a dict with the following keys :
|
|
2181
|
+
|
|
2182
|
+
* **output** : dict that dictates the behavior of this split with the following values :
|
|
2183
|
+
|
|
2180
2184
|
* **mode** : str that can only be equal to 'drop', 'dataset' or 'index'.
|
|
2185
|
+
|
|
2181
2186
|
* if set to 'drop', all the data that matches the conditions of this split are dropped
|
|
2182
2187
|
* if set to 'dataset', all the data that matches the conditions of this split are sent to the dataset with the name of **value**
|
|
2183
2188
|
* if set to 'index', all the data that matches the conditions of this split are dispatched to the dataset at the index of **value**
|
|
2189
|
+
|
|
2184
2190
|
* **value** : bool|str|None depending on the value of **mode**
|
|
2191
|
+
|
|
2185
2192
|
* **value** : condition to map the record to the given output dataset, which is if the record's **column_name** value is the same as **value**
|
|
2186
2193
|
:param integer default_output_index: All remaining rows that are put in the Dataset corresponding to the default_output_index. If both default_output_index and default_output are unset, the data is dropped.
|
|
2187
2194
|
:param str default_output: All remaining rows that are put in the Dataset whose name corresponds to the default_output. If set but no dataset name matches, raises an Exception. If both default_output_index and default_output are unset, the data is dropped.
|
|
2188
2195
|
"""
|
|
2189
|
-
|
|
2190
2196
|
dataset = self.project.get_dataset(self.get_flat_input_refs()[0])
|
|
2191
2197
|
schema_column = next((item for item in dataset.get_schema()['columns'] if item.get("name") == column_name), None)
|
|
2192
2198
|
if schema_column is None:
|
|
@@ -2207,20 +2213,29 @@ class SplitRecipeSettings(DSSRecipeSettings):
|
|
|
2207
2213
|
|
|
2208
2214
|
:param str column_name: name of the column used as reference to split records
|
|
2209
2215
|
:param str column_type: type of the column used as reference to split records, can only be date, datetime or num
|
|
2210
|
-
:param list splits: list of datasets data are mapped to when conditions are fulfilled
|
|
2211
|
-
|
|
2212
|
-
|
|
2216
|
+
:param list splits: list of datasets data are mapped to when conditions are fulfilled.
|
|
2217
|
+
Each split is a dict with the following keys :
|
|
2218
|
+
|
|
2219
|
+
* **output** : dict that dictates the behavior of this split with the following values :
|
|
2220
|
+
|
|
2213
2221
|
* **mode** : str that can only be equal to 'drop', 'dataset' or 'index'.
|
|
2222
|
+
|
|
2214
2223
|
* if set to 'drop', all the data that matches the conditions of this split are dropped
|
|
2215
2224
|
* if set to 'dataset', all the data that matches the conditions of this split are sent to the dataset with the name of **value**
|
|
2216
2225
|
* if set to 'index', all the data that matches the conditions of this split are dispatched to the dataset at the index of **value**
|
|
2226
|
+
|
|
2217
2227
|
* **value** : bool|str|None depending on the value of **mode**
|
|
2228
|
+
|
|
2218
2229
|
* **min** : lower bound of the range split, can be a number, a date, a datetime or a string with format %Y-%m-%d %H:%M or %Y-%m-%d, and must correspond to the type set in column_type
|
|
2219
2230
|
* **max** : upper bound of the range split, can be a number, a date, a datetime or a string with format %Y-%m-%d %H:%M or %Y-%m-%d, and must correspond to the type set in column_type
|
|
2220
2231
|
* **include_min** (optional) : if true, the lower bound value is included in the range split, true by default
|
|
2221
2232
|
* **include_max** (optional) : if true, the upper bound value is included in the range split, true by default
|
|
2222
|
-
|
|
2223
|
-
:param
|
|
2233
|
+
|
|
2234
|
+
:param integer default_output_index: All remaining rows that are put in the Dataset
|
|
2235
|
+
corresponding to the default_output_index. If both default_output_index and default_output are unset, the data is dropped.
|
|
2236
|
+
|
|
2237
|
+
:param str default_output: All remaining rows that are put in the Dataset whose name corresponds to the default_output.
|
|
2238
|
+
If set but no dataset name matches, raises an Exception. If both default_output_index and default_output are unset, the data is dropped.
|
|
2224
2239
|
"""
|
|
2225
2240
|
self.obj_payload["mode"] = "RANGE"
|
|
2226
2241
|
self.obj_payload["column"] = column_name
|
|
@@ -2234,15 +2249,22 @@ class SplitRecipeSettings(DSSRecipeSettings):
|
|
|
2234
2249
|
|
|
2235
2250
|
In this mode, records are mapped randomly to a given output dataset based on a ratio of data to be dispatched
|
|
2236
2251
|
|
|
2237
|
-
:param list splits: list of datasets data are mapped to when conditions are fulfilled
|
|
2238
|
-
|
|
2239
|
-
|
|
2252
|
+
:param list splits: list of datasets data are mapped to when conditions are fulfilled.
|
|
2253
|
+
|
|
2254
|
+
Each split is a dict with the following keys :
|
|
2255
|
+
|
|
2256
|
+
* **output** : dict that dictates the behavior of this split with the following values :
|
|
2257
|
+
|
|
2240
2258
|
* **mode** : str that can only be equal to 'drop', 'dataset' or 'index'.
|
|
2259
|
+
|
|
2241
2260
|
* if set to 'drop', all the data that matches the conditions of this split are dropped
|
|
2242
2261
|
* if set to 'dataset', all the data that matches the conditions of this split are sent to the dataset with the name of **value**
|
|
2243
2262
|
* if set to 'index', all the data that matches the conditions of this split are dispatched to the dataset at the index of **value**
|
|
2263
|
+
|
|
2244
2264
|
* **value** : bool|str|None depending on the value of **mode**
|
|
2265
|
+
|
|
2245
2266
|
* **share** : float between 0 and 100 that describes the ratio of records to be mapped to this dataset
|
|
2267
|
+
|
|
2246
2268
|
:param integer seed: Seed used to initialize the random number generator.
|
|
2247
2269
|
:param integer default_output_index: All remaining rows that are put in the Dataset corresponding to the default_output_index. If both default_output_index and default_output are unset, the data is dropped.
|
|
2248
2270
|
:param str default_output: All remaining rows that are put in the Dataset whose name corresponds to the default_output. If set but no dataset name matches, raises an Exception. If both default_output_index and default_output are unset, the data is dropped.
|
|
@@ -2263,15 +2285,21 @@ class SplitRecipeSettings(DSSRecipeSettings):
|
|
|
2263
2285
|
Grouping keys must take sufficiently diverse values, otherwise the split cannot be fair.
|
|
2264
2286
|
|
|
2265
2287
|
:param list random_columns: list of string corresponding to the list of input columns to group on.
|
|
2266
|
-
:param list splits: list of datasets data are mapped to when conditions are fulfilled
|
|
2267
|
-
|
|
2268
|
-
|
|
2288
|
+
:param list splits: list of datasets data are mapped to when conditions are fulfilled.
|
|
2289
|
+
Each split is a dict with the following keys :
|
|
2290
|
+
|
|
2291
|
+
* **output** : dict that dictates the behavior of this split with the following values :
|
|
2292
|
+
|
|
2269
2293
|
* **mode** : str that can only be equal to 'drop', 'dataset' or 'index'.
|
|
2294
|
+
|
|
2270
2295
|
* if set to 'drop', all the data that matches the conditions of this split are dropped
|
|
2271
2296
|
* if set to 'dataset', all the data that matches the conditions of this split are sent to the dataset with the name of **value**
|
|
2272
2297
|
* if set to 'index', all the data that matches the conditions of this split are dispatched to the dataset at the index of **value**
|
|
2298
|
+
|
|
2273
2299
|
* **value** : bool|str|None depending on the value of **mode**
|
|
2300
|
+
|
|
2274
2301
|
* **share** : float between 0 and 100 that describes the ratio of records to be mapped to this dataset
|
|
2302
|
+
|
|
2275
2303
|
:param integer seed: Seed used to initialize the random number generator.
|
|
2276
2304
|
:param integer default_output_index: All remaining rows that are put in the Dataset corresponding to the default_output_index. If both default_output_index and default_output are unset, the data is dropped.
|
|
2277
2305
|
:param str default_output: All remaining rows that are put in the Dataset whose name corresponds to the default_output. If set but no dataset name matches, raises an Exception. If both default_output_index and default_output are unset, the data is dropped.
|
|
@@ -2290,15 +2318,21 @@ class SplitRecipeSettings(DSSRecipeSettings):
|
|
|
2290
2318
|
|
|
2291
2319
|
Use the methods on :class:`dataikuapi.dss.utils.DSSFilter` to build filter definition.
|
|
2292
2320
|
|
|
2293
|
-
:param list splits: list of datasets data are mapped to when conditions are fulfilled
|
|
2294
|
-
|
|
2295
|
-
|
|
2321
|
+
:param list splits: list of datasets data are mapped to when conditions are fulfilled.
|
|
2322
|
+
Each split is a dict with the following keys :
|
|
2323
|
+
|
|
2324
|
+
* **output** : dict that dictates the behavior of this split with the following values :
|
|
2325
|
+
|
|
2296
2326
|
* **mode** : str that can only be equal to 'drop', 'dataset' or 'index'.
|
|
2327
|
+
|
|
2297
2328
|
* if set to 'drop', all the data that matches the conditions of this split are dropped
|
|
2298
2329
|
* if set to 'dataset', all the data that matches the conditions of this split are sent to the dataset with the name of **value**
|
|
2299
2330
|
* if set to 'index', all the data that matches the conditions of this split are dispatched to the dataset at the index of **value**
|
|
2331
|
+
|
|
2300
2332
|
* **value** : bool|str|None depending on the value of **mode**
|
|
2333
|
+
|
|
2301
2334
|
* **filter** : DSSFilter filter object to be constructed from the static methods in the helper class dataikuapi.dss.utils.DSSFilter
|
|
2335
|
+
|
|
2302
2336
|
:param integer default_output_index: All remaining rows that are put in the Dataset corresponding to the default_output_index. If both default_output_index and default_output are unset, the data is dropped.
|
|
2303
2337
|
:param str default_output: All remaining rows that are put in the Dataset whose name corresponds to the default_output. If set but no dataset name matches, raises an Exception. If both default_output_index and default_output are unset, the data is dropped.
|
|
2304
2338
|
"""
|
|
@@ -2312,19 +2346,28 @@ class SplitRecipeSettings(DSSRecipeSettings):
|
|
|
2312
2346
|
|
|
2313
2347
|
In this mode, records are ordered based on the column name and order listed in centile_orders, then mapped to a given output dataset based on a ratio of data to be dispatched
|
|
2314
2348
|
|
|
2315
|
-
:param list centile_orders: list of columns data are ordered by before being dispatched to output datasets
|
|
2316
|
-
|
|
2349
|
+
:param list centile_orders: list of columns data are ordered by before being dispatched to output datasets.
|
|
2350
|
+
|
|
2351
|
+
Each centile_order is a dict with the following keys :
|
|
2352
|
+
|
|
2317
2353
|
* **column** : name of the column used as reference to order records
|
|
2318
2354
|
* **desc** : if true, the data is ordered in descending order, otherwise in ascending order
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2355
|
+
|
|
2356
|
+
:param list splits: list of datasets data are mapped to when conditions are fulfilled.
|
|
2357
|
+
Each split is a dict with the following keys :
|
|
2358
|
+
|
|
2359
|
+
* **output** : dict that dictates the behavior of this split with the following values :
|
|
2360
|
+
|
|
2322
2361
|
* **mode** : str that can only be equal to 'drop', 'dataset' or 'index'.
|
|
2362
|
+
|
|
2323
2363
|
* if set to 'drop', all the data that matches the conditions of this split are dropped
|
|
2324
2364
|
* if set to 'dataset', all the data that matches the conditions of this split are sent to the dataset with the name of **value**
|
|
2325
2365
|
* if set to 'index', all the data that matches the conditions of this split are dispatched to the dataset at the index of **value**
|
|
2366
|
+
|
|
2326
2367
|
* **value** : bool|str|None depending on the value of **mode**
|
|
2368
|
+
|
|
2327
2369
|
* **share** : float between 0 and 100 that describes the ratio of records to be mapped to this dataset
|
|
2370
|
+
|
|
2328
2371
|
:param integer default_output_index: All remaining rows that are put in the Dataset corresponding to the default_output_index. If set to None, the data is dropped.
|
|
2329
2372
|
:param str default_output: All remaining rows that are put in the Dataset whose name corresponds to the default_output. If set but no dataset name matches, raises an Exception. If both default_output_index and default_output are unset, the data is dropped.
|
|
2330
2373
|
"""
|
|
@@ -2347,11 +2390,15 @@ class SplitRecipeSettings(DSSRecipeSettings):
|
|
|
2347
2390
|
Helper method to get the index for a split from its mode and value
|
|
2348
2391
|
|
|
2349
2392
|
* **output** : dict that dictates the behavior of this split with the following values :
|
|
2393
|
+
|
|
2350
2394
|
* **mode** : str that can only be equal to 'drop', 'dataset' or 'index'.
|
|
2395
|
+
|
|
2351
2396
|
* if set to 'drop', all the data that matches the conditions of this split are dropped
|
|
2352
2397
|
* if set to 'dataset', all the data that matches the conditions of this split are sent to the dataset with the name of **value**
|
|
2353
2398
|
* if set to 'index', all the data that matches the conditions of this split are dispatched to the dataset at the index of **value**
|
|
2399
|
+
|
|
2354
2400
|
* **value** : bool|str|None depending on the value of **mode**
|
|
2401
|
+
|
|
2355
2402
|
:param list available_outputs: list of all the available output datasets of the recipe.
|
|
2356
2403
|
:return: The index of the output dataset.
|
|
2357
2404
|
:rtype: int
|
|
@@ -2410,15 +2457,21 @@ class SplitRecipeSettings(DSSRecipeSettings):
|
|
|
2410
2457
|
"""
|
|
2411
2458
|
Helper method to format input splits as used by the recipe
|
|
2412
2459
|
|
|
2413
|
-
:param list splits: list of datasets data are mapped to when conditions are fulfilled
|
|
2414
|
-
|
|
2460
|
+
:param list splits: list of datasets data are mapped to when conditions are fulfilled.
|
|
2461
|
+
Each split is a dict with the following keys :
|
|
2462
|
+
|
|
2415
2463
|
* **output** : dict that dictates the behavior of this split with the following values :
|
|
2464
|
+
|
|
2416
2465
|
* **mode** : str that can only be equal to 'drop', 'dataset' or 'index'.
|
|
2466
|
+
|
|
2417
2467
|
* if set to 'drop', all the data that matches the conditions of this split are dropped
|
|
2418
2468
|
* if set to 'dataset', all the data that matches the conditions of this split are sent to the dataset with the name of **value**
|
|
2419
2469
|
* if set to 'index', all the data that matches the conditions of this split are dispatched to the dataset at the index of **value**
|
|
2470
|
+
|
|
2420
2471
|
* **value** : bool|str|None depending on the value of **mode**
|
|
2472
|
+
|
|
2421
2473
|
* [**keys**] : list of keys in the dict corresponding to conditions for the split to be satisfied, depending on the mode of split recipe used.
|
|
2474
|
+
|
|
2422
2475
|
:param list keys: list of dict keys to be copied in the newly created splits
|
|
2423
2476
|
:return: The formatted splits.
|
|
2424
2477
|
:rtype: list
|
|
@@ -2442,14 +2495,19 @@ class SplitRecipeSettings(DSSRecipeSettings):
|
|
|
2442
2495
|
Splits that did not exist are dropped
|
|
2443
2496
|
|
|
2444
2497
|
:param str column_type: type of the column the data is formatted to
|
|
2445
|
-
:param list splits: list of datasets data are mapped to when conditions are fulfilled
|
|
2446
|
-
|
|
2498
|
+
:param list splits: list of datasets data are mapped to when conditions are fulfilled.
|
|
2499
|
+
Each split is a dict with the following keys :
|
|
2500
|
+
|
|
2447
2501
|
* **output** : dict that dictates the behavior of this split with the following values :
|
|
2502
|
+
|
|
2448
2503
|
* **mode** : str that can only be equal to 'drop', 'dataset' or 'index'.
|
|
2504
|
+
|
|
2449
2505
|
* if set to 'drop', all the data that matches the conditions of this split are dropped
|
|
2450
2506
|
* if set to 'dataset', all the data that matches the conditions of this split are sent to the dataset with the name of **value**
|
|
2451
2507
|
* if set to 'index', all the data that matches the conditions of this split are dispatched to the dataset at the index of **value**
|
|
2508
|
+
|
|
2452
2509
|
* **value** : bool|str|None depending on the value of **mode**
|
|
2510
|
+
|
|
2453
2511
|
:return: The formatted splits.
|
|
2454
2512
|
:rtype: list
|
|
2455
2513
|
"""
|
|
@@ -2504,18 +2562,24 @@ class SplitRecipeSettings(DSSRecipeSettings):
|
|
|
2504
2562
|
|
|
2505
2563
|
:param str column_type: type of the column used as reference to split records, can only be date, datetime or num
|
|
2506
2564
|
:param str column_name: name of the column used as reference to split records
|
|
2507
|
-
:param list splits: list of datasets data are mapped to when conditions are fulfilled
|
|
2508
|
-
|
|
2509
|
-
|
|
2565
|
+
:param list splits: list of datasets data are mapped to when conditions are fulfilled.
|
|
2566
|
+
Each split is a dict with the following keys :
|
|
2567
|
+
|
|
2568
|
+
* **output** : dict that dictates the behavior of this split with the following values :
|
|
2569
|
+
|
|
2510
2570
|
* **mode** : str that can only be equal to 'drop', 'dataset' or 'index'.
|
|
2571
|
+
|
|
2511
2572
|
* if set to 'drop', all the data that matches the conditions of this split are dropped
|
|
2512
2573
|
* if set to 'dataset', all the data that matches the conditions of this split are sent to the dataset with the name of **value**
|
|
2513
2574
|
* if set to 'index', all the data that matches the conditions of this split are dispatched to the dataset at the index of **value**
|
|
2575
|
+
|
|
2514
2576
|
* **value** : bool|str|None depending on the value of **mode**
|
|
2577
|
+
|
|
2515
2578
|
* **min** : lower bound of the range split, can be a number, a date, a datetime or a string with format %Y-%m-%d %H:%M or %Y-%m-%d, and must correspond to the type set in column_type
|
|
2516
2579
|
* **max** : upper bound of the range split, can be a number, a date, a datetime or a string with format %Y-%m-%d %H:%M or %Y-%m-%d, and must correspond to the type set in column_type
|
|
2517
2580
|
* **include_min** (optional) : if true, the lower bound value is included in the range split, true by default
|
|
2518
2581
|
* **include_max** (optional) : if true, the upper bound value is included in the range split, true by default
|
|
2582
|
+
|
|
2519
2583
|
:return: The formatted splits.
|
|
2520
2584
|
:rtype: list
|
|
2521
2585
|
"""
|
|
@@ -2555,16 +2619,22 @@ class SplitRecipeSettings(DSSRecipeSettings):
|
|
|
2555
2619
|
:param str column_type: type of the column used as reference to split records, can only be date, datetime or num
|
|
2556
2620
|
:param str column_name: name of the column used as reference to split records
|
|
2557
2621
|
:param dict split: dict with the following keys :
|
|
2558
|
-
|
|
2622
|
+
|
|
2623
|
+
* **output** : dict that dictates the behavior of this split with the following values :
|
|
2624
|
+
|
|
2559
2625
|
* **mode** : str that can only be equal to 'drop', 'dataset' or 'index'.
|
|
2626
|
+
|
|
2560
2627
|
* if set to 'drop', all the data that matches the conditions of this split are dropped
|
|
2561
2628
|
* if set to 'dataset', all the data that matches the conditions of this split are sent to the dataset with the name of **value**
|
|
2562
2629
|
* if set to 'index', all the data that matches the conditions of this split are dispatched to the dataset at the index of **value**
|
|
2630
|
+
|
|
2563
2631
|
* **value** : bool|str|None depending on the value of **mode**
|
|
2632
|
+
|
|
2564
2633
|
* **min** : lower bound of the range split, can be a number, a date, a datetime or a string with format %Y-%m-%d %H:%M or %Y-%m-%d, and must correspond to the type set in column_type
|
|
2565
2634
|
* **max** : upper bound of the range split, can be a number, a date, a datetime or a string with format %Y-%m-%d %H:%M or %Y-%m-%d, and must correspond to the type set in column_type
|
|
2566
2635
|
* **include_min** (optional) : if true, the lower bound value is included in the range split, true by default
|
|
2567
2636
|
* **include_max** (optional) : if true, the upper bound value is included in the range split, true by default
|
|
2637
|
+
|
|
2568
2638
|
:return: An individual filter or None.
|
|
2569
2639
|
:rtype: DSSFilter or None
|
|
2570
2640
|
"""
|
|
@@ -1751,6 +1751,25 @@ class DSSClient(object):
|
|
|
1751
1751
|
resp = self._perform_json("POST", "/admin/container-exec/actions/build-cde-plugins-image")
|
|
1752
1752
|
return DSSFuture.from_resp(self, resp)
|
|
1753
1753
|
|
|
1754
|
+
def install_jupyter_support(self):
|
|
1755
|
+
"""
|
|
1756
|
+
Install or reinstall jupyter kernels support for all container configurations
|
|
1757
|
+
|
|
1758
|
+
:return: A :class:`~dataikuapi.dss.future.DSSFuture` representing the build process
|
|
1759
|
+
"""
|
|
1760
|
+
resp = self._perform_json("POST", "/admin/container-exec/actions/install-jupyter-support")
|
|
1761
|
+
return DSSFuture.from_resp(self, resp)
|
|
1762
|
+
|
|
1763
|
+
def remove_jupyter_support(self):
|
|
1764
|
+
"""
|
|
1765
|
+
Remove jupyter kernels support for all container configurations
|
|
1766
|
+
|
|
1767
|
+
:return: A :class:`~dataikuapi.dss.future.DSSFuture` representing the build process
|
|
1768
|
+
"""
|
|
1769
|
+
resp = self._perform_json("POST", "/admin/container-exec/actions/remove-jupyter-support")
|
|
1770
|
+
return DSSFuture.from_resp(self, resp)
|
|
1771
|
+
|
|
1772
|
+
|
|
1754
1773
|
|
|
1755
1774
|
########################################################
|
|
1756
1775
|
# Global Instance Info
|
|
@@ -34,7 +34,7 @@ class GovernTimeSeries(object):
|
|
|
34
34
|
"""
|
|
35
35
|
Push a list of values inside the time series.
|
|
36
36
|
|
|
37
|
-
:param list datapoints: a list of Python dict - The list of datapoints as Python dict containing the following keys "
|
|
37
|
+
:param list datapoints: a list of Python dict - The list of datapoints as Python dict containing the following keys "timestamp" (an epoch in milliseconds), and "value" (an object)
|
|
38
38
|
:param boolean upsert: (Optional) If set to false, values for existing timestamps will not be overridden. Default value is True.
|
|
39
39
|
:return: None
|
|
40
40
|
"""
|
|
@@ -897,7 +897,7 @@ class GovernClient(object):
|
|
|
897
897
|
"""
|
|
898
898
|
Create a new time series and push a list of values inside it.
|
|
899
899
|
|
|
900
|
-
:param list datapoints: (Optional) a list of Python dict - The list of datapoints as Python dict containing the following keys "
|
|
900
|
+
:param list datapoints: (Optional) a list of Python dict - The list of datapoints as Python dict containing the following keys "timestamp" (an epoch in milliseconds), and "value" (an object)
|
|
901
901
|
:return: the created time-series object
|
|
902
902
|
:rtype: a :class:`~dataikuapi.govern.time_series.GovernTimeSeries`
|
|
903
903
|
"""
|