mostlyai 5.8.0__tar.gz → 5.8.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.
- {mostlyai-5.8.0 → mostlyai-5.8.2}/PKG-INFO +3 -3
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/__init__.py +1 -1
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/auto_detect.py +3 -1
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/step_generate_data.py +1 -1
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/domain.py +7 -14
- {mostlyai-5.8.0 → mostlyai-5.8.2}/pyproject.toml +3 -3
- {mostlyai-5.8.0 → mostlyai-5.8.2}/.gitignore +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/LICENSE +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/README.md +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/__init__.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/base.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/context.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/conversions.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/db/__init__.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/db/base.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/db/bigquery.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/db/databricks.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/db/hive.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/db/mssql.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/db/mysql.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/db/oracle.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/db/postgresql.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/db/redshift.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/db/snowflake.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/db/sqlite.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/db/types_coercion.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/dtype.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/exceptions.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/__init__.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/base.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/container/__init__.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/container/aws.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/container/azure.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/container/bucket_based.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/container/gcs.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/container/minio.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/table/__init__.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/table/csv.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/table/feather.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/table/json.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/table/parquet.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/file/utils.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/language_model.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/metadata_objects.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/non_context.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/progress_callback.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/pull.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/pull_context.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/pull_utils.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/push.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/util/__init__.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/util/common.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_data/util/kerberos.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/__init__.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/cli.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/connectors.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/__init__.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/jobs.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/migration.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/plan.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/step_analyze_training_data.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/step_create_data_report.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/step_create_model_report.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/step_deliver_data.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/step_encode_training_data.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/step_finalize_generation.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/step_finalize_training.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/step_pull_training_data.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/step_train_model.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/generators.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/progress.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/routes.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/server.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/storage.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/synthetic_datasets.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/client/__init__.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/client/_base_utils.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/client/_naming_conventions.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/client/_utils.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/client/api.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/client/artifacts.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/client/base.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/client/connectors.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/client/datasets.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/client/exceptions.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/client/generators.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/client/synthetic_datasets.py +0 -0
- {mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mostlyai
|
|
3
|
-
Version: 5.8.
|
|
3
|
+
Version: 5.8.2
|
|
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
|
|
@@ -60,7 +60,7 @@ Requires-Dist: fastapi<0.116,>=0.115.6; extra == 'local'
|
|
|
60
60
|
Requires-Dist: filelock>=3.16.1; extra == 'local'
|
|
61
61
|
Requires-Dist: gcsfs>=2023.1.0; extra == 'local'
|
|
62
62
|
Requires-Dist: joblib>=1.4.2; extra == 'local'
|
|
63
|
-
Requires-Dist: mostlyai-engine==2.
|
|
63
|
+
Requires-Dist: mostlyai-engine==2.3.1; extra == 'local'
|
|
64
64
|
Requires-Dist: mostlyai-qa==1.9.8; extra == 'local'
|
|
65
65
|
Requires-Dist: networkx<4,>=3.0; extra == 'local'
|
|
66
66
|
Requires-Dist: openpyxl>=3.1.5; extra == 'local'
|
|
@@ -82,7 +82,7 @@ Requires-Dist: fastapi<0.116,>=0.115.6; extra == 'local-gpu'
|
|
|
82
82
|
Requires-Dist: filelock>=3.16.1; extra == 'local-gpu'
|
|
83
83
|
Requires-Dist: gcsfs>=2023.1.0; extra == 'local-gpu'
|
|
84
84
|
Requires-Dist: joblib>=1.4.2; extra == 'local-gpu'
|
|
85
|
-
Requires-Dist: mostlyai-engine[gpu]==2.
|
|
85
|
+
Requires-Dist: mostlyai-engine[gpu]==2.3.1; extra == 'local-gpu'
|
|
86
86
|
Requires-Dist: mostlyai-qa==1.9.8; extra == 'local-gpu'
|
|
87
87
|
Requires-Dist: networkx<4,>=3.0; extra == 'local-gpu'
|
|
88
88
|
Requires-Dist: openpyxl>=3.1.5; extra == 'local-gpu'
|
|
@@ -49,4 +49,4 @@ For more information, visit: https://mostly-ai.github.io/mostlyai/
|
|
|
49
49
|
from mostlyai.sdk.client.api import MostlyAI
|
|
50
50
|
|
|
51
51
|
__all__ = ["MostlyAI"]
|
|
52
|
-
__version__ = "5.8.
|
|
52
|
+
__version__ = "5.8.2" # Do not set this manually. Use poetry version [params].
|
|
@@ -98,7 +98,9 @@ def auto_detect_encoding_type(x: pd.Series) -> ModelEncodingType:
|
|
|
98
98
|
|
|
99
99
|
# if more than 5% of rows contain unique values
|
|
100
100
|
if len(x) >= 100 and x.value_counts().eq(1).reindex(x).mean() > 0.05:
|
|
101
|
-
if
|
|
101
|
+
if (
|
|
102
|
+
x.str.len().nunique() == 1 or x.str.len().max() <= 36
|
|
103
|
+
): # if all values are of the same length or shorter than 36 chars -> character encoding
|
|
102
104
|
return ModelEncodingType.tabular_character
|
|
103
105
|
else: # if values are of different lengths -> text encoding
|
|
104
106
|
return ModelEncodingType.language_text
|
|
@@ -102,7 +102,7 @@ def execute_step_generate_data(
|
|
|
102
102
|
extra_seed_dir.mkdir(parents=True, exist_ok=True)
|
|
103
103
|
|
|
104
104
|
extra_seed_data = sample_seed[extra_columns].copy()
|
|
105
|
-
context_fk = next((fk for fk in tgt_g_table.foreign_keys if fk.is_context), None)
|
|
105
|
+
context_fk = next((fk for fk in (tgt_g_table.foreign_keys or []) if fk.is_context), None)
|
|
106
106
|
if context_fk and context_fk.column in sample_seed.columns:
|
|
107
107
|
# for sequential tables, save context key + row index to align seed data after sequence completion
|
|
108
108
|
extra_seed_data[context_fk.column] = sample_seed[context_fk.column].astype("string[pyarrow]")
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
# generated by datamodel-codegen:
|
|
16
|
-
# timestamp: 2025-11-
|
|
16
|
+
# timestamp: 2025-11-28T16:55:10+00:00
|
|
17
17
|
|
|
18
18
|
from __future__ import annotations
|
|
19
19
|
|
|
@@ -1075,6 +1075,11 @@ class AssistantMessage(CustomBaseModel):
|
|
|
1075
1075
|
alias="tokensConsumed",
|
|
1076
1076
|
description="The number of tokens consumed by the assistant message.",
|
|
1077
1077
|
)
|
|
1078
|
+
created_at: AwareDatetime | None = Field(
|
|
1079
|
+
None,
|
|
1080
|
+
alias="createdAt",
|
|
1081
|
+
description="The UTC date and time when the message was created.",
|
|
1082
|
+
)
|
|
1078
1083
|
|
|
1079
1084
|
|
|
1080
1085
|
class ErrorMessage(CustomBaseModel):
|
|
@@ -3143,7 +3148,7 @@ class SourceTableConfig(CustomBaseModel):
|
|
|
3143
3148
|
@classmethod
|
|
3144
3149
|
def convert_data_before(cls, value):
|
|
3145
3150
|
# an empty (pd.DataFrame()) parquet in base64 is 800 chars. Assuming a shorter str is a URI
|
|
3146
|
-
if isinstance(value, Path) or (isinstance(value, str) and len(value) < 512):
|
|
3151
|
+
if isinstance(value, Path) or (isinstance(value, str) and len(value) > 0 and len(value) < 512):
|
|
3147
3152
|
_, value = read_table_from_path(value)
|
|
3148
3153
|
return (
|
|
3149
3154
|
convert_to_base64(value)
|
|
@@ -3266,18 +3271,6 @@ class SourceTableConfig(CustomBaseModel):
|
|
|
3266
3271
|
raise ValueError(f"Column '{primary_key}' is both a primary key and a foreign key.")
|
|
3267
3272
|
return self
|
|
3268
3273
|
|
|
3269
|
-
@model_validator(mode="after")
|
|
3270
|
-
def validate_data_or_connector_is_provided(self):
|
|
3271
|
-
if self.data is None and (self.source_connector_id is None or self.location is None):
|
|
3272
|
-
raise ValueError(
|
|
3273
|
-
"At least one input source must be provided: either `data`, or both `source_connector_id` and `location`."
|
|
3274
|
-
)
|
|
3275
|
-
elif self.data is not None and (self.source_connector_id is not None or self.location is not None):
|
|
3276
|
-
raise ValueError(
|
|
3277
|
-
"Only one input source is allowed: either `data`, or both `source_connector_id` and `location`."
|
|
3278
|
-
)
|
|
3279
|
-
return self
|
|
3280
|
-
|
|
3281
3274
|
|
|
3282
3275
|
class SourceTablePatchConfig(CustomBaseModel):
|
|
3283
3276
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mostlyai"
|
|
3
|
-
version = "5.8.
|
|
3
|
+
version = "5.8.2"
|
|
4
4
|
description = "Synthetic Data SDK"
|
|
5
5
|
authors = [{ name = "MOSTLY AI", email = "dev@mostly.ai" }]
|
|
6
6
|
requires-python = ">=3.10,<3.14"
|
|
@@ -50,7 +50,7 @@ dependencies = [
|
|
|
50
50
|
local = [
|
|
51
51
|
# "mostlyai-engine @ git+https://github.com/mostly-ai/mostlyai-engine.git@main", # for development
|
|
52
52
|
# "mostlyai-qa @ git+https://github.com/mostly-ai/mostlyai-qa.git@main", # for development
|
|
53
|
-
"mostlyai-engine==2.
|
|
53
|
+
"mostlyai-engine==2.3.1", # for release
|
|
54
54
|
"mostlyai-qa==1.9.8", # for release
|
|
55
55
|
"fastapi>=0.115.6,<0.116",
|
|
56
56
|
"uvicorn>=0.34.0,<0.35",
|
|
@@ -76,7 +76,7 @@ local = [
|
|
|
76
76
|
local-gpu = [
|
|
77
77
|
# "mostlyai-engine[gpu] @ git+https://github.com/mostly-ai/mostlyai-engine.git@main", # for development
|
|
78
78
|
# "mostlyai-qa @ git+https://github.com/mostly-ai/mostlyai-qa.git@main", # for development
|
|
79
|
-
"mostlyai-engine[gpu]==2.
|
|
79
|
+
"mostlyai-engine[gpu]==2.3.1", # for release
|
|
80
80
|
"mostlyai-qa==1.9.8", # for release
|
|
81
81
|
"fastapi>=0.115.6,<0.116",
|
|
82
82
|
"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
|
|
File without changes
|
|
File without changes
|
{mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/step_analyze_training_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-5.8.0 → mostlyai-5.8.2}/mostlyai/sdk/_local/execution/step_encode_training_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-5.8.0 → mostlyai-5.8.2}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|