mostlyai 5.2.3__tar.gz → 5.2.5__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.
- {mostlyai-5.2.3 → mostlyai-5.2.5}/PKG-INFO +5 -4
- {mostlyai-5.2.3 → mostlyai-5.2.5}/README.md +2 -1
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/__init__.py +1 -1
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/container/bucket_based.py +10 -14
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/synthetic_datasets.py +8 -8
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/client/_utils.py +0 -2
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/client/artifacts.py +2 -2
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/client/base.py +11 -8
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/client/connectors.py +17 -17
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/client/datasets.py +21 -5
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/client/generators.py +7 -5
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/client/synthetic_datasets.py +4 -1
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/domain.py +41 -15
- {mostlyai-5.2.3 → mostlyai-5.2.5}/pyproject.toml +3 -3
- {mostlyai-5.2.3 → mostlyai-5.2.5}/.gitignore +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/LICENSE +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/__init__.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/auto_detect.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/base.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/context.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/conversions.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/db/__init__.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/db/base.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/db/bigquery.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/db/databricks.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/db/hive.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/db/mssql.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/db/mysql.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/db/oracle.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/db/postgresql.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/db/snowflake.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/db/sqlite.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/db/types_coercion.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/dtype.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/exceptions.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/__init__.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/base.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/container/__init__.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/container/aws.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/container/azure.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/container/gcs.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/container/minio.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/table/__init__.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/table/csv.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/table/feather.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/table/json.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/table/parquet.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/file/utils.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/language_model.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/metadata_objects.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/non_context.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/progress_callback.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/pull.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/pull_context.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/pull_utils.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/push.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/util/__init__.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/util/common.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_data/util/kerberos.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/__init__.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/cli.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/connectors.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/__init__.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/jobs.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/migration.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/plan.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_analyze_training_data.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_create_data_report.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_create_model_report.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_deliver_data.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_encode_training_data.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_finalize_generation.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_finalize_training.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_generate_data.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_pull_training_data.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_train_model.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/generators.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/progress.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/routes.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/server.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/storage.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/client/__init__.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/client/_base_utils.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/client/_naming_conventions.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/client/api.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/client/exceptions.py +0 -0
- {mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mostlyai
|
|
3
|
-
Version: 5.2.
|
|
3
|
+
Version: 5.2.5
|
|
4
4
|
Summary: Synthetic Data SDK
|
|
5
5
|
Project-URL: homepage, https://app.mostly.ai/
|
|
6
6
|
Project-URL: repository, https://github.com/mostly-ai/mostlyai
|
|
@@ -59,7 +59,7 @@ Requires-Dist: fastapi<0.116,>=0.115.6; extra == 'local'
|
|
|
59
59
|
Requires-Dist: filelock>=3.16.1; extra == 'local'
|
|
60
60
|
Requires-Dist: gcsfs>=2023.1.0; extra == 'local'
|
|
61
61
|
Requires-Dist: joblib>=1.4.2; extra == 'local'
|
|
62
|
-
Requires-Dist: mostlyai-engine==1.5.
|
|
62
|
+
Requires-Dist: mostlyai-engine==1.5.6; extra == 'local'
|
|
63
63
|
Requires-Dist: mostlyai-qa==1.9.8; extra == 'local'
|
|
64
64
|
Requires-Dist: networkx<4,>=3.0; extra == 'local'
|
|
65
65
|
Requires-Dist: openpyxl>=3.1.5; extra == 'local'
|
|
@@ -81,7 +81,7 @@ Requires-Dist: fastapi<0.116,>=0.115.6; extra == 'local-gpu'
|
|
|
81
81
|
Requires-Dist: filelock>=3.16.1; extra == 'local-gpu'
|
|
82
82
|
Requires-Dist: gcsfs>=2023.1.0; extra == 'local-gpu'
|
|
83
83
|
Requires-Dist: joblib>=1.4.2; extra == 'local-gpu'
|
|
84
|
-
Requires-Dist: mostlyai-engine[gpu]==1.5.
|
|
84
|
+
Requires-Dist: mostlyai-engine[gpu]==1.5.6; extra == 'local-gpu'
|
|
85
85
|
Requires-Dist: mostlyai-qa==1.9.8; extra == 'local-gpu'
|
|
86
86
|
Requires-Dist: networkx<4,>=3.0; extra == 'local-gpu'
|
|
87
87
|
Requires-Dist: openpyxl>=3.1.5; extra == 'local-gpu'
|
|
@@ -126,11 +126,12 @@ The **Synthetic Data SDK** is a Python toolkit for high-fidelity, privacy-safe *
|
|
|
126
126
|
|
|
127
127
|
## Overview
|
|
128
128
|
|
|
129
|
-
The SDK allows you to programmatically create, browse and manage
|
|
129
|
+
The SDK allows you to programmatically create, browse and manage 4 key resources:
|
|
130
130
|
|
|
131
131
|
1. **Generators** - Train a synthetic data generator on your existing tabular or language data assets
|
|
132
132
|
2. **Synthetic Datasets** - Use a generator to create any number of synthetic samples to your needs
|
|
133
133
|
3. **Connectors** - Connect to any data source within your organization, for reading and writing data
|
|
134
|
+
4. **Datasets** - Create a dataset with instructions and optional connectors and files for Assistant (CLIENT mode only)
|
|
134
135
|
|
|
135
136
|
| Intent | Primitive | API Reference |
|
|
136
137
|
|-----------------------------------------------|-----------------------------------|---------------------------------------------------------------------------------------------------------------|
|
|
@@ -17,11 +17,12 @@ The **Synthetic Data SDK** is a Python toolkit for high-fidelity, privacy-safe *
|
|
|
17
17
|
|
|
18
18
|
## Overview
|
|
19
19
|
|
|
20
|
-
The SDK allows you to programmatically create, browse and manage
|
|
20
|
+
The SDK allows you to programmatically create, browse and manage 4 key resources:
|
|
21
21
|
|
|
22
22
|
1. **Generators** - Train a synthetic data generator on your existing tabular or language data assets
|
|
23
23
|
2. **Synthetic Datasets** - Use a generator to create any number of synthetic samples to your needs
|
|
24
24
|
3. **Connectors** - Connect to any data source within your organization, for reading and writing data
|
|
25
|
+
4. **Datasets** - Create a dataset with instructions and optional connectors and files for Assistant (CLIENT mode only)
|
|
25
26
|
|
|
26
27
|
| Intent | Primitive | API Reference |
|
|
27
28
|
|-----------------------------------------------|-----------------------------------|---------------------------------------------------------------------------------------------------------------|
|
|
@@ -84,13 +84,6 @@ class BucketBasedContainer(FileContainer, abc.ABC):
|
|
|
84
84
|
location = self.normalize_bucket_location(location)
|
|
85
85
|
return super().set_location(location)
|
|
86
86
|
|
|
87
|
-
def strip_slash(self, path: str):
|
|
88
|
-
if path is None:
|
|
89
|
-
return None
|
|
90
|
-
if path.startswith("/"):
|
|
91
|
-
path = path[1:]
|
|
92
|
-
return path
|
|
93
|
-
|
|
94
87
|
def list_locations(self, prefix: str | None) -> list[str]:
|
|
95
88
|
"""
|
|
96
89
|
List the available locations of a given prefix.
|
|
@@ -107,13 +100,16 @@ class BucketBasedContainer(FileContainer, abc.ABC):
|
|
|
107
100
|
locations = []
|
|
108
101
|
try:
|
|
109
102
|
protocol = self.path_prefix
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
103
|
+
prefix = prefix or ""
|
|
104
|
+
# strip ending slashes that are not part of the protocol
|
|
105
|
+
prefix = protocol + prefix.removeprefix(protocol).rstrip("/")
|
|
106
|
+
# NOTE: with gcsfs >= 2025.5.0, GCSFileSystem's exists() and isdir() do not work properly for root prefix
|
|
107
|
+
# so we need to ensure that those functions are not called in this case
|
|
108
|
+
is_root = prefix == protocol
|
|
109
|
+
if is_root or self.file_system.exists(prefix):
|
|
110
|
+
if not is_root:
|
|
111
|
+
# only add ending slash for directories
|
|
112
|
+
prefix = prefix + "/" if self.file_system.isdir(prefix) else prefix
|
|
117
113
|
# Directories come first
|
|
118
114
|
locations = sorted(
|
|
119
115
|
self.file_system.ls(prefix, detail=True),
|
|
@@ -97,14 +97,14 @@ def create_synthetic_dataset(
|
|
|
97
97
|
sd_tables.append(sd_table)
|
|
98
98
|
|
|
99
99
|
# create synthetic dataset
|
|
100
|
-
|
|
101
|
-
**
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
synthetic_dataset
|
|
100
|
+
full_config = {
|
|
101
|
+
**config.model_dump(),
|
|
102
|
+
"generation_status": ProgressStatus.new,
|
|
103
|
+
"tables": sd_tables,
|
|
104
|
+
}
|
|
105
|
+
if full_config.get("name") is None:
|
|
106
|
+
full_config["name"] = generator.name
|
|
107
|
+
synthetic_dataset = SyntheticDataset(**full_config)
|
|
108
108
|
synthetic_dataset.description = synthetic_dataset.description or generator.description
|
|
109
109
|
synthetic_dataset_dir = home_dir / "synthetic-datasets" / synthetic_dataset.id
|
|
110
110
|
write_synthetic_dataset_to_json(synthetic_dataset_dir, synthetic_dataset)
|
|
@@ -35,7 +35,6 @@ from rich.style import Style
|
|
|
35
35
|
from rich.table import Table
|
|
36
36
|
from rich.text import Text
|
|
37
37
|
|
|
38
|
-
from mostlyai.sdk.client._naming_conventions import map_camel_to_snake_case
|
|
39
38
|
from mostlyai.sdk.client.exceptions import APIError
|
|
40
39
|
from mostlyai.sdk.domain import (
|
|
41
40
|
Generator,
|
|
@@ -332,7 +331,6 @@ def harmonize_sd_config(
|
|
|
332
331
|
if config is None:
|
|
333
332
|
config = config_type()
|
|
334
333
|
elif isinstance(config, dict):
|
|
335
|
-
config = map_camel_to_snake_case(config)
|
|
336
334
|
config = config_type(**config)
|
|
337
335
|
|
|
338
336
|
size = size if size is not None else {}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
-
from typing import Any
|
|
16
15
|
|
|
17
16
|
from mostlyai.sdk.client.base import (
|
|
18
17
|
GET,
|
|
@@ -53,12 +52,13 @@ class _MostlyArtifactsClient(_MostlyBaseClient):
|
|
|
53
52
|
def _update(
|
|
54
53
|
self,
|
|
55
54
|
artifact_id: str,
|
|
56
|
-
config: ArtifactPatchConfig
|
|
55
|
+
config: ArtifactPatchConfig,
|
|
57
56
|
) -> Artifact:
|
|
58
57
|
response = self.request(
|
|
59
58
|
verb=PATCH,
|
|
60
59
|
path=[artifact_id],
|
|
61
60
|
json=config,
|
|
61
|
+
exclude_none_in_json=True,
|
|
62
62
|
response_type=Artifact,
|
|
63
63
|
)
|
|
64
64
|
return response
|
|
@@ -95,8 +95,8 @@ class _MostlyBaseClient:
|
|
|
95
95
|
response_type: type = dict,
|
|
96
96
|
raw_response: bool = False,
|
|
97
97
|
is_api_call: bool = True,
|
|
98
|
-
do_json_camel_case: bool = True,
|
|
99
98
|
do_response_dict_snake_case: bool = True,
|
|
99
|
+
exclude_none_in_json: bool = False,
|
|
100
100
|
do_include_client: bool = True,
|
|
101
101
|
extra_key_values: dict | None = None,
|
|
102
102
|
**kwargs,
|
|
@@ -110,7 +110,7 @@ class _MostlyBaseClient:
|
|
|
110
110
|
response_type (type | None): Type to cast the response into. Defaults to dict.
|
|
111
111
|
raw_response (bool): Whether to return the raw response object. Defaults to False.
|
|
112
112
|
is_api_call (bool): If False, skips prefixing API_SECTION and SECTION. Defaults to True.
|
|
113
|
-
|
|
113
|
+
exclude_none_in_json (bool): Whether to exclude fields with value None when dumping the json. Defaults to False.
|
|
114
114
|
do_response_dict_snake_case (bool): Convert the response dictionary to snake_case. Defaults to True.
|
|
115
115
|
do_include_client (bool): Include the client property in the returned object. Defaults to True.
|
|
116
116
|
extra_key_values (dict | None): Additional key-value pairs to include in the response object.
|
|
@@ -133,13 +133,16 @@ class _MostlyBaseClient:
|
|
|
133
133
|
if (request_size := _get_total_size(kwargs)) > MAX_REQUEST_SIZE:
|
|
134
134
|
warnings.warn(f"The overall {request_size=} exceeds {MAX_REQUEST_SIZE}.", UserWarning)
|
|
135
135
|
|
|
136
|
-
if "json" in kwargs
|
|
136
|
+
if "json" in kwargs:
|
|
137
137
|
if isinstance(kwargs["json"], BaseModel):
|
|
138
|
-
kwargs["json"] = kwargs["json"].model_dump(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
kwargs["json"] = kwargs["json"].model_dump(
|
|
139
|
+
mode="json", by_alias=True, exclude_none=exclude_none_in_json
|
|
140
|
+
)
|
|
141
|
+
else:
|
|
142
|
+
raise ValueError("argument `json` must have been converted to a pydantic model")
|
|
143
|
+
if "params" in kwargs:
|
|
144
|
+
# params should have been a dict with camelCase keys
|
|
145
|
+
# but just in case, we do a best effort conversion
|
|
143
146
|
kwargs["params"] = map_snake_to_camel_case(kwargs["params"])
|
|
144
147
|
|
|
145
148
|
try:
|
|
@@ -32,8 +32,12 @@ from mostlyai.sdk.client.base import (
|
|
|
32
32
|
from mostlyai.sdk.domain import (
|
|
33
33
|
Connector,
|
|
34
34
|
ConnectorConfig,
|
|
35
|
+
ConnectorDeleteDataConfig,
|
|
35
36
|
ConnectorListItem,
|
|
36
37
|
ConnectorPatchConfig,
|
|
38
|
+
ConnectorQueryConfig,
|
|
39
|
+
ConnectorReadDataConfig,
|
|
40
|
+
ConnectorWriteDataConfig,
|
|
37
41
|
IfExists,
|
|
38
42
|
)
|
|
39
43
|
|
|
@@ -137,11 +141,12 @@ class _MostlyConnectorsClient(_MostlyBaseClient):
|
|
|
137
141
|
Returns:
|
|
138
142
|
The created connector object.
|
|
139
143
|
"""
|
|
144
|
+
config = ConnectorConfig.model_validate(config)
|
|
140
145
|
connector = self.request(
|
|
141
146
|
verb=POST,
|
|
142
147
|
path=[],
|
|
143
148
|
json=config,
|
|
144
|
-
params={"
|
|
149
|
+
params={"testConnection": test_connection},
|
|
145
150
|
response_type=Connector,
|
|
146
151
|
)
|
|
147
152
|
cid = connector.id
|
|
@@ -156,14 +161,15 @@ class _MostlyConnectorsClient(_MostlyBaseClient):
|
|
|
156
161
|
def _update(
|
|
157
162
|
self,
|
|
158
163
|
connector_id: str,
|
|
159
|
-
config: ConnectorPatchConfig
|
|
164
|
+
config: ConnectorPatchConfig,
|
|
160
165
|
test_connection: bool | None = True,
|
|
161
166
|
) -> Connector:
|
|
162
167
|
response = self.request(
|
|
163
168
|
verb=PATCH,
|
|
164
169
|
path=[connector_id],
|
|
165
170
|
json=config,
|
|
166
|
-
params={"
|
|
171
|
+
params={"testConnection": test_connection},
|
|
172
|
+
exclude_none_in_json=True,
|
|
167
173
|
response_type=Connector,
|
|
168
174
|
)
|
|
169
175
|
return response
|
|
@@ -189,7 +195,7 @@ class _MostlyConnectorsClient(_MostlyBaseClient):
|
|
|
189
195
|
response = self.request(
|
|
190
196
|
verb=POST,
|
|
191
197
|
path=[connector_id, "read-data"],
|
|
192
|
-
json=
|
|
198
|
+
json=ConnectorReadDataConfig(location=location, limit=limit, shuffle=shuffle),
|
|
193
199
|
headers={
|
|
194
200
|
"Content-Type": "application/json",
|
|
195
201
|
"Accept": "application/octet-stream, application/json",
|
|
@@ -211,35 +217,29 @@ class _MostlyConnectorsClient(_MostlyBaseClient):
|
|
|
211
217
|
files = {
|
|
212
218
|
"file": ("data.parquet", buffer, "application/octet-stream"),
|
|
213
219
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
+
non_file_config = ConnectorWriteDataConfig(file=b"", location=location, if_exists=if_exists).model_dump(
|
|
221
|
+
mode="json", by_alias=True
|
|
222
|
+
)
|
|
223
|
+
non_file_config.pop("file")
|
|
220
224
|
self.request(
|
|
221
225
|
verb="POST",
|
|
222
226
|
path=[connector_id, "write-data"],
|
|
223
227
|
files=files,
|
|
224
|
-
data=
|
|
228
|
+
data=non_file_config,
|
|
225
229
|
)
|
|
226
230
|
|
|
227
231
|
def _delete_data(self, connector_id: str, location: str) -> None:
|
|
228
|
-
config_data = {
|
|
229
|
-
"location": location,
|
|
230
|
-
}
|
|
231
|
-
|
|
232
232
|
self.request(
|
|
233
233
|
verb="POST",
|
|
234
234
|
path=[connector_id, "delete-data"],
|
|
235
|
-
json=
|
|
235
|
+
json=ConnectorDeleteDataConfig(location=location),
|
|
236
236
|
)
|
|
237
237
|
|
|
238
238
|
def _query(self, connector_id: str, sql: str) -> pd.DataFrame:
|
|
239
239
|
response = self.request(
|
|
240
240
|
verb=POST,
|
|
241
241
|
path=[connector_id, "query"],
|
|
242
|
-
json=
|
|
242
|
+
json=ConnectorQueryConfig(sql=sql),
|
|
243
243
|
headers={
|
|
244
244
|
"Content-Type": "application/json",
|
|
245
245
|
"Accept": "application/octet-stream, application/json",
|
|
@@ -122,7 +122,7 @@ class _MostlyDatasetsClient(_MostlyBaseClient):
|
|
|
122
122
|
|
|
123
123
|
def create(self, config: DatasetConfig | dict[str, Any]) -> Dataset:
|
|
124
124
|
"""
|
|
125
|
-
Create a dataset.
|
|
125
|
+
Create a dataset with optional connectors and files.
|
|
126
126
|
|
|
127
127
|
Args:
|
|
128
128
|
config: Configuration for the dataset.
|
|
@@ -130,24 +130,39 @@ class _MostlyDatasetsClient(_MostlyBaseClient):
|
|
|
130
130
|
Returns:
|
|
131
131
|
The created dataset object.
|
|
132
132
|
|
|
133
|
-
Example for creating a dataset:
|
|
133
|
+
Example for creating a dataset with a connector:
|
|
134
134
|
```python
|
|
135
135
|
from mostlyai.sdk import MostlyAI
|
|
136
136
|
mostly = MostlyAI()
|
|
137
137
|
ds = mostly.datasets.create(
|
|
138
138
|
config=DatasetConfig(
|
|
139
139
|
name="INSERT_YOUR_DATASET_NAME",
|
|
140
|
-
description="
|
|
140
|
+
description="INSERT_YOUR_DATASET_INSTRUCTIONS",
|
|
141
141
|
connectors=[
|
|
142
142
|
DatasetConnector(
|
|
143
143
|
connector_id="INSERT_YOUR_CONNECTOR_ID",
|
|
144
|
-
|
|
144
|
+
locations=["LOCATION_1", "LOCATION_2"],
|
|
145
145
|
)
|
|
146
146
|
],
|
|
147
147
|
)
|
|
148
148
|
)
|
|
149
149
|
```
|
|
150
|
+
|
|
151
|
+
Example for creating a dataset with files:
|
|
152
|
+
```python
|
|
153
|
+
from mostlyai.sdk import MostlyAI
|
|
154
|
+
mostly = MostlyAI()
|
|
155
|
+
ds = mostly.datasets.create(
|
|
156
|
+
config=DatasetConfig(
|
|
157
|
+
name="INSERT_YOUR_DATASET_NAME",
|
|
158
|
+
description="INSERT_YOUR_DATASET_INSTRUCTIONS",
|
|
159
|
+
)
|
|
160
|
+
)
|
|
161
|
+
ds.upload_file("path/to/file_1.csv.gz")
|
|
162
|
+
ds.upload_file("path/to/file_2.txt")
|
|
163
|
+
```
|
|
150
164
|
"""
|
|
165
|
+
config = DatasetConfig.model_validate(config)
|
|
151
166
|
dataset = self.request(
|
|
152
167
|
verb=POST,
|
|
153
168
|
path=[],
|
|
@@ -164,12 +179,13 @@ class _MostlyDatasetsClient(_MostlyBaseClient):
|
|
|
164
179
|
def _update(
|
|
165
180
|
self,
|
|
166
181
|
dataset_id: str,
|
|
167
|
-
config: DatasetPatchConfig
|
|
182
|
+
config: DatasetPatchConfig,
|
|
168
183
|
) -> Dataset:
|
|
169
184
|
response = self.request(
|
|
170
185
|
verb=PATCH,
|
|
171
186
|
path=[dataset_id],
|
|
172
187
|
json=config,
|
|
188
|
+
exclude_none_in_json=True,
|
|
173
189
|
response_type=Dataset,
|
|
174
190
|
)
|
|
175
191
|
return response
|
|
@@ -17,7 +17,6 @@ import re
|
|
|
17
17
|
import tempfile
|
|
18
18
|
from collections.abc import Iterator
|
|
19
19
|
from pathlib import Path
|
|
20
|
-
from typing import Any
|
|
21
20
|
from urllib.parse import urlparse
|
|
22
21
|
|
|
23
22
|
import pandas as pd
|
|
@@ -36,6 +35,7 @@ from mostlyai.sdk.client.base import (
|
|
|
36
35
|
)
|
|
37
36
|
from mostlyai.sdk.domain import (
|
|
38
37
|
Generator,
|
|
38
|
+
GeneratorCloneConfig,
|
|
39
39
|
GeneratorConfig,
|
|
40
40
|
GeneratorListItem,
|
|
41
41
|
GeneratorPatchConfig,
|
|
@@ -170,8 +170,8 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
|
|
|
170
170
|
# status: DONE
|
|
171
171
|
```
|
|
172
172
|
"""
|
|
173
|
-
if isinstance(config, dict)
|
|
174
|
-
for table in config
|
|
173
|
+
if isinstance(config, dict):
|
|
174
|
+
for table in config.get("tables", []):
|
|
175
175
|
# convert `data` to base64-encoded Parquet files
|
|
176
176
|
if table.get("data") is not None:
|
|
177
177
|
if isinstance(table["data"], (str, Path)):
|
|
@@ -190,6 +190,7 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
|
|
|
190
190
|
if table.get("columns"):
|
|
191
191
|
# convert `columns` to list[dict], if provided as list[str]
|
|
192
192
|
table["columns"] = [{"name": col} if isinstance(col, str) else col for col in table["columns"]]
|
|
193
|
+
config = GeneratorConfig.model_validate(config)
|
|
193
194
|
generator = self.request(verb=POST, path=[], json=config, response_type=Generator)
|
|
194
195
|
gid = generator.id
|
|
195
196
|
if self.local:
|
|
@@ -286,11 +287,12 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
|
|
|
286
287
|
filename = f"generator-{generator_id[:8]}.zip"
|
|
287
288
|
return content_bytes, filename
|
|
288
289
|
|
|
289
|
-
def _update(self, generator_id: str, config: GeneratorPatchConfig
|
|
290
|
+
def _update(self, generator_id: str, config: GeneratorPatchConfig) -> Generator:
|
|
290
291
|
response = self.request(
|
|
291
292
|
verb=PATCH,
|
|
292
293
|
path=[generator_id],
|
|
293
294
|
json=config,
|
|
295
|
+
exclude_none_in_json=True,
|
|
294
296
|
response_type=Generator,
|
|
295
297
|
)
|
|
296
298
|
return response
|
|
@@ -303,7 +305,7 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
|
|
|
303
305
|
response = self.request(
|
|
304
306
|
verb=POST,
|
|
305
307
|
path=[generator_id, "clone"],
|
|
306
|
-
json=
|
|
308
|
+
json=GeneratorCloneConfig(training_status=training_status.upper()),
|
|
307
309
|
response_type=Generator,
|
|
308
310
|
)
|
|
309
311
|
return response
|
|
@@ -165,6 +165,7 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
|
|
|
165
165
|
# status: DONE
|
|
166
166
|
```
|
|
167
167
|
"""
|
|
168
|
+
config = SyntheticDatasetConfig.model_validate(config)
|
|
168
169
|
synthetic_dataset = self.request(
|
|
169
170
|
verb=POST,
|
|
170
171
|
path=[],
|
|
@@ -186,12 +187,13 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
|
|
|
186
187
|
def _update(
|
|
187
188
|
self,
|
|
188
189
|
synthetic_dataset_id: str,
|
|
189
|
-
config: SyntheticDatasetPatchConfig
|
|
190
|
+
config: SyntheticDatasetPatchConfig,
|
|
190
191
|
) -> SyntheticDataset:
|
|
191
192
|
response = self.request(
|
|
192
193
|
verb=PATCH,
|
|
193
194
|
path=[synthetic_dataset_id],
|
|
194
195
|
json=config,
|
|
196
|
+
exclude_none_in_json=True,
|
|
195
197
|
response_type=SyntheticDataset,
|
|
196
198
|
)
|
|
197
199
|
return response
|
|
@@ -335,6 +337,7 @@ class _MostlySyntheticProbesClient(_MostlyBaseClient):
|
|
|
335
337
|
Returns:
|
|
336
338
|
A dictionary mapping probe names to pandas DataFrames.
|
|
337
339
|
"""
|
|
340
|
+
config = SyntheticProbeConfig.model_validate(config)
|
|
338
341
|
dicts = self.request(
|
|
339
342
|
verb=POST,
|
|
340
343
|
path=[],
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
# generated by datamodel-codegen:
|
|
16
|
-
# timestamp: 2025-09-
|
|
16
|
+
# timestamp: 2025-09-23T08:04:50+00:00
|
|
17
17
|
|
|
18
18
|
from __future__ import annotations
|
|
19
19
|
|
|
@@ -631,7 +631,7 @@ class SourceForeignKey(CustomBaseModel):
|
|
|
631
631
|
return values
|
|
632
632
|
|
|
633
633
|
|
|
634
|
-
class GeneratorCloneTrainingStatus(Enum):
|
|
634
|
+
class GeneratorCloneTrainingStatus(str, Enum):
|
|
635
635
|
"""
|
|
636
636
|
The training status of the new generator. The available options are:
|
|
637
637
|
|
|
@@ -697,6 +697,11 @@ class SourceForeignKeyPatchConfig(CustomBaseModel):
|
|
|
697
697
|
)
|
|
698
698
|
|
|
699
699
|
|
|
700
|
+
class AssistantThreadSortField(str, Enum):
|
|
701
|
+
recency = "RECENCY"
|
|
702
|
+
last_message_at = "LAST_MESSAGE_AT"
|
|
703
|
+
|
|
704
|
+
|
|
700
705
|
class GeneratorSortField(str, Enum):
|
|
701
706
|
recency = "RECENCY"
|
|
702
707
|
no_of_likes = "NO_OF_LIKES"
|
|
@@ -1419,6 +1424,7 @@ class Price(CustomBaseModel):
|
|
|
1419
1424
|
The price information for a plan.
|
|
1420
1425
|
"""
|
|
1421
1426
|
|
|
1427
|
+
id: str | None = Field(None, description="The unique identifier of the price.")
|
|
1422
1428
|
value: float = Field(..., description="The price value.")
|
|
1423
1429
|
currency: str = Field(..., description="The currency code for the price.", examples=["USD"])
|
|
1424
1430
|
metadata: dict[str, str] = Field(..., description="The metadata of the price.")
|
|
@@ -1433,12 +1439,19 @@ class Plan(CustomBaseModel):
|
|
|
1433
1439
|
name: str = Field(..., description="The name of the plan.")
|
|
1434
1440
|
billing_interval: BillingInterval | None = Field(None, alias="billingInterval")
|
|
1435
1441
|
price: Price
|
|
1436
|
-
payment_url: AnyUrl | None = Field(None, alias="paymentUrl", description="The URL for purchasing this plan.")
|
|
1437
1442
|
description: str | None = Field(None, description="The description of the plan.")
|
|
1438
1443
|
features: list[str] | None = None
|
|
1439
1444
|
metadata: dict[str, str] | None = Field(None, description="The metadata of the plan.")
|
|
1440
1445
|
|
|
1441
1446
|
|
|
1447
|
+
class PaymentUrl(CustomBaseModel):
|
|
1448
|
+
"""
|
|
1449
|
+
The URL for purchasing a plan.
|
|
1450
|
+
"""
|
|
1451
|
+
|
|
1452
|
+
value: AnyUrl | None = None
|
|
1453
|
+
|
|
1454
|
+
|
|
1442
1455
|
class PlanUpdateConfig(CustomBaseModel):
|
|
1443
1456
|
"""
|
|
1444
1457
|
Request to upgrade or downgrade the user's plan.
|
|
@@ -2026,7 +2039,7 @@ class Dataset(CustomBaseModel):
|
|
|
2026
2039
|
"""
|
|
2027
2040
|
|
|
2028
2041
|
id: str = Field(..., description="The unique identifier of a dataset.")
|
|
2029
|
-
name: str
|
|
2042
|
+
name: str = Field(..., description="The name of a dataset.")
|
|
2030
2043
|
description: str | None = Field(None, description="The description of / instructions for a dataset.")
|
|
2031
2044
|
connectors: list[DatasetConnector] | None = None
|
|
2032
2045
|
files: list[str] | None = None
|
|
@@ -2040,6 +2053,8 @@ class Dataset(CustomBaseModel):
|
|
|
2040
2053
|
if isinstance(values, dict):
|
|
2041
2054
|
if "id" not in values:
|
|
2042
2055
|
values["id"] = str(uuid.uuid4())
|
|
2056
|
+
if values.get("name") is None:
|
|
2057
|
+
values["name"] = "New dataset"
|
|
2043
2058
|
return values
|
|
2044
2059
|
|
|
2045
2060
|
@field_validator("files", mode="after")
|
|
@@ -2128,7 +2143,7 @@ class DatasetListItem(CustomBaseModel):
|
|
|
2128
2143
|
"""
|
|
2129
2144
|
|
|
2130
2145
|
id: str = Field(..., description="The unique identifier of a dataset.")
|
|
2131
|
-
name: str
|
|
2146
|
+
name: str = Field(..., description="The name of a dataset.")
|
|
2132
2147
|
usage: DatasetUsage | None = None
|
|
2133
2148
|
metadata: Metadata | None = None
|
|
2134
2149
|
|
|
@@ -2210,6 +2225,8 @@ class Connector(CustomBaseModel):
|
|
|
2210
2225
|
if isinstance(values, dict):
|
|
2211
2226
|
if "id" not in values:
|
|
2212
2227
|
values["id"] = str(uuid.uuid4())
|
|
2228
|
+
if values.get("name") is None:
|
|
2229
|
+
values["name"] = "New connector"
|
|
2213
2230
|
return values
|
|
2214
2231
|
|
|
2215
2232
|
def update(
|
|
@@ -2244,7 +2261,7 @@ class Connector(CustomBaseModel):
|
|
|
2244
2261
|
)
|
|
2245
2262
|
self.client._update(
|
|
2246
2263
|
connector_id=self.id,
|
|
2247
|
-
config=patch_config
|
|
2264
|
+
config=patch_config,
|
|
2248
2265
|
test_connection=test_connection,
|
|
2249
2266
|
)
|
|
2250
2267
|
self.reload()
|
|
@@ -2358,7 +2375,12 @@ class Connector(CustomBaseModel):
|
|
|
2358
2375
|
c.write_data(df, 's3://my_bucket/path/to/file.csv') # write data to 'file.csv' in 'my_bucket' for a S3 storage connector
|
|
2359
2376
|
```
|
|
2360
2377
|
"""
|
|
2361
|
-
self.client._write_data(
|
|
2378
|
+
self.client._write_data(
|
|
2379
|
+
connector_id=self.id,
|
|
2380
|
+
data=data,
|
|
2381
|
+
location=location,
|
|
2382
|
+
if_exists=if_exists.upper(),
|
|
2383
|
+
)
|
|
2362
2384
|
|
|
2363
2385
|
def delete_data(self, location: str) -> None:
|
|
2364
2386
|
"""
|
|
@@ -2406,7 +2428,7 @@ class GeneratorListItem(CustomBaseModel):
|
|
|
2406
2428
|
"""
|
|
2407
2429
|
|
|
2408
2430
|
id: str = Field(..., description="The unique identifier of a generator.")
|
|
2409
|
-
name: str
|
|
2431
|
+
name: str = Field(..., description="The name of a generator.")
|
|
2410
2432
|
description: str | None = Field(None, description="The description of a generator.")
|
|
2411
2433
|
training_status: ProgressStatus = Field(..., alias="trainingStatus")
|
|
2412
2434
|
training_time: AwareDatetime | None = Field(
|
|
@@ -2663,7 +2685,7 @@ class SyntheticDatasetListItem(CustomBaseModel):
|
|
|
2663
2685
|
|
|
2664
2686
|
id: str = Field(..., description="The unique identifier of a synthetic dataset.")
|
|
2665
2687
|
metadata: Metadata | None = None
|
|
2666
|
-
name: str
|
|
2688
|
+
name: str = Field(..., description="The name of a synthetic dataset.")
|
|
2667
2689
|
description: str | None = Field(None, description="The description of a synthetic dataset.")
|
|
2668
2690
|
generation_status: ProgressStatus = Field(..., alias="generationStatus")
|
|
2669
2691
|
generation_time: AwareDatetime | None = Field(
|
|
@@ -2825,7 +2847,7 @@ class AssistantThreadListItem(CustomBaseModel):
|
|
|
2825
2847
|
|
|
2826
2848
|
id: str = Field(..., description="The unique identifier of a assistant thread.")
|
|
2827
2849
|
metadata: Metadata | None = None
|
|
2828
|
-
name: str
|
|
2850
|
+
name: str = Field(..., description="The name of a assistant thread.")
|
|
2829
2851
|
usage: AssistantThreadUsage | None = None
|
|
2830
2852
|
|
|
2831
2853
|
|
|
@@ -2836,7 +2858,7 @@ class AssistantThread(CustomBaseModel):
|
|
|
2836
2858
|
|
|
2837
2859
|
id: str = Field(..., description="The unique identifier of a assistant thread.")
|
|
2838
2860
|
metadata: Metadata | None = None
|
|
2839
|
-
name: str
|
|
2861
|
+
name: str = Field(..., description="The name of a assistant thread.")
|
|
2840
2862
|
session_status: AssistantThreadSessionStatus | None = Field(None, alias="sessionStatus")
|
|
2841
2863
|
messages: list[AssistantMessage] | None = Field(
|
|
2842
2864
|
None,
|
|
@@ -3427,7 +3449,7 @@ class Generator(CustomBaseModel):
|
|
|
3427
3449
|
"""
|
|
3428
3450
|
|
|
3429
3451
|
id: str = Field(..., description="The unique identifier of a generator.")
|
|
3430
|
-
name: str
|
|
3452
|
+
name: str = Field(..., description="The name of a generator.")
|
|
3431
3453
|
description: str | None = Field(None, description="The description of a generator.")
|
|
3432
3454
|
training_status: ProgressStatus = Field(..., alias="trainingStatus")
|
|
3433
3455
|
training_time: AwareDatetime | None = Field(
|
|
@@ -3456,6 +3478,8 @@ class Generator(CustomBaseModel):
|
|
|
3456
3478
|
if isinstance(values, dict):
|
|
3457
3479
|
if "id" not in values:
|
|
3458
3480
|
values["id"] = str(uuid.uuid4())
|
|
3481
|
+
if values.get("name") is None:
|
|
3482
|
+
values["name"] = "New generator"
|
|
3459
3483
|
if "training_status" not in values:
|
|
3460
3484
|
values["training_status"] = ProgressStatus.new
|
|
3461
3485
|
return values
|
|
@@ -3480,7 +3504,7 @@ class Generator(CustomBaseModel):
|
|
|
3480
3504
|
name=name,
|
|
3481
3505
|
description=description,
|
|
3482
3506
|
)
|
|
3483
|
-
self.client._update(generator_id=self.id, config=patch_config
|
|
3507
|
+
self.client._update(generator_id=self.id, config=patch_config)
|
|
3484
3508
|
self.reload()
|
|
3485
3509
|
|
|
3486
3510
|
def delete(self) -> None:
|
|
@@ -3736,7 +3760,7 @@ class SyntheticDataset(CustomBaseModel):
|
|
|
3736
3760
|
id: str = Field(..., description="The unique identifier of a synthetic dataset.")
|
|
3737
3761
|
generator_id: str | None = Field(None, alias="generatorId", description="The unique identifier of a generator.")
|
|
3738
3762
|
metadata: Metadata | None = None
|
|
3739
|
-
name: str
|
|
3763
|
+
name: str = Field(..., description="The name of a synthetic dataset.")
|
|
3740
3764
|
description: str | None = Field(None, description="The description of a synthetic dataset.")
|
|
3741
3765
|
generation_status: ProgressStatus = Field(..., alias="generationStatus")
|
|
3742
3766
|
generation_time: AwareDatetime | None = Field(
|
|
@@ -3769,6 +3793,8 @@ class SyntheticDataset(CustomBaseModel):
|
|
|
3769
3793
|
if isinstance(values, dict):
|
|
3770
3794
|
if "id" not in values:
|
|
3771
3795
|
values["id"] = str(uuid.uuid4())
|
|
3796
|
+
if values.get("name") is None:
|
|
3797
|
+
values["name"] = "New synthetic dataset"
|
|
3772
3798
|
if "generation_status" not in values:
|
|
3773
3799
|
values["generation_status"] = ProgressStatus.new
|
|
3774
3800
|
return values
|
|
@@ -3798,7 +3824,7 @@ class SyntheticDataset(CustomBaseModel):
|
|
|
3798
3824
|
)
|
|
3799
3825
|
self.client._update(
|
|
3800
3826
|
synthetic_dataset_id=self.id,
|
|
3801
|
-
config=patch_config
|
|
3827
|
+
config=patch_config,
|
|
3802
3828
|
)
|
|
3803
3829
|
self.reload()
|
|
3804
3830
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mostlyai"
|
|
3
|
-
version = "5.2.
|
|
3
|
+
version = "5.2.5"
|
|
4
4
|
description = "Synthetic Data SDK"
|
|
5
5
|
authors = [{ name = "MOSTLY AI", email = "dev@mostly.ai" }]
|
|
6
6
|
requires-python = ">=3.10,<3.14"
|
|
@@ -49,7 +49,7 @@ dependencies = [
|
|
|
49
49
|
local = [
|
|
50
50
|
# "mostlyai-engine @ git+https://github.com/mostly-ai/mostlyai-engine.git@main", # for development
|
|
51
51
|
# "mostlyai-qa @ git+https://github.com/mostly-ai/mostlyai-qa.git@main", # for development
|
|
52
|
-
"mostlyai-engine==1.5.
|
|
52
|
+
"mostlyai-engine==1.5.6", # for release
|
|
53
53
|
"mostlyai-qa==1.9.8", # for release
|
|
54
54
|
"fastapi>=0.115.6,<0.116",
|
|
55
55
|
"uvicorn>=0.34.0,<0.35",
|
|
@@ -75,7 +75,7 @@ local = [
|
|
|
75
75
|
local-gpu = [
|
|
76
76
|
# "mostlyai-engine[gpu] @ git+https://github.com/mostly-ai/mostlyai-engine.git@main", # for development
|
|
77
77
|
# "mostlyai-qa @ git+https://github.com/mostly-ai/mostlyai-qa.git@main", # for development
|
|
78
|
-
"mostlyai-engine[gpu]==1.5.
|
|
78
|
+
"mostlyai-engine[gpu]==1.5.6", # for release
|
|
79
79
|
"mostlyai-qa==1.9.8", # for release
|
|
80
80
|
"fastapi>=0.115.6,<0.116",
|
|
81
81
|
"uvicorn>=0.34.0,<0.35",
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_analyze_training_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_encode_training_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-5.2.3 → mostlyai-5.2.5}/mostlyai/sdk/_local/execution/step_generate_model_report_data.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|