mostlyai 4.9.3__tar.gz → 5.1.0__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 (88) hide show
  1. {mostlyai-4.9.3 → mostlyai-5.1.0}/PKG-INFO +15 -12
  2. {mostlyai-4.9.3 → mostlyai-5.1.0}/README.md +12 -9
  3. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/__init__.py +1 -1
  4. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/step_generate_data.py +2 -2
  5. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/client/api.py +1 -1
  6. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/client/connectors.py +1 -1
  7. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/client/datasets.py +1 -1
  8. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/client/generators.py +1 -1
  9. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/client/synthetic_datasets.py +1 -1
  10. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/domain.py +158 -38
  11. {mostlyai-4.9.3 → mostlyai-5.1.0}/pyproject.toml +3 -3
  12. {mostlyai-4.9.3 → mostlyai-5.1.0}/.gitignore +0 -0
  13. {mostlyai-4.9.3 → mostlyai-5.1.0}/LICENSE +0 -0
  14. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/__init__.py +0 -0
  15. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/auto_detect.py +0 -0
  16. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/base.py +0 -0
  17. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/context.py +0 -0
  18. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/conversions.py +0 -0
  19. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/db/__init__.py +0 -0
  20. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/db/base.py +0 -0
  21. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/db/bigquery.py +0 -0
  22. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/db/databricks.py +0 -0
  23. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/db/hive.py +0 -0
  24. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/db/mssql.py +0 -0
  25. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/db/mysql.py +0 -0
  26. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/db/oracle.py +0 -0
  27. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/db/postgresql.py +0 -0
  28. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/db/snowflake.py +0 -0
  29. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/db/sqlite.py +0 -0
  30. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/db/types_coercion.py +0 -0
  31. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/dtype.py +0 -0
  32. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/exceptions.py +0 -0
  33. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/__init__.py +0 -0
  34. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/base.py +0 -0
  35. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/container/__init__.py +0 -0
  36. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/container/aws.py +0 -0
  37. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/container/azure.py +0 -0
  38. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/container/bucket_based.py +0 -0
  39. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/container/gcs.py +0 -0
  40. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/container/minio.py +0 -0
  41. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/table/__init__.py +0 -0
  42. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/table/csv.py +0 -0
  43. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/table/feather.py +0 -0
  44. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/table/json.py +0 -0
  45. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/table/parquet.py +0 -0
  46. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/file/utils.py +0 -0
  47. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/language_model.py +0 -0
  48. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/metadata_objects.py +0 -0
  49. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/non_context.py +0 -0
  50. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/progress_callback.py +0 -0
  51. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/pull.py +0 -0
  52. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/pull_context.py +0 -0
  53. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/pull_utils.py +0 -0
  54. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/push.py +0 -0
  55. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/util/__init__.py +0 -0
  56. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/util/common.py +0 -0
  57. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_data/util/kerberos.py +0 -0
  58. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/__init__.py +0 -0
  59. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/cli.py +0 -0
  60. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/connectors.py +0 -0
  61. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/__init__.py +0 -0
  62. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/jobs.py +0 -0
  63. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/migration.py +0 -0
  64. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/plan.py +0 -0
  65. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/step_analyze_training_data.py +0 -0
  66. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/step_create_data_report.py +0 -0
  67. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/step_create_model_report.py +0 -0
  68. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/step_deliver_data.py +0 -0
  69. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/step_encode_training_data.py +0 -0
  70. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/step_finalize_generation.py +0 -0
  71. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/step_finalize_training.py +0 -0
  72. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py +0 -0
  73. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/step_pull_training_data.py +0 -0
  74. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/execution/step_train_model.py +0 -0
  75. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/generators.py +0 -0
  76. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/progress.py +0 -0
  77. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/routes.py +0 -0
  78. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/server.py +0 -0
  79. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/storage.py +0 -0
  80. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/_local/synthetic_datasets.py +0 -0
  81. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/client/__init__.py +0 -0
  82. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/client/_base_utils.py +0 -0
  83. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/client/_naming_conventions.py +0 -0
  84. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/client/_utils.py +0 -0
  85. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/client/artifacts.py +0 -0
  86. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/client/base.py +0 -0
  87. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/client/exceptions.py +0 -0
  88. {mostlyai-4.9.3 → mostlyai-5.1.0}/mostlyai/sdk/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mostlyai
3
- Version: 4.9.3
3
+ Version: 5.1.0
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.4.8; extra == 'local'
62
+ Requires-Dist: mostlyai-engine==1.5.1; 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.4.8; extra == 'local-gpu'
84
+ Requires-Dist: mostlyai-engine[gpu]==1.5.1; 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'
@@ -116,7 +116,7 @@ Description-Content-Type: text/markdown
116
116
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mostlyai)](https://pypi.org/project/mostlyai/)
117
117
  [![GitHub stars](https://img.shields.io/github/stars/mostly-ai/mostlyai?style=social)](https://github.com/mostly-ai/mostlyai/stargazers)
118
118
 
119
- [Documentation](https://mostly-ai.github.io/mostlyai/) | [Usage Examples](https://mostly-ai.github.io/mostlyai/usage/) | [Free Cloud Service](https://app.mostly.ai/)
119
+ [Documentation](https://mostly-ai.github.io/mostlyai/) | [Technical White Paper](https://arxiv.org/abs/2508.00718) | [Usage Examples](https://mostly-ai.github.io/mostlyai/usage/) | [Free Cloud Service](https://app.mostly.ai/)
120
120
 
121
121
  The **Synthetic Data SDK** is a Python toolkit for high-fidelity, privacy-safe **Synthetic Data**.
122
122
 
@@ -242,7 +242,7 @@ Tabular models within the SDK are built on TabularARGN ([arXiv:2501.12012](https
242
242
 
243
243
  The default language model is a basic, non-pre-trained LSTM (`LSTMFromScratch-3m`), particularly effective for textual data with limited scope (short lengths, narrow variety) and sufficient training samples.
244
244
 
245
- Alternatively, any pre-trained SLM available via the Hugging Face Hub can be selected to be then fine-tuned on the provided training data. These models start out already with a general world knowledge, and then adapt to the training data for generating high-fidelity synthetic samples even in sparse data domains. The final performance will once again largely depend on the chosen model configurations.
245
+ Alternatively, any pre-trained language model, that is available via the [Hugging Face Hub](https://huggingface.co/) and that supports the [AutoModelForCausalLM](https://huggingface.co/docs/transformers/main/en/model_doc/auto#transformers.AutoModelForCausalLM) class, can be selected to be then fine-tuned on the provided training data. These models start out already with a general world knowledge, and then adapt to the training data for generating high-fidelity synthetic samples even in sparse data domains. The final performance will once again largely depend on the chosen model configurations.
246
246
 
247
247
  In either case, a modern GPU is highly recommended when working with language models.
248
248
 
@@ -354,13 +354,13 @@ As an alternative, you can also build a Docker image, which provides you with an
354
354
 
355
355
  - **Pull from official repository**
356
356
 
357
- `docker pull --platform=linux/amd64 quay.io/mostlyai/sdk`
357
+ `docker pull --platform=linux/amd64 ghcr.io/mostly-ai/sdk`
358
358
 
359
359
  - **(Optional) Build your own image**
360
360
 
361
361
  If your environment is capable of executing Makefile (see [here](https://github.com/mostly-ai/mostlyai/blob/main/Makefile#L47-L73)), then execute `make docker-build`.
362
362
 
363
- Otherwise, use `docker buildx build . --platform=linux/amd64 -t quay.io/mostlyai/sdk` instead.
363
+ Otherwise, use `docker buildx build . --platform=linux/amd64 -t ghcr.io/mostly-ai/sdk` instead.
364
364
 
365
365
  </details>
366
366
 
@@ -372,7 +372,7 @@ As an alternative, you can also build a Docker image, which provides you with an
372
372
 
373
373
  If your environment is capable of executing Makefile, then execute `make docker-run`. Or `make docker-run HOST_PORT=8080` to forward to a host port of your choice. One could also mount the `local_dir` via `make docker-run HOST_LOCAL_DIR=/path/to/host/folder` to make the generators and synthetic datasets directly accessible from the host.
374
374
 
375
- Otherwise, use `docker run --platform=linux/amd64 -p 8080:8080 quay.io/mostlyai/sdk` instead. Optionally, you can use the `-v` flag to mount a [volume](https://docs.docker.com/engine/storage/volumes/#syntax) for passing files between the host and the container.
375
+ Otherwise, use `docker run --platform=linux/amd64 -p 8080:8080 ghcr.io/mostly-ai/sdk` instead. Optionally, you can use the `-v` flag to mount a [volume](https://docs.docker.com/engine/storage/volumes/#syntax) for passing files between the host and the container.
376
376
 
377
377
  </details>
378
378
 
@@ -424,9 +424,12 @@ Please consider citing our project if you find it useful:
424
424
 
425
425
  ```bibtex
426
426
  @misc{mostlyai,
427
- author = {{MOSTLY AI}},
428
- title = {{MOSTLY AI SDK}},
429
- howpublished = {\url{https://github.com/mostly-ai/mostlyai}},
430
- year = {2025}
427
+ title={Democratizing Tabular Data Access with an Open-Source Synthetic-Data SDK},
428
+ author={Ivona Krchova and Mariana Vargas Vieyra and Mario Scriminaci and Andrey Sidorenko},
429
+ year={2025},
430
+ eprint={2508.00718},
431
+ archivePrefix={arXiv},
432
+ primaryClass={cs.LG},
433
+ url={https://arxiv.org/abs/2508.00718},
431
434
  }
432
435
  ```
@@ -7,7 +7,7 @@
7
7
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mostlyai)](https://pypi.org/project/mostlyai/)
8
8
  [![GitHub stars](https://img.shields.io/github/stars/mostly-ai/mostlyai?style=social)](https://github.com/mostly-ai/mostlyai/stargazers)
9
9
 
10
- [Documentation](https://mostly-ai.github.io/mostlyai/) | [Usage Examples](https://mostly-ai.github.io/mostlyai/usage/) | [Free Cloud Service](https://app.mostly.ai/)
10
+ [Documentation](https://mostly-ai.github.io/mostlyai/) | [Technical White Paper](https://arxiv.org/abs/2508.00718) | [Usage Examples](https://mostly-ai.github.io/mostlyai/usage/) | [Free Cloud Service](https://app.mostly.ai/)
11
11
 
12
12
  The **Synthetic Data SDK** is a Python toolkit for high-fidelity, privacy-safe **Synthetic Data**.
13
13
 
@@ -133,7 +133,7 @@ Tabular models within the SDK are built on TabularARGN ([arXiv:2501.12012](https
133
133
 
134
134
  The default language model is a basic, non-pre-trained LSTM (`LSTMFromScratch-3m`), particularly effective for textual data with limited scope (short lengths, narrow variety) and sufficient training samples.
135
135
 
136
- Alternatively, any pre-trained SLM available via the Hugging Face Hub can be selected to be then fine-tuned on the provided training data. These models start out already with a general world knowledge, and then adapt to the training data for generating high-fidelity synthetic samples even in sparse data domains. The final performance will once again largely depend on the chosen model configurations.
136
+ Alternatively, any pre-trained language model, that is available via the [Hugging Face Hub](https://huggingface.co/) and that supports the [AutoModelForCausalLM](https://huggingface.co/docs/transformers/main/en/model_doc/auto#transformers.AutoModelForCausalLM) class, can be selected to be then fine-tuned on the provided training data. These models start out already with a general world knowledge, and then adapt to the training data for generating high-fidelity synthetic samples even in sparse data domains. The final performance will once again largely depend on the chosen model configurations.
137
137
 
138
138
  In either case, a modern GPU is highly recommended when working with language models.
139
139
 
@@ -245,13 +245,13 @@ As an alternative, you can also build a Docker image, which provides you with an
245
245
 
246
246
  - **Pull from official repository**
247
247
 
248
- `docker pull --platform=linux/amd64 quay.io/mostlyai/sdk`
248
+ `docker pull --platform=linux/amd64 ghcr.io/mostly-ai/sdk`
249
249
 
250
250
  - **(Optional) Build your own image**
251
251
 
252
252
  If your environment is capable of executing Makefile (see [here](https://github.com/mostly-ai/mostlyai/blob/main/Makefile#L47-L73)), then execute `make docker-build`.
253
253
 
254
- Otherwise, use `docker buildx build . --platform=linux/amd64 -t quay.io/mostlyai/sdk` instead.
254
+ Otherwise, use `docker buildx build . --platform=linux/amd64 -t ghcr.io/mostly-ai/sdk` instead.
255
255
 
256
256
  </details>
257
257
 
@@ -263,7 +263,7 @@ As an alternative, you can also build a Docker image, which provides you with an
263
263
 
264
264
  If your environment is capable of executing Makefile, then execute `make docker-run`. Or `make docker-run HOST_PORT=8080` to forward to a host port of your choice. One could also mount the `local_dir` via `make docker-run HOST_LOCAL_DIR=/path/to/host/folder` to make the generators and synthetic datasets directly accessible from the host.
265
265
 
266
- Otherwise, use `docker run --platform=linux/amd64 -p 8080:8080 quay.io/mostlyai/sdk` instead. Optionally, you can use the `-v` flag to mount a [volume](https://docs.docker.com/engine/storage/volumes/#syntax) for passing files between the host and the container.
266
+ Otherwise, use `docker run --platform=linux/amd64 -p 8080:8080 ghcr.io/mostly-ai/sdk` instead. Optionally, you can use the `-v` flag to mount a [volume](https://docs.docker.com/engine/storage/volumes/#syntax) for passing files between the host and the container.
267
267
 
268
268
  </details>
269
269
 
@@ -315,9 +315,12 @@ Please consider citing our project if you find it useful:
315
315
 
316
316
  ```bibtex
317
317
  @misc{mostlyai,
318
- author = {{MOSTLY AI}},
319
- title = {{MOSTLY AI SDK}},
320
- howpublished = {\url{https://github.com/mostly-ai/mostlyai}},
321
- year = {2025}
318
+ title={Democratizing Tabular Data Access with an Open-Source Synthetic-Data SDK},
319
+ author={Ivona Krchova and Mariana Vargas Vieyra and Mario Scriminaci and Andrey Sidorenko},
320
+ year={2025},
321
+ eprint={2508.00718},
322
+ archivePrefix={arXiv},
323
+ primaryClass={cs.LG},
324
+ url={https://arxiv.org/abs/2508.00718},
322
325
  }
323
326
  ```
@@ -15,4 +15,4 @@
15
15
  from mostlyai.sdk.client.api import MostlyAI
16
16
 
17
17
  __all__ = ["MostlyAI"]
18
- __version__ = "4.9.3" # Do not set this manually. Use poetry version [params].
18
+ __version__ = "5.1.0" # Do not set this manually. Use poetry version [params].
@@ -70,7 +70,7 @@ def execute_step_generate_data(
70
70
  else:
71
71
  model_config = tgt_g_table.tabular_model_configuration
72
72
 
73
- # handle sample size / seed (only applies to subject tables)
73
+ # handle sample size / seed
74
74
  is_subject = not (any(fk.is_context for fk in (tgt_g_table.foreign_keys or [])))
75
75
  if is_subject:
76
76
  if sample_seed is None and config.sample_size is not None:
@@ -78,7 +78,7 @@ def execute_step_generate_data(
78
78
  else:
79
79
  sample_size = None
80
80
  else:
81
- sample_size = sample_seed = None
81
+ sample_size = None
82
82
 
83
83
  # ensure disallowed arguments are set to None
84
84
  if model_type == ModelType.language:
@@ -664,8 +664,8 @@ class MostlyAI(_MostlyBaseClient):
664
664
  from mostlyai.sdk import MostlyAI
665
665
  mostly = MostlyAI()
666
666
  sd = mostly.generate(
667
+ generator=g,
667
668
  config={
668
- 'generator': g,
669
669
  'tables': [
670
670
  {
671
671
  'name': 'data',
@@ -77,7 +77,7 @@ class _MostlyConnectorsClient(_MostlyBaseClient):
77
77
  visibility: Filter by visibility (e.g., PUBLIC, PRIVATE or UNLISTED).
78
78
  created_from: Filter by creation date, not older than this date. Format: YYYY-MM-DD.
79
79
  created_to: Filter by creation date, not younger than this date. Format: YYYY-MM-DD.
80
- sort_by: Sort by field. Either RECENCY or NO_OF_GENERATORS.
80
+ sort_by: Sort by field. Either NO_OF_THREADS, NO_OF_LIKES, RECENCY or NO_OF_GENERATORS.
81
81
 
82
82
  Returns:
83
83
  Iterator[ConnectorListItem]: An iterator over connector list items.
@@ -63,7 +63,7 @@ class _MostlyDatasetsClient(_MostlyBaseClient):
63
63
  visibility: Filter by visibility (e.g., PUBLIC, PRIVATE or UNLISTED).
64
64
  created_from: Filter by creation date, not older than this date. Format: YYYY-MM-DD.
65
65
  created_to: Filter by creation date, not younger than this date. Format: YYYY-MM-DD.
66
- sort_by: Sort by field. Either RECENCY, NO_OF_LIKES.
66
+ sort_by: Sort by field. Either NO_OF_THREADS, NO_OF_LIKES, or RECENCY.
67
67
 
68
68
  Returns:
69
69
  An iterator over datasets.
@@ -75,7 +75,7 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
75
75
  visibility: Filter by visibility (e.g., PUBLIC, PRIVATE or UNLISTED).
76
76
  created_from: Filter by creation date, not older than this date. Format: YYYY-MM-DD.
77
77
  created_to: Filter by creation date, not younger than this date. Format: YYYY-MM-DD.
78
- sort_by: Sort by field. Either RECENCY, NO_OF_LIKES or NO_OF_SYNTHETIC_DATASETS.
78
+ sort_by: Sort by field. Either NO_OF_THREADS, NO_OF_LIKES, RECENCY, or NO_OF_SYNTHETIC_DATASETS.
79
79
 
80
80
  Returns:
81
81
  Iterator[GeneratorListItem]: An iterator over generator list items.
@@ -74,7 +74,7 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
74
74
  visibility: Filter by visibility (e.g., PUBLIC, PRIVATE or UNLISTED).
75
75
  created_from: Filter by creation date, not older than this date. Format: YYYY-MM-DD.
76
76
  created_to: Filter by creation date, not younger than this date. Format: YYYY-MM-DD.
77
- sort_by: Sort by field. Either RECENCY, NO_OF_LIKES or NO_OF_DOWNLOADS.
77
+ sort_by: Sort by field. Either NO_OF_THREADS, NO_OF_LIKES, RECENCY, or NO_OF_DOWNLOADS.
78
78
 
79
79
  Returns:
80
80
  An iterator over synthetic datasets.
@@ -13,7 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  # generated by datamodel-codegen:
16
- # timestamp: 2025-07-22T13:24:40+00:00
16
+ # timestamp: 2025-08-28T17:58:01+00:00
17
17
 
18
18
  from __future__ import annotations
19
19
 
@@ -21,14 +21,13 @@ import inspect
21
21
  import sys
22
22
  import uuid
23
23
  import zipfile
24
- from datetime import datetime
25
24
  from enum import Enum
26
25
  from pathlib import Path
27
26
  from typing import Annotated, Any, ClassVar, Literal
28
27
 
29
28
  import pandas as pd
30
29
  import rich
31
- from pydantic import Field, RootModel, field_validator, model_validator
30
+ from pydantic import AnyUrl, AwareDatetime, Field, RootModel, field_validator, model_validator
32
31
 
33
32
  from mostlyai.sdk.client._base_utils import convert_to_base64, read_table_from_path
34
33
  from mostlyai.sdk.client.base import CustomBaseModel
@@ -56,6 +55,16 @@ class PermissionLevel(str, Enum):
56
55
  admin = "ADMIN"
57
56
 
58
57
 
58
+ class UserPlan(str, Enum):
59
+ """
60
+ The type of the user subscription plan.
61
+ """
62
+
63
+ free = "FREE"
64
+ pro = "PRO"
65
+ unlimited = "UNLIMITED"
66
+
67
+
59
68
  class UserSettingsProfileUpdateConfig(CustomBaseModel):
60
69
  """
61
70
  Configuration for updating a user's profile settings.
@@ -87,25 +96,25 @@ class UserSettingsAssistantUpdateConfig(CustomBaseModel):
87
96
  )
88
97
 
89
98
 
90
- class Credits(CustomBaseModel):
99
+ class UsageCreditStats(CustomBaseModel):
91
100
  """
92
- The credit balance and limit for the current time period
101
+ User credits statistics and limits for the current user.
93
102
  """
94
103
 
95
- current: float | None = Field(None, description="The credit balance for the current time period")
104
+ current: float | None = Field(None, description="The current credit balance for the user.")
96
105
  limit: float | None = Field(
97
106
  None,
98
- description="The credit limit for the current time period. If empty, then there is no limit.",
107
+ description="The credit limit for the user. If empty, then there is no limit.",
99
108
  )
100
- period_start: datetime | None = Field(
109
+ period_start: AwareDatetime | None = Field(
101
110
  None,
102
111
  alias="periodStart",
103
- description="The UTC date and time when the current time period started",
112
+ description="The UTC date and time when the current time period started.",
104
113
  )
105
- period_end: datetime | None = Field(
114
+ period_end: AwareDatetime | None = Field(
106
115
  None,
107
116
  alias="periodEnd",
108
- description="The UTC date and time when the current time period ends",
117
+ description="The UTC date and time when the current time period ends.",
109
118
  )
110
119
 
111
120
 
@@ -138,7 +147,6 @@ class UserUsage(CustomBaseModel):
138
147
  Usage statistics and limits for the current user.
139
148
  """
140
149
 
141
- credits: Credits | None = Field(None, description="The credit balance and limit for the current time period")
142
150
  parallel_training_jobs: ParallelTrainingJobs | None = Field(
143
151
  None,
144
152
  alias="parallelTrainingJobs",
@@ -151,6 +159,32 @@ class UserUsage(CustomBaseModel):
151
159
  )
152
160
 
153
161
 
162
+ class Free(CustomBaseModel):
163
+ """
164
+ Usage statistics of free credits.
165
+ """
166
+
167
+ daily: UsageCreditStats | None = None
168
+ monthly: UsageCreditStats | None = None
169
+
170
+
171
+ class Paid(CustomBaseModel):
172
+ """
173
+ Usage statistics of paid credits.
174
+ """
175
+
176
+ monthly: UsageCreditStats | None = None
177
+
178
+
179
+ class UserCredits(CustomBaseModel):
180
+ """
181
+ Usage statistics and limits for the current user.
182
+ """
183
+
184
+ free: Free = Field(..., description="Usage statistics of free credits.")
185
+ paid: Paid | None = Field(None, description="Usage statistics of paid credits.")
186
+
187
+
154
188
  class NotificationStatus(str, Enum):
155
189
  """
156
190
  The status of the notification.
@@ -1283,7 +1317,7 @@ class OrganizationInvite(CustomBaseModel):
1283
1317
  description="The generated token, encrypting organization, expiration timestamp, and role (VIEW).",
1284
1318
  )
1285
1319
  link: str | None = Field(None, description="The generated invite link.")
1286
- expiration_date: datetime | None = Field(
1320
+ expiration_date: AwareDatetime | None = Field(
1287
1321
  None,
1288
1322
  alias="expirationDate",
1289
1323
  description="The expiration date of the invite link. 72 hours after creation.",
@@ -1354,31 +1388,81 @@ class AccountType(str, Enum):
1354
1388
  organization = "ORGANIZATION"
1355
1389
 
1356
1390
 
1391
+ class BillingCycle(CustomBaseModel):
1392
+ """
1393
+ The billing cycle of the subscription.
1394
+ """
1395
+
1396
+ start_date: AwareDatetime | None = Field(
1397
+ None,
1398
+ alias="startDate",
1399
+ description="The UTC date and time when the billing cycle started.",
1400
+ )
1401
+ end_date: AwareDatetime | None = Field(
1402
+ None,
1403
+ alias="endDate",
1404
+ description="The UTC date and time when the billing cycle ended.",
1405
+ )
1406
+
1407
+
1408
+ class BillingInterval(str, Enum):
1409
+ """
1410
+ The billing cycle for a plan.
1411
+ """
1412
+
1413
+ monthly = "MONTHLY"
1414
+ yearly = "YEARLY"
1415
+
1416
+
1417
+ class Price(CustomBaseModel):
1418
+ """
1419
+ The price information for a plan.
1420
+ """
1421
+
1422
+ value: float = Field(..., description="The price value.")
1423
+ currency: str = Field(..., description="The currency code for the price.", examples=["USD"])
1424
+ metadata: dict[str, str] = Field(..., description="The metadata of the price.")
1425
+
1426
+
1427
+ class Plan(CustomBaseModel):
1428
+ """
1429
+ A billing plan available for purchase.
1430
+ """
1431
+
1432
+ id: str = Field(..., description="The identifier of a plan.")
1433
+ name: str = Field(..., description="The name of the plan.")
1434
+ billing_interval: BillingInterval | None = Field(None, alias="billingInterval")
1435
+ price: Price
1436
+ payment_url: AnyUrl | None = Field(None, alias="paymentUrl", description="The URL for purchasing this plan.")
1437
+ description: str | None = Field(None, description="The description of the plan.")
1438
+ features: list[str] | None = None
1439
+ metadata: dict[str, str] | None = Field(None, description="The metadata of the plan.")
1440
+
1441
+
1442
+ class PlanUpdateConfig(CustomBaseModel):
1443
+ """
1444
+ Request to upgrade or downgrade the user's plan.
1445
+ """
1446
+
1447
+ id: str | None = Field(None, description="The identifier of a plan.")
1448
+ billing_interval: BillingInterval | None = Field(None, alias="billingInterval")
1449
+
1450
+
1357
1451
  class UsageReportPeriod(CustomBaseModel):
1358
1452
  """
1359
1453
  The usage report for a specific month
1360
1454
  """
1361
1455
 
1362
- period_start: datetime | None = Field(
1456
+ period_start: AwareDatetime | None = Field(
1363
1457
  None,
1364
1458
  alias="periodStart",
1365
1459
  description="The UTC date and time when the reported time period started",
1366
1460
  )
1367
- period_end: datetime | None = Field(
1461
+ period_end: AwareDatetime | None = Field(
1368
1462
  None,
1369
1463
  alias="periodEnd",
1370
1464
  description="The UTC date and time when the reported time period started",
1371
1465
  )
1372
- total_datapoints: int | None = Field(
1373
- None,
1374
- alias="totalDatapoints",
1375
- description="The number of datapoints generated during the reported period.\n**Deprecated:** This field is no longer valid and will always return `-1`. It will be removed in a future version.\n",
1376
- )
1377
- total_rows: int | None = Field(
1378
- None,
1379
- alias="totalRows",
1380
- description="The number of rows generated during the reported period\n**Deprecated:** This field is no longer valid and will always return `-1`. It will be removed in a future version.\n",
1381
- )
1382
1466
  total_credits: float | None = Field(
1383
1467
  None,
1384
1468
  alias="totalCredits",
@@ -1394,6 +1478,10 @@ class UsageReportPeriod(CustomBaseModel):
1394
1478
  alias="totalVirtualGPUTime",
1395
1479
  description="The total virtual GPU time in seconds used during the reported period",
1396
1480
  )
1481
+ tokens: int | None = Field(
1482
+ None,
1483
+ description="The total number of tokens consumed by chats during the reported period",
1484
+ )
1397
1485
 
1398
1486
 
1399
1487
  class FilterByUser(str, Enum):
@@ -1408,6 +1496,18 @@ class FilterByUser(str, Enum):
1408
1496
  me = "ME"
1409
1497
 
1410
1498
 
1499
+ class CreditType(str, Enum):
1500
+ """
1501
+ Determines which type of credits to include in the usage report.
1502
+ - `FREE`: Filter usage reports for free credits (natural month cycle).
1503
+ - `PAID`: Filter usage reports for paid credits (billing cycle).
1504
+
1505
+ """
1506
+
1507
+ free = "FREE"
1508
+ paid = "PAID"
1509
+
1510
+
1411
1511
  class ModelType(str, Enum):
1412
1512
  """
1413
1513
  The type of model.
@@ -1840,7 +1940,7 @@ class Notification(CustomBaseModel):
1840
1940
  type: NotificationType
1841
1941
  message: str = Field(..., description="The message of the notification.")
1842
1942
  status: NotificationStatus
1843
- created_at: datetime = Field(
1943
+ created_at: AwareDatetime = Field(
1844
1944
  ...,
1845
1945
  alias="createdAt",
1846
1946
  description="The UTC date and time when the notification has been created.",
@@ -1864,7 +1964,7 @@ class Metadata(CustomBaseModel):
1864
1964
  alias="creatorName",
1865
1965
  description="The name of a user.\nContains only alphanumeric characters, hyphens, and underscores. Must start or end with alphanumeric.\nIt must be globally case-insensitive unique considering organizations and users.\n",
1866
1966
  )
1867
- created_at: datetime | None = Field(
1967
+ created_at: AwareDatetime | None = Field(
1868
1968
  None,
1869
1969
  alias="createdAt",
1870
1970
  description="The UTC date and time when the resource has been created.",
@@ -2309,7 +2409,7 @@ class GeneratorListItem(CustomBaseModel):
2309
2409
  name: str | None = Field(None, description="The name of a generator.")
2310
2410
  description: str | None = Field(None, description="The description of a generator.")
2311
2411
  training_status: ProgressStatus = Field(..., alias="trainingStatus")
2312
- training_time: datetime | None = Field(
2412
+ training_time: AwareDatetime | None = Field(
2313
2413
  None,
2314
2414
  alias="trainingTime",
2315
2415
  description="The UTC date and time when the training has finished.",
@@ -2526,13 +2626,13 @@ class ProgressStep(CustomBaseModel):
2526
2626
  restarts: int | None = Field(0, description="The number of previous restarts for the corresponding task.")
2527
2627
  task_type: TaskType | None = Field(None, alias="taskType")
2528
2628
  step_code: StepCode | None = Field(None, alias="stepCode")
2529
- start_date: datetime | None = Field(
2629
+ start_date: AwareDatetime | None = Field(
2530
2630
  None,
2531
2631
  alias="startDate",
2532
2632
  description="The UTC date and time when the job has started.\nIf the job has not started yet, then this is None.\n",
2533
2633
  examples=["2024-01-25T12:34:56Z"],
2534
2634
  )
2535
- end_date: datetime | None = Field(
2635
+ end_date: AwareDatetime | None = Field(
2536
2636
  None,
2537
2637
  alias="endDate",
2538
2638
  description="The UTC date and time when the job has ended.\nIf the job is still, then this is None.\n",
@@ -2566,7 +2666,7 @@ class SyntheticDatasetListItem(CustomBaseModel):
2566
2666
  name: str | None = Field(None, description="The name of a synthetic dataset.")
2567
2667
  description: str | None = Field(None, description="The description of a synthetic dataset.")
2568
2668
  generation_status: ProgressStatus = Field(..., alias="generationStatus")
2569
- generation_time: datetime | None = Field(
2669
+ generation_time: AwareDatetime | None = Field(
2570
2670
  None,
2571
2671
  alias="generationTime",
2572
2672
  description="The UTC date and time when the generation has finished.",
@@ -2602,17 +2702,17 @@ class SyntheticTableConfiguration(CustomBaseModel):
2602
2702
  sample_seed_connector_id: str | None = Field(
2603
2703
  None,
2604
2704
  alias="sampleSeedConnectorId",
2605
- description="The connector id of the seed data for conditional simulation.\nOnly applicable for subject tables.\n",
2705
+ description="The connector id of the seed data for conditional simulation",
2606
2706
  )
2607
2707
  sample_seed_dict: str | None = Field(
2608
2708
  None,
2609
2709
  alias="sampleSeedDict",
2610
- description="The base64-encoded string derived from a json line file containing the specified sample seed data.\nThis allows conditional live probing via non-python clients.\nOnly applicable for subject tables.\n",
2710
+ description="The base64-encoded string derived from a json line file containing the specified sample seed data.\nThis allows conditional live probing via non-python clients.\n",
2611
2711
  )
2612
2712
  sample_seed_data: str | None = Field(
2613
2713
  None,
2614
2714
  alias="sampleSeedData",
2615
- description="The base64-encoded string derived from a Parquet file containing the specified sample seed data.\nThis allows conditional simulation as well as live probing via python clients.\nOnly applicable for subject tables.\n",
2715
+ description="The base64-encoded string derived from a Parquet file containing the specified sample seed data.\nThis allows conditional simulation as well as live probing via python clients.\n",
2616
2716
  )
2617
2717
  sampling_temperature: float | None = Field(
2618
2718
  1.0,
@@ -2841,6 +2941,25 @@ class OrganizationMember(CustomBaseModel):
2841
2941
  role: MemberRole | None = None
2842
2942
 
2843
2943
 
2944
+ class BillingInfo(CustomBaseModel):
2945
+ """
2946
+ Billing information for an account.
2947
+ """
2948
+
2949
+ customer_portal_uri: AnyUrl = Field(
2950
+ ...,
2951
+ alias="customerPortalUri",
2952
+ description="The URL of the customer portal for managing billing and subscriptions.",
2953
+ )
2954
+ billing_cycle: BillingCycle = Field(..., alias="billingCycle")
2955
+ cancels_at: AwareDatetime | None = Field(
2956
+ None,
2957
+ alias="cancelsAt",
2958
+ description="The UTC date and time when the subscription will be canceled.",
2959
+ )
2960
+ current_plan: Plan = Field(..., alias="currentPlan")
2961
+
2962
+
2844
2963
  class ModelMetrics(CustomBaseModel):
2845
2964
  """
2846
2965
  Metrics regarding the quality of synthetic data, measured in terms of accuracy, similarity, and distances.
@@ -3112,13 +3231,13 @@ class JobProgress(CustomBaseModel):
3112
3231
  """
3113
3232
 
3114
3233
  id: str | None = None
3115
- start_date: datetime | None = Field(
3234
+ start_date: AwareDatetime | None = Field(
3116
3235
  None,
3117
3236
  alias="startDate",
3118
3237
  description="The UTC date and time when the job has started.\nIf the job has not started yet, then this is None.\n",
3119
3238
  examples=["2024-01-25T12:34:56Z"],
3120
3239
  )
3121
- end_date: datetime | None = Field(
3240
+ end_date: AwareDatetime | None = Field(
3122
3241
  None,
3123
3242
  alias="endDate",
3124
3243
  description="The UTC date and time when the job has ended.\nIf the job is still, then this is None.\n",
@@ -3293,6 +3412,7 @@ class CurrentUser(CustomBaseModel):
3293
3412
  alias="unreadNotifications",
3294
3413
  description="Number of unread notifications for the user",
3295
3414
  )
3415
+ plan: UserPlan | None = None
3296
3416
  organizations: list[OrganizationListItem] | None = Field(None, description="The organizations the user belongs to")
3297
3417
 
3298
3418
 
@@ -3308,7 +3428,7 @@ class Generator(CustomBaseModel):
3308
3428
  name: str | None = Field(None, description="The name of a generator.")
3309
3429
  description: str | None = Field(None, description="The description of a generator.")
3310
3430
  training_status: ProgressStatus = Field(..., alias="trainingStatus")
3311
- training_time: datetime | None = Field(
3431
+ training_time: AwareDatetime | None = Field(
3312
3432
  None,
3313
3433
  alias="trainingTime",
3314
3434
  description="The UTC date and time when the training has finished.",
@@ -3617,7 +3737,7 @@ class SyntheticDataset(CustomBaseModel):
3617
3737
  name: str | None = Field(None, description="The name of a synthetic dataset.")
3618
3738
  description: str | None = Field(None, description="The description of a synthetic dataset.")
3619
3739
  generation_status: ProgressStatus = Field(..., alias="generationStatus")
3620
- generation_time: datetime | None = Field(
3740
+ generation_time: AwareDatetime | None = Field(
3621
3741
  None,
3622
3742
  alias="generationTime",
3623
3743
  description="The UTC date and time when the generation has finished.",
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mostlyai"
3
- version = "4.9.3"
3
+ version = "5.1.0"
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.4.8", # for release
52
+ "mostlyai-engine==1.5.1", # 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.4.8", # for release
78
+ "mostlyai-engine[gpu]==1.5.1", # 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