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.
Files changed (89) hide show
  1. {mostlyai-5.3.2 → mostlyai-5.3.4}/PKG-INFO +1 -1
  2. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/__init__.py +1 -1
  3. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/api.py +15 -10
  4. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/domain.py +4 -20
  5. {mostlyai-5.3.2 → mostlyai-5.3.4}/pyproject.toml +2 -2
  6. {mostlyai-5.3.2 → mostlyai-5.3.4}/.gitignore +0 -0
  7. {mostlyai-5.3.2 → mostlyai-5.3.4}/LICENSE +0 -0
  8. {mostlyai-5.3.2 → mostlyai-5.3.4}/README.md +0 -0
  9. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/__init__.py +0 -0
  10. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/auto_detect.py +0 -0
  11. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/base.py +0 -0
  12. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/context.py +0 -0
  13. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/conversions.py +0 -0
  14. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/__init__.py +0 -0
  15. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/base.py +0 -0
  16. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/bigquery.py +0 -0
  17. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/databricks.py +0 -0
  18. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/hive.py +0 -0
  19. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/mssql.py +0 -0
  20. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/mysql.py +0 -0
  21. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/oracle.py +0 -0
  22. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/postgresql.py +0 -0
  23. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/redshift.py +0 -0
  24. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/snowflake.py +0 -0
  25. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/sqlite.py +0 -0
  26. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/db/types_coercion.py +0 -0
  27. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/dtype.py +0 -0
  28. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/exceptions.py +0 -0
  29. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/__init__.py +0 -0
  30. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/base.py +0 -0
  31. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/container/__init__.py +0 -0
  32. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/container/aws.py +0 -0
  33. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/container/azure.py +0 -0
  34. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/container/bucket_based.py +0 -0
  35. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/container/gcs.py +0 -0
  36. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/container/minio.py +0 -0
  37. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/table/__init__.py +0 -0
  38. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/table/csv.py +0 -0
  39. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/table/feather.py +0 -0
  40. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/table/json.py +0 -0
  41. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/table/parquet.py +0 -0
  42. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/file/utils.py +0 -0
  43. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/language_model.py +0 -0
  44. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/metadata_objects.py +0 -0
  45. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/non_context.py +0 -0
  46. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/progress_callback.py +0 -0
  47. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/pull.py +0 -0
  48. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/pull_context.py +0 -0
  49. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/pull_utils.py +0 -0
  50. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/push.py +0 -0
  51. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/util/__init__.py +0 -0
  52. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/util/common.py +0 -0
  53. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_data/util/kerberos.py +0 -0
  54. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/__init__.py +0 -0
  55. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/cli.py +0 -0
  56. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/connectors.py +0 -0
  57. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/__init__.py +0 -0
  58. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/jobs.py +0 -0
  59. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/migration.py +0 -0
  60. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/plan.py +0 -0
  61. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_analyze_training_data.py +0 -0
  62. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_create_data_report.py +0 -0
  63. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_create_model_report.py +0 -0
  64. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_deliver_data.py +0 -0
  65. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_encode_training_data.py +0 -0
  66. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_finalize_generation.py +0 -0
  67. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_finalize_training.py +0 -0
  68. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_generate_data.py +0 -0
  69. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py +0 -0
  70. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_pull_training_data.py +0 -0
  71. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/execution/step_train_model.py +0 -0
  72. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/generators.py +0 -0
  73. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/progress.py +0 -0
  74. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/routes.py +0 -0
  75. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/server.py +0 -0
  76. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/storage.py +0 -0
  77. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/_local/synthetic_datasets.py +0 -0
  78. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/__init__.py +0 -0
  79. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/_base_utils.py +0 -0
  80. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/_naming_conventions.py +0 -0
  81. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/_utils.py +0 -0
  82. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/artifacts.py +0 -0
  83. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/base.py +0 -0
  84. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/connectors.py +0 -0
  85. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/datasets.py +0 -0
  86. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/exceptions.py +0 -0
  87. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/generators.py +0 -0
  88. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/client/synthetic_datasets.py +0 -0
  89. {mostlyai-5.3.2 → mostlyai-5.3.4}/mostlyai/sdk/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mostlyai
3
- Version: 5.3.2
3
+ Version: 5.3.4
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
@@ -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.2" # Do not set this manually. Use poetry version [params].
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
- try:
251
- server_version = self.about().version
252
- email = self.me().email
253
- msg = f"Connected to [link={self.base_url} dodger_blue2 underline]{self.base_url}[/] {server_version}"
254
- msg += f" as [bold]{email}[/bold]" if email else ""
255
- rich.print(msg)
256
- except Exception as e:
257
- rich.print(f"Failed to connect to {self.base_url} : {e}.")
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 data for the subject table(s).
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 data for the subject table(s). Check generator details for possible value ranges.
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-08T14:06:22+00:00
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: AssistantMessageDeltaContentType | None = Field(None, alias="contentType")
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.2"
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