mostlyai 4.2.2__tar.gz → 4.2.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 (84) hide show
  1. {mostlyai-4.2.2 → mostlyai-4.2.4}/PKG-INFO +35 -19
  2. {mostlyai-4.2.2 → mostlyai-4.2.4}/README.md +13 -11
  3. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/__init__.py +1 -1
  4. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/server.py +1 -11
  5. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/client/_utils.py +62 -26
  6. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/client/api.py +69 -22
  7. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/client/base.py +2 -7
  8. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/client/connectors.py +3 -0
  9. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/client/generators.py +3 -0
  10. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/client/synthetic_datasets.py +3 -0
  11. {mostlyai-4.2.2 → mostlyai-4.2.4}/pyproject.toml +43 -15
  12. {mostlyai-4.2.2 → mostlyai-4.2.4}/.gitignore +0 -0
  13. {mostlyai-4.2.2 → mostlyai-4.2.4}/LICENSE +0 -0
  14. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/__init__.py +0 -0
  15. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/auto_detect.py +0 -0
  16. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/base.py +0 -0
  17. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/context.py +0 -0
  18. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/conversions.py +0 -0
  19. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/db/__init__.py +0 -0
  20. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/db/base.py +0 -0
  21. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/db/bigquery.py +0 -0
  22. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/db/databricks.py +0 -0
  23. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/db/hive.py +0 -0
  24. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/db/mssql.py +0 -0
  25. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/db/mysql.py +0 -0
  26. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/db/oracle.py +0 -0
  27. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/db/postgresql.py +0 -0
  28. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/db/snowflake.py +0 -0
  29. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/db/sqlite.py +0 -0
  30. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/db/types_coercion.py +0 -0
  31. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/dtype.py +0 -0
  32. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/exceptions.py +0 -0
  33. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/__init__.py +0 -0
  34. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/base.py +0 -0
  35. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/container/__init__.py +0 -0
  36. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/container/aws.py +0 -0
  37. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/container/azure.py +0 -0
  38. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/container/bucket_based.py +0 -0
  39. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/container/gcs.py +0 -0
  40. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/container/minio.py +0 -0
  41. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/table/__init__.py +0 -0
  42. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/table/csv.py +0 -0
  43. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/table/feather.py +0 -0
  44. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/table/json.py +0 -0
  45. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/table/parquet.py +0 -0
  46. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/file/utils.py +0 -0
  47. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/language_model.py +0 -0
  48. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/metadata_objects.py +0 -0
  49. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/non_context.py +0 -0
  50. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/progress_callback.py +0 -0
  51. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/pull.py +0 -0
  52. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/pull_context.py +0 -0
  53. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/pull_utils.py +0 -0
  54. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/push.py +0 -0
  55. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/util/__init__.py +0 -0
  56. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/util/common.py +0 -0
  57. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_data/util/kerberos.py +0 -0
  58. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/__init__.py +0 -0
  59. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/cli.py +0 -0
  60. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/connectors.py +0 -0
  61. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/__init__.py +0 -0
  62. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/jobs.py +0 -0
  63. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/plan.py +0 -0
  64. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/step_analyze_training_data.py +0 -0
  65. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/step_create_data_report.py +0 -0
  66. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/step_create_model_report.py +0 -0
  67. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/step_deliver_data.py +0 -0
  68. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/step_encode_training_data.py +0 -0
  69. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/step_finalize_generation.py +0 -0
  70. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/step_finalize_training.py +0 -0
  71. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/step_generate_data.py +0 -0
  72. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py +0 -0
  73. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/step_pull_training_data.py +0 -0
  74. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/execution/step_train_model.py +0 -0
  75. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/generators.py +0 -0
  76. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/progress.py +0 -0
  77. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/routes.py +0 -0
  78. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/storage.py +0 -0
  79. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/_local/synthetic_datasets.py +0 -0
  80. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/client/__init__.py +0 -0
  81. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/client/_base_utils.py +0 -0
  82. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/client/_naming_conventions.py +0 -0
  83. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/client/exceptions.py +0 -0
  84. {mostlyai-4.2.2 → mostlyai-4.2.4}/mostlyai/sdk/domain.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mostlyai
3
- Version: 4.2.2
3
+ Version: 4.2.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
@@ -25,14 +25,10 @@ Classifier: Topic :: Software Development :: Libraries
25
25
  Classifier: Typing :: Typed
26
26
  Requires-Python: <3.14,>=3.10
27
27
  Requires-Dist: environs>=9.5.0
28
- Requires-Dist: filelock>=3.16.1
29
28
  Requires-Dist: greenlet<4,>=3.1.1
30
29
  Requires-Dist: gunicorn>=23.0.0
31
30
  Requires-Dist: httpx>=0.25.0
32
31
  Requires-Dist: ipywidgets>=8.1.0
33
- Requires-Dist: joblib>=1.2.0
34
- Requires-Dist: networkx<4,>=3.0
35
- Requires-Dist: openpyxl>=3.1.5
36
32
  Requires-Dist: pandas>=2.0.0
37
33
  Requires-Dist: psutil>=5.9.5
38
34
  Requires-Dist: pyarrow>=16.0.0
@@ -43,10 +39,7 @@ Requires-Dist: rich>=13.7.0
43
39
  Requires-Dist: schema>=0.7.5
44
40
  Requires-Dist: semantic-version>=2.10.0
45
41
  Requires-Dist: smart-open>=6.0.0
46
- Requires-Dist: sqlalchemy>=2.0.0
47
- Requires-Dist: sshtunnel<0.5,>=0.4.0
48
42
  Requires-Dist: typer>=0.9.0
49
- Requires-Dist: xlsxwriter<4,>=3.1.9
50
43
  Requires-Dist: xxhash>=3.2.0
51
44
  Provides-Extra: databricks
52
45
  Requires-Dist: databricks-sql-connector<4,>=3.2.0; extra == 'databricks'
@@ -61,41 +54,62 @@ Requires-Dist: adlfs>=2023.4.0; extra == 'local'
61
54
  Requires-Dist: azure-storage-blob>=12.16.0; extra == 'local'
62
55
  Requires-Dist: cloudpathlib[azure,gs,s3]>=0.17.0; extra == 'local'
63
56
  Requires-Dist: fastapi<0.116,>=0.115.6; extra == 'local'
57
+ Requires-Dist: filelock>=3.16.1; extra == 'local'
64
58
  Requires-Dist: gcsfs>=2023.1.0; extra == 'local'
59
+ Requires-Dist: joblib>=1.2.0; extra == 'local'
65
60
  Requires-Dist: mostlyai-engine==1.1.4; extra == 'local'
66
61
  Requires-Dist: mostlyai-qa==1.5.5; extra == 'local'
62
+ Requires-Dist: networkx<4,>=3.0; extra == 'local'
63
+ Requires-Dist: openpyxl>=3.1.5; extra == 'local'
67
64
  Requires-Dist: python-multipart>=0.0.20; extra == 'local'
68
65
  Requires-Dist: s3fs>=2023.1.0; extra == 'local'
69
66
  Requires-Dist: smart-open[azure,gcs,s3]>=6.3.0; extra == 'local'
67
+ Requires-Dist: sqlalchemy>=2.0.0; extra == 'local'
68
+ Requires-Dist: sshtunnel<0.5,>=0.4.0; extra == 'local'
70
69
  Requires-Dist: torch<2.6.0,>=2.5.1; extra == 'local'
71
70
  Requires-Dist: uvicorn<0.35,>=0.34.0; extra == 'local'
71
+ Requires-Dist: xlsxwriter<4,>=3.1.9; extra == 'local'
72
72
  Provides-Extra: local-cpu
73
73
  Requires-Dist: adlfs>=2023.4.0; extra == 'local-cpu'
74
74
  Requires-Dist: azure-storage-blob>=12.16.0; extra == 'local-cpu'
75
75
  Requires-Dist: cloudpathlib[azure,gs,s3]>=0.17.0; extra == 'local-cpu'
76
76
  Requires-Dist: fastapi<0.116,>=0.115.6; extra == 'local-cpu'
77
+ Requires-Dist: filelock>=3.16.1; extra == 'local-cpu'
77
78
  Requires-Dist: gcsfs>=2023.1.0; extra == 'local-cpu'
79
+ Requires-Dist: joblib>=1.2.0; extra == 'local-cpu'
78
80
  Requires-Dist: mostlyai-engine[cpu]==1.1.4; extra == 'local-cpu'
79
81
  Requires-Dist: mostlyai-qa[cpu]==1.5.5; extra == 'local-cpu'
82
+ Requires-Dist: networkx<4,>=3.0; extra == 'local-cpu'
83
+ Requires-Dist: openpyxl>=3.1.5; extra == 'local-cpu'
80
84
  Requires-Dist: python-multipart>=0.0.20; extra == 'local-cpu'
81
85
  Requires-Dist: s3fs>=2023.1.0; extra == 'local-cpu'
82
86
  Requires-Dist: smart-open[azure,gcs,s3]>=6.3.0; extra == 'local-cpu'
87
+ Requires-Dist: sqlalchemy>=2.0.0; extra == 'local-cpu'
88
+ Requires-Dist: sshtunnel<0.5,>=0.4.0; extra == 'local-cpu'
83
89
  Requires-Dist: torch<2.6.0,>=2.5.1; (sys_platform != 'linux') and extra == 'local-cpu'
84
90
  Requires-Dist: torch==2.5.1+cpu; (sys_platform == 'linux') and extra == 'local-cpu'
85
91
  Requires-Dist: uvicorn<0.35,>=0.34.0; extra == 'local-cpu'
92
+ Requires-Dist: xlsxwriter<4,>=3.1.9; extra == 'local-cpu'
86
93
  Provides-Extra: local-gpu
87
94
  Requires-Dist: adlfs>=2023.4.0; extra == 'local-gpu'
88
95
  Requires-Dist: azure-storage-blob>=12.16.0; extra == 'local-gpu'
89
96
  Requires-Dist: cloudpathlib[azure,gs,s3]>=0.17.0; extra == 'local-gpu'
90
97
  Requires-Dist: fastapi<0.116,>=0.115.6; extra == 'local-gpu'
98
+ Requires-Dist: filelock>=3.16.1; extra == 'local-gpu'
91
99
  Requires-Dist: gcsfs>=2023.1.0; extra == 'local-gpu'
100
+ Requires-Dist: joblib>=1.2.0; extra == 'local-gpu'
92
101
  Requires-Dist: mostlyai-engine[gpu]==1.1.4; extra == 'local-gpu'
93
102
  Requires-Dist: mostlyai-qa[gpu]==1.5.5; extra == 'local-gpu'
103
+ Requires-Dist: networkx<4,>=3.0; extra == 'local-gpu'
104
+ Requires-Dist: openpyxl>=3.1.5; extra == 'local-gpu'
94
105
  Requires-Dist: python-multipart>=0.0.20; extra == 'local-gpu'
95
106
  Requires-Dist: s3fs>=2023.1.0; extra == 'local-gpu'
96
107
  Requires-Dist: smart-open[azure,gcs,s3]>=6.3.0; extra == 'local-gpu'
108
+ Requires-Dist: sqlalchemy>=2.0.0; extra == 'local-gpu'
109
+ Requires-Dist: sshtunnel<0.5,>=0.4.0; extra == 'local-gpu'
97
110
  Requires-Dist: torch<2.6.0,>=2.5.1; extra == 'local-gpu'
98
111
  Requires-Dist: uvicorn<0.35,>=0.34.0; extra == 'local-gpu'
112
+ Requires-Dist: xlsxwriter<4,>=3.1.9; extra == 'local-gpu'
99
113
  Provides-Extra: mssql
100
114
  Requires-Dist: pyodbc<6,>=5.1.0; extra == 'mssql'
101
115
  Provides-Extra: mysql
@@ -122,8 +136,8 @@ Description-Content-Type: text/markdown
122
136
 
123
137
  The Synthetic Data SDK is a Python toolkit for high-fidelity, privacy-safe **Synthetic Data**.
124
138
 
125
- - **Local mode** trains and generates synthetic data locally on your own compute resources.
126
- - **Client mode** connects to a remote MOSTLY AI platform for training & generating synthetic data there.
139
+ - **LOCAL** mode trains and generates synthetic data locally on your own compute resources.
140
+ - **CLIENT** mode connects to a remote MOSTLY AI platform for training & generating synthetic data there.
127
141
  - Generators, that were trained locally, can be easily imported to a platform for further sharing.
128
142
 
129
143
  ## Overview
@@ -134,22 +148,24 @@ The SDK allows you to programmatically create, browse and manage 3 key resources
134
148
  2. **Synthetic Datasets** - Use a generator to create any number of synthetic samples to your needs
135
149
  3. **Connectors** - Connect to any data source within your organization, for reading and writing data
136
150
 
137
- | Intent | Primitive | Documentation |
138
- |-----------------------------------------------|-----------------------------------|-------------------------------------------------------------------------------------------------------------------|
139
- | Train a Generator on tabular or language data | `g = mostly.train(config)` | see [mostly.train](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.train) |
140
- | Generate any number of synthetic data records | `sd = mostly.generate(g, config)` | see [mostly.generate](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.generate) |
141
- | Live probe the generator on demand | `df = mostly.probe(g, config)` | see [mostly.probe](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.probe) |
142
- | Connect to any data source within your org | `c = mostly.connect(config)` | see [mostly.connect](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.connect) |
151
+ | Intent | Primitive | API Reference |
152
+ |-----------------------------------------------|-----------------------------------|---------------------------------------------------------------------------------------------------------------|
153
+ | Train a Generator on tabular or language data | `g = mostly.train(config)` | [mostly.train](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.train) |
154
+ | Generate any number of synthetic data records | `sd = mostly.generate(g, config)` | [mostly.generate](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.generate) |
155
+ | Live probe the generator on demand | `df = mostly.probe(g, config)` | [mostly.probe](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.probe) |
156
+ | Connect to any data source within your org | `c = mostly.connect(config)` | [mostly.connect](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.connect) |
157
+
158
+ https://github.com/user-attachments/assets/d1613636-06e4-4147-bef7-25bb4699e8fc
143
159
 
144
160
  ## Installation
145
161
 
146
- **Client mode only**
162
+ **CLIENT mode only**
147
163
 
148
164
  ```shell
149
165
  pip install -U mostlyai
150
166
  ```
151
167
 
152
- **Client + Local mode**
168
+ **CLIENT + LOCAL mode**
153
169
 
154
170
  ```shell
155
171
  # for CPU on macOS
@@ -171,7 +187,7 @@ pip install -U 'mostlyai[local, databricks, snowflake]'
171
187
 
172
188
  ## Quick Start <a href="https://colab.research.google.com/github/mostly-ai/mostlyai/blob/main/docs/tutorials/getting-started/getting-started.ipynb" target="_blank"><img src="https://img.shields.io/badge/Open%20in-Colab-blue?logo=google-colab" alt="Run on Colab"></a>
173
189
 
174
- Generate your first samples based on your own trained generator with a few lines of code. For local mode, initialize the SDK with `local=True`. For client mode, initialize the SDK with `base_url` and `api_key` obtained from your [account settings page](https://app.mostly.ai/settings/api-keys).
190
+ Generate your first samples based on your own trained generator with a few lines of code. For LOCAL mode, initialize the SDK with `local=True`. For CLIENT mode, initialize the SDK with `base_url` and `api_key` obtained from your [account settings page](https://app.mostly.ai/settings/api-keys).
175
191
 
176
192
  ```python
177
193
  import pandas as pd
@@ -12,8 +12,8 @@
12
12
 
13
13
  The Synthetic Data SDK is a Python toolkit for high-fidelity, privacy-safe **Synthetic Data**.
14
14
 
15
- - **Local mode** trains and generates synthetic data locally on your own compute resources.
16
- - **Client mode** connects to a remote MOSTLY AI platform for training & generating synthetic data there.
15
+ - **LOCAL** mode trains and generates synthetic data locally on your own compute resources.
16
+ - **CLIENT** mode connects to a remote MOSTLY AI platform for training & generating synthetic data there.
17
17
  - Generators, that were trained locally, can be easily imported to a platform for further sharing.
18
18
 
19
19
  ## Overview
@@ -24,22 +24,24 @@ The SDK allows you to programmatically create, browse and manage 3 key resources
24
24
  2. **Synthetic Datasets** - Use a generator to create any number of synthetic samples to your needs
25
25
  3. **Connectors** - Connect to any data source within your organization, for reading and writing data
26
26
 
27
- | Intent | Primitive | Documentation |
28
- |-----------------------------------------------|-----------------------------------|-------------------------------------------------------------------------------------------------------------------|
29
- | Train a Generator on tabular or language data | `g = mostly.train(config)` | see [mostly.train](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.train) |
30
- | Generate any number of synthetic data records | `sd = mostly.generate(g, config)` | see [mostly.generate](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.generate) |
31
- | Live probe the generator on demand | `df = mostly.probe(g, config)` | see [mostly.probe](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.probe) |
32
- | Connect to any data source within your org | `c = mostly.connect(config)` | see [mostly.connect](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.connect) |
27
+ | Intent | Primitive | API Reference |
28
+ |-----------------------------------------------|-----------------------------------|---------------------------------------------------------------------------------------------------------------|
29
+ | Train a Generator on tabular or language data | `g = mostly.train(config)` | [mostly.train](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.train) |
30
+ | Generate any number of synthetic data records | `sd = mostly.generate(g, config)` | [mostly.generate](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.generate) |
31
+ | Live probe the generator on demand | `df = mostly.probe(g, config)` | [mostly.probe](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.probe) |
32
+ | Connect to any data source within your org | `c = mostly.connect(config)` | [mostly.connect](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.sdk.client.api.MostlyAI.connect) |
33
+
34
+ https://github.com/user-attachments/assets/d1613636-06e4-4147-bef7-25bb4699e8fc
33
35
 
34
36
  ## Installation
35
37
 
36
- **Client mode only**
38
+ **CLIENT mode only**
37
39
 
38
40
  ```shell
39
41
  pip install -U mostlyai
40
42
  ```
41
43
 
42
- **Client + Local mode**
44
+ **CLIENT + LOCAL mode**
43
45
 
44
46
  ```shell
45
47
  # for CPU on macOS
@@ -61,7 +63,7 @@ pip install -U 'mostlyai[local, databricks, snowflake]'
61
63
 
62
64
  ## Quick Start <a href="https://colab.research.google.com/github/mostly-ai/mostlyai/blob/main/docs/tutorials/getting-started/getting-started.ipynb" target="_blank"><img src="https://img.shields.io/badge/Open%20in-Colab-blue?logo=google-colab" alt="Run on Colab"></a>
63
65
 
64
- Generate your first samples based on your own trained generator with a few lines of code. For local mode, initialize the SDK with `local=True`. For client mode, initialize the SDK with `base_url` and `api_key` obtained from your [account settings page](https://app.mostly.ai/settings/api-keys).
66
+ Generate your first samples based on your own trained generator with a few lines of code. For LOCAL mode, initialize the SDK with `local=True`. For CLIENT mode, initialize the SDK with `base_url` and `api_key` obtained from your [account settings page](https://app.mostly.ai/settings/api-keys).
65
67
 
66
68
  ```python
67
69
  import pandas as pd
@@ -15,4 +15,4 @@
15
15
  from mostlyai.sdk.client.api import MostlyAI
16
16
 
17
17
  __all__ = ["MostlyAI"]
18
- __version__ = "4.2.2" # Do not set this manually. Use poetry version [params].
18
+ __version__ = "4.2.4" # Do not set this manually. Use poetry version [params].
@@ -18,11 +18,10 @@ from pathlib import Path
18
18
 
19
19
  from threading import Thread
20
20
 
21
- import psutil
22
21
  import rich
23
- import torch
24
22
  from fastapi import FastAPI
25
23
  import uvicorn
24
+
26
25
  from mostlyai.sdk._local.routes import Routes
27
26
 
28
27
  import os
@@ -67,15 +66,6 @@ class LocalServer:
67
66
 
68
67
  def start(self):
69
68
  if not self._server:
70
- msg = f"Starting Synthetic Data SDK in local mode using [link=file://{self.home_dir} dodger_blue2 underline]{self.home_dir}[/]"
71
- # report local compute resources
72
- compute = f"{psutil.virtual_memory().total / (1024**3):.0f} GB RAM, {psutil.cpu_count(logical=True)} CPUs"
73
- if torch.cuda.is_available():
74
- compute += f", {torch.cuda.device_count()}x {torch.cuda.get_device_name()}"
75
- else:
76
- compute += ", 0 GPUs"
77
- msg += f" ({compute})"
78
- rich.print(msg)
79
69
  self._create_server()
80
70
  self._thread = Thread(target=self._run_server, daemon=True)
81
71
  self._thread.start()
@@ -16,6 +16,7 @@ import time
16
16
  from pathlib import Path
17
17
  from typing import Union, Any
18
18
  from collections.abc import Callable
19
+ from urllib.parse import urlparse
19
20
 
20
21
  import pandas as pd
21
22
  import rich
@@ -33,6 +34,7 @@ from rich.style import Style
33
34
  from rich.table import Table
34
35
  from rich.text import Text
35
36
 
37
+ from mostlyai.sdk.client.exceptions import APIError
36
38
  from mostlyai.sdk.domain import (
37
39
  StepCode,
38
40
  ProgressStatus,
@@ -41,29 +43,45 @@ from mostlyai.sdk.domain import (
41
43
  SyntheticProbeConfig,
42
44
  SyntheticTableConfiguration,
43
45
  SyntheticTableConfig,
44
- Connector,
45
- SyntheticDataset,
46
46
  GeneratorListItem,
47
47
  )
48
48
  from mostlyai.sdk.client._naming_conventions import map_camel_to_snake_case
49
49
 
50
50
 
51
- ## utils for manipulating rich's Table object
52
- def _delete_row(table: Table, idx: int = -1) -> Table:
53
- for column in table.columns:
54
- column._cells = column._cells[:idx] + column._cells[idx + 1 :]
55
- table.rows = table.rows[:idx] + table.rows[idx + 1 :]
56
- return table
51
+ def check_local_mode_available() -> None:
52
+ """
53
+ Check if the local mode is available. Raise an exception if it is not.
54
+ """
55
+ try:
56
+ from mostlyai.sdk._local.server import LocalServer # noqa
57
+ from mostlyai import qa # noqa
58
+
59
+ return
60
+ except ImportError:
61
+ raise APIError("LOCAL mode requires additional packages to be installed. Run `pip install 'mostlyai[local]'`.")
62
+
63
+
64
+ def validate_base_url(base_url: str) -> None:
65
+ """
66
+ Check if the provided base URL is valid. Raise an exception if it is not.
67
+ """
68
+ base_url = str(base_url)
69
+ if not base_url:
70
+ raise APIError("Missing base URL.")
71
+ parsed = urlparse(base_url)
72
+ if not all([parsed.scheme, parsed.netloc]):
73
+ raise APIError("Invalid base URL.")
57
74
 
58
75
 
59
- def _insert_row(*renderables: RenderableType | None, table: Table, idx: int = -1) -> Table:
60
- table.add_row(*renderables)
61
- for column in table.columns:
62
- column._cells.insert(idx, column._cells[-1])
63
- column._cells.pop()
64
- table.rows.insert(idx, table.rows[-1])
65
- table.rows.pop()
66
- return table
76
+ def validate_api_key(api_key: str) -> None:
77
+ """
78
+ Check if the provided API key is valid. Raise an exception if it is not.
79
+ """
80
+ api_key = str(api_key)
81
+ if not api_key:
82
+ raise APIError("Missing API key.")
83
+ elif len(api_key) != 71:
84
+ raise APIError("Invalid API key format.")
67
85
 
68
86
 
69
87
  def job_wait(
@@ -114,6 +132,24 @@ def job_wait(
114
132
  layout.add_row(progress)
115
133
  live = Live(layout, refresh_per_second=1 / interval)
116
134
  step_id_to_layout_idx = {}
135
+
136
+ def _rich_table_delete_row(table: Table, idx: int = -1) -> Table:
137
+ # helper method to delete a row from a rich table
138
+ for column in table.columns:
139
+ column._cells = column._cells[:idx] + column._cells[idx + 1 :]
140
+ table.rows = table.rows[:idx] + table.rows[idx + 1 :]
141
+ return table
142
+
143
+ def _rich_table_insert_row(*renderables: RenderableType | None, table: Table, idx: int = -1) -> Table:
144
+ # helper method to insert a row into a rich table
145
+ table.add_row(*renderables)
146
+ for column in table.columns:
147
+ column._cells.insert(idx, column._cells[-1])
148
+ column._cells.pop()
149
+ table.rows.insert(idx, table.rows[-1])
150
+ table.rows.pop()
151
+ return table
152
+
117
153
  try:
118
154
  if progress_bar:
119
155
  # loop until job has completed
@@ -152,17 +188,20 @@ def job_wait(
152
188
  expand=True,
153
189
  header_style="none",
154
190
  )
155
- columns = ["Epochs", "Samples", "Elapsed time", "Val loss"]
191
+ columns = ["Epochs", "Samples", "Elapsed Time", "Val Loss"]
156
192
  if messages and messages[0].get("dp_eps"):
157
193
  columns.append("Diff Privacy (ε/δ)")
158
194
  for col in columns:
159
195
  training_log.add_column(col, justify="right")
160
196
  for j, message in enumerate(messages):
161
197
  formatted_message = [
162
- str(message[k]) for k in ["epoch", "samples", "total_time", "val_loss"]
198
+ f"{message['epoch']:.2f}" if message.get("epoch") else "-",
199
+ f"{message['samples']:,}" if message.get("samples") else "-",
200
+ f"{message['total_time']:.0f}s" if message.get("total_time") else "-",
201
+ f"{message['val_loss']:.4f}" if message.get("val_loss") else "-",
163
202
  ]
164
203
  if message.get("dp_eps"):
165
- formatted_message.append(f"{message['dp_eps']:.2f} / {message['dp_delta']:.1e}")
204
+ formatted_message += [f"{message['dp_eps']:.2f} / {message['dp_delta']:.0e}"]
166
205
  style = "#14b57d on #f0fff7" if j == last_checkpoint_idx else "bright_black"
167
206
  training_log.add_row(*formatted_message, style=style)
168
207
  current_task_id = progress_bars[step.id]
@@ -181,8 +220,8 @@ def job_wait(
181
220
  )
182
221
  if current_task.started:
183
222
  if step.step_code == StepCode.train_model:
184
- _delete_row(layout, step_id_to_layout_idx[step.id])
185
- _insert_row(training_log, table=layout, idx=step_id_to_layout_idx[step.id])
223
+ _rich_table_delete_row(layout, step_id_to_layout_idx[step.id])
224
+ _rich_table_insert_row(training_log, table=layout, idx=step_id_to_layout_idx[step.id])
186
225
  if step.end_date is not None:
187
226
  progress.stop_task(current_task_id)
188
227
  live.update(layout)
@@ -210,7 +249,7 @@ def job_wait(
210
249
  live.stop()
211
250
 
212
251
 
213
- def _get_subject_table_names(generator: Generator) -> list[str]:
252
+ def get_subject_table_names(generator: Generator) -> list[str]:
214
253
  subject_tables = []
215
254
  for table in generator.tables:
216
255
  ctx_fks = [fk for fk in table.foreign_keys or [] if fk.is_context]
@@ -256,7 +295,7 @@ def harmonize_sd_config(
256
295
  config.generator_id = generator_id
257
296
 
258
297
  if not isinstance(size, dict) or not isinstance(seed, dict) or not config.tables:
259
- subject_tables = _get_subject_table_names(generator)
298
+ subject_tables = get_subject_table_names(generator)
260
299
  else:
261
300
  subject_tables = []
262
301
 
@@ -297,6 +336,3 @@ def harmonize_sd_config(
297
336
  )
298
337
 
299
338
  return config
300
-
301
-
302
- ShareableResource = Union[Connector, Generator, SyntheticDataset]
@@ -11,16 +11,17 @@
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
-
14
+ import os
15
15
  from pathlib import Path
16
16
  from typing import Any, Literal
17
17
 
18
18
  import pandas as pd
19
19
  import rich
20
+ from rich.prompt import Prompt
20
21
 
21
- from mostlyai.sdk.client.base import GET, _MostlyBaseClient
22
+ from mostlyai import sdk
23
+ from mostlyai.sdk.client.base import GET, _MostlyBaseClient, DEFAULT_BASE_URL
22
24
  from mostlyai.sdk.client.connectors import _MostlyConnectorsClient
23
- from mostlyai.sdk.client.exceptions import APIError
24
25
  from mostlyai.sdk.client.generators import _MostlyGeneratorsClient
25
26
  from mostlyai.sdk.domain import (
26
27
  Connector,
@@ -43,7 +44,11 @@ from mostlyai.sdk.client._base_utils import convert_to_base64, read_table_from_p
43
44
  from mostlyai.sdk.client._utils import (
44
45
  harmonize_sd_config,
45
46
  Seed,
47
+ check_local_mode_available,
48
+ validate_api_key,
49
+ validate_base_url,
46
50
  )
51
+ from mostlyai.sdk._local.server import LocalServer
47
52
 
48
53
 
49
54
  class MostlyAI(_MostlyBaseClient):
@@ -105,22 +110,50 @@ class MostlyAI(_MostlyBaseClient):
105
110
  # suppress deprecation warnings, also those stemming from external libs
106
111
  warnings.filterwarnings("ignore", category=DeprecationWarning)
107
112
 
113
+ base_url = (base_url or os.getenv("MOSTLY_BASE_URL") or DEFAULT_BASE_URL).rstrip("/")
114
+ api_key = api_key or os.getenv("MOSTLY_API_KEY")
115
+
116
+ # confirm CLIENT or LOCAL setup
117
+ if not api_key and not local:
118
+ choice = Prompt.ask(
119
+ "Select your desired SDK mode:\n\n"
120
+ "1) Run in [bold]CLIENT mode[/bold] 📡, connecting to a remote MOSTLY AI platform\n\n"
121
+ "2) Run in [bold]LOCAL mode[/bold] 🏠, operating offline using your own compute\n\n"
122
+ "Enter your choice",
123
+ choices=["1", "2"],
124
+ default="1",
125
+ )
126
+ if choice == "1":
127
+ base_url = Prompt.ask("Enter the [bold]Base URL[/bold] 🌐 of the MOSTLY AI platform", default=base_url)
128
+ api_key_url = f"{base_url}/settings/api-keys"
129
+ api_key = Prompt.ask(
130
+ f"Enter your [bold]API key[/bold] 🔑 for {base_url} (obtain [link={api_key_url} dodger_blue2 underline]here[/link])",
131
+ default="mostly-xxx",
132
+ password=True,
133
+ )
134
+ rich.print(
135
+ "[dim][bold]Note[/bold]: Instantiate via [bold]MostlyAI(base_url=..., api_key=...)[/bold] to skip this prompt in the future.\n\n"
136
+ "Alternatively set [bold]MOSTLY_BASE_URL[/bold] and [bold]MOSTLY_API_KEY[/bold] as environment variables.[/dim]"
137
+ )
138
+ else:
139
+ local = True
140
+ rich.print(
141
+ "[dim][bold]Note[/bold]: Instantiate via [bold]MostlyAI(local=True)[/bold] to skip this prompt in the future.[/dim]"
142
+ )
143
+
108
144
  if quiet:
109
145
  rich.get_console().quiet = True
110
146
  if local:
111
- try:
112
- from mostlyai.sdk._local.server import LocalServer
113
- from mostlyai import qa # noqa
114
- except ImportError:
115
- raise APIError(
116
- "LOCAL mode requires additional packages to be installed. Run `pip install 'mostlyai[local]'`."
117
- )
118
-
147
+ check_local_mode_available()
119
148
  self.local = LocalServer(home_dir=local_dir)
149
+ home_dir = self.local.home_dir
120
150
  base_url = self.local.base_url
121
151
  api_key = "local"
122
152
  uds = self.local.uds
123
153
  else:
154
+ validate_base_url(base_url)
155
+ validate_api_key(api_key)
156
+ home_dir = None
124
157
  uds = None
125
158
 
126
159
  client_kwargs = {
@@ -135,19 +168,33 @@ class MostlyAI(_MostlyBaseClient):
135
168
  self.generators = _MostlyGeneratorsClient(**client_kwargs)
136
169
  self.synthetic_datasets = _MostlySyntheticDatasetsClient(**client_kwargs)
137
170
  self.synthetic_probes = _MostlySyntheticProbesClient(**client_kwargs)
138
- try:
139
- if local:
140
- msg = "Connected to Synthetic Data SDK in local mode"
171
+ if local:
172
+ rich.print(f"Initializing [bold]Synthetic Data SDK[/bold] {sdk.__version__} in [bold]LOCAL mode[/bold] 🏠")
173
+ msg = f"Connected to [link=file://{home_dir} dodger_blue2 underline]{home_dir}[/]"
174
+ import torch # noqa
175
+ import psutil # noqa
176
+
177
+ msg += f" with {psutil.virtual_memory().total / (1024**3):.0f} GB RAM"
178
+ msg += f", {psutil.cpu_count(logical=True)} CPUs"
179
+ if torch.cuda.is_available():
180
+ msg += f", {torch.cuda.device_count()}x {torch.cuda.get_device_name()}"
141
181
  else:
142
- msg = f"Connected to [link={self.base_url} dodger_blue2 underline]{self.base_url}[/]"
143
- version = self.about().version
144
- msg += f" ({version})"
145
- email = self.me().email
146
- if email:
147
- msg += f" as [bold]{email}[/bold]"
182
+ msg += ", 0 GPUs"
183
+ msg += " available"
148
184
  rich.print(msg)
149
- except Exception as e:
150
- rich.print(f"Failed to connect to {self.base_url}: {e}.")
185
+ else:
186
+ rich.print(f"Initializing [bold]Synthetic Data SDK[/bold] {sdk.__version__} in [bold]CLIENT mode[/bold] 📡")
187
+ try:
188
+ server_version = self.about().version
189
+ email = self.me().email
190
+ msg = (
191
+ f"Connected to [link={self.base_url} dodger_blue2 underline]{self.base_url}[/]"
192
+ f" {server_version}"
193
+ f" as [bold]{email}[/bold]"
194
+ )
195
+ rich.print(msg)
196
+ except Exception as e:
197
+ rich.print(f"Failed to connect to {self.base_url}: {e}.")
151
198
 
152
199
  def __repr__(self) -> str:
153
200
  if self.local:
@@ -73,11 +73,6 @@ class _MostlyBaseClient:
73
73
  self.transport = httpx.HTTPTransport(uds=uds) if uds else None
74
74
  self.timeout = timeout
75
75
  self.ssl_verify = ssl_verify
76
- if not self.api_key:
77
- raise APIError(
78
- "The API key must be either set by passing api_key to the client or by specifying a "
79
- "MOSTLY_API_KEY environment variable"
80
- )
81
76
 
82
77
  def headers(self):
83
78
  return {
@@ -263,15 +258,15 @@ class CustomBaseModel(BaseModel):
263
258
  rich.print(self.model_dump())
264
259
  return capture.get()
265
260
 
266
- def open(self) -> str:
261
+ def open(self) -> None:
267
262
  """
268
263
  Opens the instance in a web browser.
269
264
  """
270
265
  if self.client is None or not self.OPEN_URL_PARTS or not hasattr(self, "id"):
271
266
  raise APIError("Cannot open the instance")
272
267
  url = "/".join([self.client.base_url, *self.OPEN_URL_PARTS, str(self.id)])
268
+ rich.print(f"Go to [link={url}]{url}[/]")
273
269
  webbrowser.open_new(url)
274
- return url
275
270
 
276
271
  def reload(self):
277
272
  """
@@ -45,6 +45,7 @@ class _MostlyConnectorsClient(_MostlyBaseClient):
45
45
  limit: int | None = None,
46
46
  access_type: str | None = None,
47
47
  search_term: str | None = None,
48
+ owner_id: str | list[str] | None = None,
48
49
  ) -> Iterator[ConnectorListItem]:
49
50
  """
50
51
  List connectors.
@@ -64,6 +65,7 @@ class _MostlyConnectorsClient(_MostlyBaseClient):
64
65
  limit: Limit for the number of entities in the response.
65
66
  access_type: Filter by access type (e.g., "SOURCE" or "DESTINATION").
66
67
  search_term: Filter by string in the connector name.
68
+ owner_id: Filter by owner ID.
67
69
 
68
70
  Returns:
69
71
  Iterator[ConnectorListItem]: An iterator over connector list items.
@@ -75,6 +77,7 @@ class _MostlyConnectorsClient(_MostlyBaseClient):
75
77
  limit=limit,
76
78
  access_type=access_type,
77
79
  search_term=search_term,
80
+ owner_id=owner_id,
78
81
  ) as paginator:
79
82
  yield from paginator
80
83
 
@@ -51,6 +51,7 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
51
51
  limit: int | None = None,
52
52
  status: str | list[str] | None = None,
53
53
  search_term: str | None = None,
54
+ owner_id: str | list[str] | None = None,
54
55
  ) -> Iterator[GeneratorListItem]:
55
56
  """
56
57
  List generators.
@@ -78,6 +79,7 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
78
79
  limit: Limit for the number of entities in the response.
79
80
  status: Filter by training status.
80
81
  search_term: Filter by name or description.
82
+ owner_id: Filter by owner ID.
81
83
 
82
84
  Returns:
83
85
  Iterator[GeneratorListItem]: An iterator over generator list items.
@@ -90,6 +92,7 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
90
92
  limit=limit,
91
93
  status=status,
92
94
  search_term=search_term,
95
+ owner_id=owner_id,
93
96
  ) as paginator:
94
97
  yield from paginator
95
98
 
@@ -54,6 +54,7 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
54
54
  limit: int | None = None,
55
55
  status: str | list[str] | None = None,
56
56
  search_term: str | None = None,
57
+ owner_id: str | list[str] | None = None,
57
58
  ) -> Iterator[SyntheticDatasetListItem]:
58
59
  """
59
60
  List synthetic datasets.
@@ -81,6 +82,7 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
81
82
  limit: Limit for the number of entities in the response.
82
83
  status: Filter by generation status.
83
84
  search_term: Filter by name or description.
85
+ owner_id: Filter by owner ID.
84
86
 
85
87
  Returns:
86
88
  An iterator over synthetic datasets.
@@ -93,6 +95,7 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
93
95
  limit=limit,
94
96
  status=status,
95
97
  search_term=search_term,
98
+ owner_id=owner_id,
96
99
  ) as paginator:
97
100
  yield from paginator
98
101
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mostlyai"
3
- version = "4.2.2"
3
+ version = "4.2.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"
@@ -32,22 +32,15 @@ dependencies = [
32
32
  "rich>=13.7.0",
33
33
  "psutil>=5.9.5",
34
34
  "requests>=2.31.0",
35
- "sqlalchemy>=2.0.0",
36
35
  "typer>=0.9.0",
37
36
  "semantic-version>=2.10.0",
38
- "joblib>=1.2.0",
39
37
  "gunicorn>=23.0.0",
40
38
  "environs>=9.5.0",
41
39
  "schema>=0.7.5",
42
40
  "xxhash>=3.2.0",
43
41
  "greenlet>=3.1.1,<4",
44
42
  "pycryptodomex>=3.10.0,<4",
45
- "sshtunnel>=0.4.0,<0.5",
46
- "xlsxwriter>=3.1.9,<4",
47
- "openpyxl>=3.1.5",
48
- "networkx>=3.0,<4",
49
43
  "ipywidgets>=8.1.0",
50
- "filelock>=3.16.1",
51
44
  ]
52
45
 
53
46
  [project.optional-dependencies]
@@ -59,6 +52,13 @@ local = [
59
52
  "uvicorn>=0.34.0,<0.35",
60
53
  "python-multipart>=0.0.20",
61
54
  "torch>=2.5.1,<2.6.0",
55
+ "joblib>=1.2.0",
56
+ "sqlalchemy>=2.0.0",
57
+ "sshtunnel>=0.4.0,<0.5",
58
+ "networkx>=3.0,<4",
59
+ "xlsxwriter>=3.1.9,<4",
60
+ "openpyxl>=3.1.5",
61
+ "filelock>=3.16.1",
62
62
  # cloud-based connectors
63
63
  "s3fs>=2023.1.0",
64
64
  "gcsfs>=2023.1.0",
@@ -74,6 +74,13 @@ local-gpu = [
74
74
  "uvicorn>=0.34.0,<0.35",
75
75
  "python-multipart>=0.0.20",
76
76
  "torch>=2.5.1,<2.6.0",
77
+ "joblib>=1.2.0",
78
+ "sqlalchemy>=2.0.0",
79
+ "sshtunnel>=0.4.0,<0.5",
80
+ "networkx>=3.0,<4",
81
+ "xlsxwriter>=3.1.9,<4",
82
+ "openpyxl>=3.1.5",
83
+ "filelock>=3.16.1",
77
84
  # cloud-based connectors
78
85
  "s3fs>=2023.1.0",
79
86
  "gcsfs>=2023.1.0",
@@ -90,6 +97,13 @@ local-cpu = [
90
97
  "python-multipart>=0.0.20",
91
98
  "torch==2.5.1+cpu; sys_platform == 'linux'",
92
99
  "torch>=2.5.1,<2.6.0; sys_platform != 'linux'",
100
+ "joblib>=1.2.0",
101
+ "sqlalchemy>=2.0.0",
102
+ "sshtunnel>=0.4.0,<0.5",
103
+ "networkx>=3.0,<4",
104
+ "xlsxwriter>=3.1.9,<4",
105
+ "openpyxl>=3.1.5",
106
+ "filelock>=3.16.1",
93
107
  # cloud-based connectors
94
108
  "s3fs>=2023.1.0",
95
109
  "gcsfs>=2023.1.0",
@@ -99,18 +113,32 @@ local-cpu = [
99
113
  "adlfs>=2023.4.0",
100
114
  ]
101
115
  # connectors
102
- databricks = ["databricks-sql-connector>=3.2.0,<4"]
103
- googlebigquery = ["sqlalchemy-bigquery>=1.6.1,<2"]
116
+ databricks = [
117
+ "databricks-sql-connector>=3.2.0,<4",
118
+ ]
119
+ googlebigquery = [
120
+ "sqlalchemy-bigquery>=1.6.1,<2",
121
+ ]
104
122
  hive = [
105
123
  "pyhive[hive-pure-sasl]>=0.7.0,<0.8",
106
124
  "kerberos>=1.3.1,<2",
107
125
  "impyla>=0.19.0,<0.20",
108
126
  ]
109
- mssql = ["pyodbc>=5.1.0,<6"]
110
- mysql = ["mysql-connector-python>=9.1.0,<10"]
111
- oracle = ["oracledb>=2.2.1,<3"]
112
- postgres = ["psycopg2>=2.9.4,<3"]
113
- snowflake = ["snowflake-sqlalchemy>=1.6.1,<2"]
127
+ mssql = [
128
+ "pyodbc>=5.1.0,<6",
129
+ ]
130
+ mysql = [
131
+ "mysql-connector-python>=9.1.0,<10",
132
+ ]
133
+ oracle = [
134
+ "oracledb>=2.2.1,<3"
135
+ ]
136
+ postgres = [
137
+ "psycopg2>=2.9.4,<3"
138
+ ]
139
+ snowflake = [
140
+ "snowflake-sqlalchemy>=1.6.1,<2"
141
+ ]
114
142
 
115
143
  [dependency-groups]
116
144
  dev = [
File without changes
File without changes