mostlyai 5.3.2__tar.gz → 5.3.4__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.3.2 → mostlyai-5.3.4}/PKG-INFO +1 -1
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/__init__.py +1 -1
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/api.py +15 -10
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/domain.py +4 -20
- {mostlyai-5.3.2 → mostlyai-5.3.4}/pyproject.toml +2 -2
- {mostlyai-5.3.2 → mostlyai-5.3.4}/.gitignore +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/LICENSE +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/README.md +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/__init__.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/auto_detect.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/base.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/context.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/conversions.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/__init__.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/base.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/bigquery.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/databricks.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/hive.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/mssql.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/mysql.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/oracle.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/postgresql.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/redshift.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/snowflake.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/sqlite.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/types_coercion.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/dtype.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/exceptions.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/__init__.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/base.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/container/__init__.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/container/aws.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/container/azure.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/container/bucket_based.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/container/gcs.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/container/minio.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/table/__init__.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/table/csv.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/table/feather.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/table/json.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/table/parquet.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/utils.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/language_model.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/metadata_objects.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/non_context.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/progress_callback.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/pull.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/pull_context.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/pull_utils.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/push.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/util/__init__.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/util/common.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/util/kerberos.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/__init__.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/cli.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/connectors.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/__init__.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/jobs.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/migration.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/plan.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_analyze_training_data.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_create_data_report.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_create_model_report.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_deliver_data.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_encode_training_data.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_finalize_generation.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_finalize_training.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_generate_data.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_pull_training_data.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_train_model.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/generators.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/progress.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/routes.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/server.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/storage.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/synthetic_datasets.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/__init__.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/_base_utils.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/_naming_conventions.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/_utils.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/artifacts.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/base.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/connectors.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/datasets.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/exceptions.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/generators.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/synthetic_datasets.py +0 -0
- {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/py.typed +0 -0
|
@@ -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.3.
|
|
52
|
+
__version__ = "5.3.4" # Do not set this manually. Use poetry version [params].
|
|
@@ -66,6 +66,7 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
66
66
|
local_port (int | None): The port to use for local mode with TCP transport. If not provided, UDS transport is used.
|
|
67
67
|
timeout (float): Timeout for HTTPS requests in seconds. Default is 60 seconds.
|
|
68
68
|
ssl_verify (bool): Whether to verify SSL certificates. Default is True.
|
|
69
|
+
test_connection (bool): Whether to test the connection during initialization. Default is True.
|
|
69
70
|
quiet (bool): Whether to suppress rich output. Default is False.
|
|
70
71
|
|
|
71
72
|
Example for SDK in CLIENT mode with explicit arguments:
|
|
@@ -139,6 +140,7 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
139
140
|
local_port: int | None = None,
|
|
140
141
|
timeout: float = 60.0,
|
|
141
142
|
ssl_verify: bool = True,
|
|
143
|
+
test_connection: bool = True,
|
|
142
144
|
quiet: bool = False,
|
|
143
145
|
):
|
|
144
146
|
import warnings
|
|
@@ -247,14 +249,17 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
247
249
|
rich.print(msg)
|
|
248
250
|
elif mode == "CLIENT":
|
|
249
251
|
rich.print(f"Initializing [bold]Synthetic Data SDK[/bold] {sdk.__version__} in [bold]CLIENT mode[/bold] 📡")
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
252
|
+
if test_connection:
|
|
253
|
+
try:
|
|
254
|
+
server_version = self.about().version
|
|
255
|
+
email = self.me().email
|
|
256
|
+
msg = (
|
|
257
|
+
f"Connected to [link={self.base_url} dodger_blue2 underline]{self.base_url}[/] {server_version}"
|
|
258
|
+
)
|
|
259
|
+
msg += f" as [bold]{email}[/bold]" if email else ""
|
|
260
|
+
rich.print(msg)
|
|
261
|
+
except Exception as e:
|
|
262
|
+
rich.print(f"Failed to connect to {self.base_url} : {e}.")
|
|
258
263
|
else:
|
|
259
264
|
raise ValueError("Invalid SDK mode")
|
|
260
265
|
|
|
@@ -653,7 +658,7 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
653
658
|
generator (Generator | str): The generator instance or its UUID.
|
|
654
659
|
config (SyntheticDatasetConfig | dict | None): Configuration for the synthetic dataset.
|
|
655
660
|
size (int | dict[str, int] | None): Sample size(s) for the subject table(s).
|
|
656
|
-
seed (Seed | dict[str, Seed] | None): Seed
|
|
661
|
+
seed (Seed | dict[str, Seed] | None): Either a single Seed for the subject table, or a dictionary with table names as keys and Seeds as values. Seed can either be a DataFrame or a path to a CSV or PARQUET file. Check generator details (`generator.tables[i].columns[j].value_range`) for possible value ranges.
|
|
657
662
|
name (str | None): Name of the synthetic dataset.
|
|
658
663
|
start (bool): Whether to start generation immediately. Default is True.
|
|
659
664
|
wait (bool): Whether to wait for generation to finish. Default is True.
|
|
@@ -733,7 +738,7 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
733
738
|
Args:
|
|
734
739
|
generator (Generator | str): The generator instance or its UUID.
|
|
735
740
|
size (int | dict[str, int] | None): Sample size(s) for the subject table(s). Default is 1, if no seed is provided.
|
|
736
|
-
seed (Seed | dict[str, Seed] | None): Seed
|
|
741
|
+
seed (Seed | dict[str, Seed] | None): Either a single Seed for the subject table, or a dictionary with table names as keys and Seeds as values. Seed can either be a DataFrame or a path to a CSV or PARQUET file. Check generator details (`generator.tables[i].columns[j].value_range`) for possible value ranges.
|
|
737
742
|
config (SyntheticProbeConfig | dict | None): Configuration for the probe.
|
|
738
743
|
return_type (Literal["auto", "dict"]): The type of the return value. "dict" will always provide a dictionary of DataFrames. "auto" will return a single DataFrame for a single-table generator, and a dictionary of DataFrames for a multi-table generator. Default is "auto".
|
|
739
744
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
# generated by datamodel-codegen:
|
|
16
|
-
# timestamp: 2025-10-
|
|
16
|
+
# timestamp: 2025-10-13T14:11:04+00:00
|
|
17
17
|
|
|
18
18
|
from __future__ import annotations
|
|
19
19
|
|
|
@@ -991,24 +991,7 @@ class AssistantMessageContentType(str, Enum):
|
|
|
991
991
|
artifact_connector = "artifact/connector"
|
|
992
992
|
artifact_dataset = "artifact/dataset"
|
|
993
993
|
artifact_shareable_artifact = "artifact/shareable-artifact"
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
class AssistantMessageDeltaContentType(str, Enum):
|
|
997
|
-
"""
|
|
998
|
-
The type of the message content
|
|
999
|
-
"""
|
|
1000
|
-
|
|
1001
|
-
text = "text"
|
|
1002
|
-
python = "python"
|
|
1003
|
-
console = "console"
|
|
1004
|
-
artifact_image = "artifact/image"
|
|
1005
|
-
artifact_data = "artifact/data"
|
|
1006
|
-
artifact_file = "artifact/file"
|
|
1007
|
-
artifact_html = "artifact/html"
|
|
1008
|
-
artifact_generator = "artifact/generator"
|
|
1009
|
-
artifact_synthetic_dataset = "artifact/synthetic-dataset"
|
|
1010
|
-
artifact_connector = "artifact/connector"
|
|
1011
|
-
artifact_dataset = "artifact/dataset"
|
|
994
|
+
compact_boundary = "compact_boundary"
|
|
1012
995
|
|
|
1013
996
|
|
|
1014
997
|
class AssistantMessageFile(CustomBaseModel):
|
|
@@ -1085,7 +1068,7 @@ class AssistantMessageDelta(CustomBaseModel):
|
|
|
1085
1068
|
|
|
1086
1069
|
id: str | None = Field(None, description="The unique identifier of a assistant message.")
|
|
1087
1070
|
role: AssistantMessageRole | None = None
|
|
1088
|
-
content_type:
|
|
1071
|
+
content_type: AssistantMessageContentType | None = Field(None, alias="contentType")
|
|
1089
1072
|
delta: str | None = Field(
|
|
1090
1073
|
None,
|
|
1091
1074
|
description="The partial content of a message in a streaming response.",
|
|
@@ -2151,6 +2134,7 @@ class DatasetListItem(CustomBaseModel):
|
|
|
2151
2134
|
|
|
2152
2135
|
id: str = Field(..., description="The unique identifier of a dataset.")
|
|
2153
2136
|
name: str = Field(..., description="The name of a dataset.")
|
|
2137
|
+
description: str | None = Field(None, description="The description of / instructions for a dataset.")
|
|
2154
2138
|
usage: DatasetUsage | None = None
|
|
2155
2139
|
metadata: Metadata | None = None
|
|
2156
2140
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mostlyai"
|
|
3
|
-
version = "5.3.
|
|
3
|
+
version = "5.3.4"
|
|
4
4
|
description = "Synthetic Data SDK"
|
|
5
5
|
authors = [{ name = "MOSTLY AI", email = "dev@mostly.ai" }]
|
|
6
6
|
requires-python = ">=3.10,<3.14"
|
|
@@ -135,7 +135,7 @@ dev = [
|
|
|
135
135
|
"ruff>=0.11", # sync'ed with .pre-commit-config
|
|
136
136
|
"pre-commit>=4.0",
|
|
137
137
|
"twine>=6.1",
|
|
138
|
-
"ipykernel>=6.25",
|
|
138
|
+
"ipykernel>=6.25,<7",
|
|
139
139
|
"datamodel-code-generator[http]>=0.26.3",
|
|
140
140
|
"respx>=0.20",
|
|
141
141
|
"poetry-bumpversion>=0.3.2",
|
|
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
|
|
File without changes
|
{mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_analyze_training_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_encode_training_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-5.3.2 → mostlyai-5.3.4}/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
|