mostlyai 4.2.3__tar.gz → 4.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mostlyai-4.2.3 → mostlyai-4.2.5}/PKG-INFO +35 -19
- {mostlyai-4.2.3 → mostlyai-4.2.5}/README.md +13 -11
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/__init__.py +1 -1
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/client/_utils.py +56 -23
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/client/api.py +43 -12
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/client/base.py +2 -7
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/client/connectors.py +3 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/client/generators.py +3 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/client/synthetic_datasets.py +3 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/pyproject.toml +43 -15
- {mostlyai-4.2.3 → mostlyai-4.2.5}/.gitignore +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/LICENSE +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/__init__.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/auto_detect.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/base.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/context.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/conversions.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/db/__init__.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/db/base.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/db/bigquery.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/db/databricks.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/db/hive.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/db/mssql.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/db/mysql.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/db/oracle.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/db/postgresql.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/db/snowflake.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/db/sqlite.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/db/types_coercion.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/dtype.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/exceptions.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/__init__.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/base.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/container/__init__.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/container/aws.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/container/azure.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/container/bucket_based.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/container/gcs.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/container/minio.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/table/__init__.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/table/csv.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/table/feather.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/table/json.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/table/parquet.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/file/utils.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/language_model.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/metadata_objects.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/non_context.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/progress_callback.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/pull.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/pull_context.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/pull_utils.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/push.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/util/__init__.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/util/common.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_data/util/kerberos.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/__init__.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/cli.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/connectors.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/__init__.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/jobs.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/plan.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_analyze_training_data.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_create_data_report.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_create_model_report.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_deliver_data.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_encode_training_data.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_finalize_generation.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_finalize_training.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_generate_data.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_pull_training_data.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_train_model.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/generators.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/progress.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/routes.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/server.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/storage.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/synthetic_datasets.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/client/__init__.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/client/_base_utils.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/client/_naming_conventions.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/client/exceptions.py +0 -0
- {mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/domain.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mostlyai
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.5
|
|
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
|
-
- **
|
|
126
|
-
- **
|
|
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 |
|
|
138
|
-
|
|
139
|
-
| Train a Generator on tabular or language data | `g = mostly.train(config)` |
|
|
140
|
-
| Generate any number of synthetic data records | `sd = mostly.generate(g, config)` |
|
|
141
|
-
| Live probe the generator on demand | `df = mostly.probe(g, config)` |
|
|
142
|
-
| Connect to any data source within your org | `c = mostly.connect(config)` |
|
|
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
|
-
**
|
|
162
|
+
**CLIENT mode only**
|
|
147
163
|
|
|
148
164
|
```shell
|
|
149
165
|
pip install -U mostlyai
|
|
150
166
|
```
|
|
151
167
|
|
|
152
|
-
**
|
|
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
|
|
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
|
-
- **
|
|
16
|
-
- **
|
|
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 |
|
|
28
|
-
|
|
29
|
-
| Train a Generator on tabular or language data | `g = mostly.train(config)` |
|
|
30
|
-
| Generate any number of synthetic data records | `sd = mostly.generate(g, config)` |
|
|
31
|
-
| Live probe the generator on demand | `df = mostly.probe(g, config)` |
|
|
32
|
-
| Connect to any data source within your org | `c = mostly.connect(config)` |
|
|
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
|
-
**
|
|
38
|
+
**CLIENT mode only**
|
|
37
39
|
|
|
38
40
|
```shell
|
|
39
41
|
pip install -U mostlyai
|
|
40
42
|
```
|
|
41
43
|
|
|
42
|
-
**
|
|
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
|
|
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
|
|
@@ -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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
|
@@ -184,8 +220,8 @@ def job_wait(
|
|
|
184
220
|
)
|
|
185
221
|
if current_task.started:
|
|
186
222
|
if step.step_code == StepCode.train_model:
|
|
187
|
-
|
|
188
|
-
|
|
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])
|
|
189
225
|
if step.end_date is not None:
|
|
190
226
|
progress.stop_task(current_task_id)
|
|
191
227
|
live.update(layout)
|
|
@@ -213,7 +249,7 @@ def job_wait(
|
|
|
213
249
|
live.stop()
|
|
214
250
|
|
|
215
251
|
|
|
216
|
-
def
|
|
252
|
+
def get_subject_table_names(generator: Generator) -> list[str]:
|
|
217
253
|
subject_tables = []
|
|
218
254
|
for table in generator.tables:
|
|
219
255
|
ctx_fks = [fk for fk in table.foreign_keys or [] if fk.is_context]
|
|
@@ -259,7 +295,7 @@ def harmonize_sd_config(
|
|
|
259
295
|
config.generator_id = generator_id
|
|
260
296
|
|
|
261
297
|
if not isinstance(size, dict) or not isinstance(seed, dict) or not config.tables:
|
|
262
|
-
subject_tables =
|
|
298
|
+
subject_tables = get_subject_table_names(generator)
|
|
263
299
|
else:
|
|
264
300
|
subject_tables = []
|
|
265
301
|
|
|
@@ -300,6 +336,3 @@ def harmonize_sd_config(
|
|
|
300
336
|
)
|
|
301
337
|
|
|
302
338
|
return config
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
ShareableResource = Union[Connector, Generator, SyntheticDataset]
|
|
@@ -11,17 +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
22
|
from mostlyai import sdk
|
|
22
|
-
from mostlyai.sdk.client.base import GET, _MostlyBaseClient
|
|
23
|
+
from mostlyai.sdk.client.base import GET, _MostlyBaseClient, DEFAULT_BASE_URL
|
|
23
24
|
from mostlyai.sdk.client.connectors import _MostlyConnectorsClient
|
|
24
|
-
from mostlyai.sdk.client.exceptions import APIError
|
|
25
25
|
from mostlyai.sdk.client.generators import _MostlyGeneratorsClient
|
|
26
26
|
from mostlyai.sdk.domain import (
|
|
27
27
|
Connector,
|
|
@@ -44,6 +44,9 @@ from mostlyai.sdk.client._base_utils import convert_to_base64, read_table_from_p
|
|
|
44
44
|
from mostlyai.sdk.client._utils import (
|
|
45
45
|
harmonize_sd_config,
|
|
46
46
|
Seed,
|
|
47
|
+
check_local_mode_available,
|
|
48
|
+
validate_api_key,
|
|
49
|
+
validate_base_url,
|
|
47
50
|
)
|
|
48
51
|
|
|
49
52
|
|
|
@@ -106,16 +109,42 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
106
109
|
# suppress deprecation warnings, also those stemming from external libs
|
|
107
110
|
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
|
108
111
|
|
|
112
|
+
base_url = (base_url or os.getenv("MOSTLY_BASE_URL") or DEFAULT_BASE_URL).rstrip("/")
|
|
113
|
+
api_key = api_key or os.getenv("MOSTLY_API_KEY")
|
|
114
|
+
|
|
115
|
+
# confirm CLIENT or LOCAL setup
|
|
116
|
+
if not api_key and not local:
|
|
117
|
+
choice = Prompt.ask(
|
|
118
|
+
"Select your desired SDK mode:\n\n"
|
|
119
|
+
"1) Run in [bold]CLIENT mode[/bold] 📡, connecting to a remote MOSTLY AI platform\n\n"
|
|
120
|
+
"2) Run in [bold]LOCAL mode[/bold] 🏠, operating offline using your own compute\n\n"
|
|
121
|
+
"Enter your choice",
|
|
122
|
+
choices=["1", "2"],
|
|
123
|
+
default="1",
|
|
124
|
+
)
|
|
125
|
+
if choice == "1":
|
|
126
|
+
base_url = Prompt.ask("Enter the [bold]Base URL[/bold] 🌐 of the MOSTLY AI platform", default=base_url)
|
|
127
|
+
api_key_url = f"{base_url}/settings/api-keys"
|
|
128
|
+
api_key = Prompt.ask(
|
|
129
|
+
f"Enter your [bold]API key[/bold] 🔑 for {base_url} (obtain [link={api_key_url} dodger_blue2 underline]here[/link])",
|
|
130
|
+
default="mostly-xxx",
|
|
131
|
+
password=True,
|
|
132
|
+
)
|
|
133
|
+
rich.print(
|
|
134
|
+
"[dim][bold]Note[/bold]: Instantiate via [bold]MostlyAI(base_url=..., api_key=...)[/bold] to skip this prompt in the future.\n\n"
|
|
135
|
+
"Alternatively set [bold]MOSTLY_BASE_URL[/bold] and [bold]MOSTLY_API_KEY[/bold] as environment variables.[/dim]"
|
|
136
|
+
)
|
|
137
|
+
else:
|
|
138
|
+
local = True
|
|
139
|
+
rich.print(
|
|
140
|
+
"[dim][bold]Note[/bold]: Instantiate via [bold]MostlyAI(local=True)[/bold] to skip this prompt in the future.[/dim]"
|
|
141
|
+
)
|
|
142
|
+
|
|
109
143
|
if quiet:
|
|
110
144
|
rich.get_console().quiet = True
|
|
111
145
|
if local:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
from mostlyai import qa # noqa
|
|
115
|
-
except ImportError:
|
|
116
|
-
raise APIError(
|
|
117
|
-
"LOCAL mode requires additional packages to be installed. Run `pip install 'mostlyai[local]'`."
|
|
118
|
-
)
|
|
146
|
+
check_local_mode_available()
|
|
147
|
+
from mostlyai.sdk._local.server import LocalServer # noqa
|
|
119
148
|
|
|
120
149
|
self.local = LocalServer(home_dir=local_dir)
|
|
121
150
|
home_dir = self.local.home_dir
|
|
@@ -123,6 +152,8 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
123
152
|
api_key = "local"
|
|
124
153
|
uds = self.local.uds
|
|
125
154
|
else:
|
|
155
|
+
validate_base_url(base_url)
|
|
156
|
+
validate_api_key(api_key)
|
|
126
157
|
home_dir = None
|
|
127
158
|
uds = None
|
|
128
159
|
|
|
@@ -139,7 +170,7 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
139
170
|
self.synthetic_datasets = _MostlySyntheticDatasetsClient(**client_kwargs)
|
|
140
171
|
self.synthetic_probes = _MostlySyntheticProbesClient(**client_kwargs)
|
|
141
172
|
if local:
|
|
142
|
-
rich.print(f"Initializing [bold]Synthetic Data SDK[/bold] {sdk.__version__} in [bold]
|
|
173
|
+
rich.print(f"Initializing [bold]Synthetic Data SDK[/bold] {sdk.__version__} in [bold]LOCAL mode[/bold] 🏠")
|
|
143
174
|
msg = f"Connected to [link=file://{home_dir} dodger_blue2 underline]{home_dir}[/]"
|
|
144
175
|
import torch # noqa
|
|
145
176
|
import psutil # noqa
|
|
@@ -153,7 +184,7 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
153
184
|
msg += " available"
|
|
154
185
|
rich.print(msg)
|
|
155
186
|
else:
|
|
156
|
-
rich.print(f"Initializing [bold]Synthetic Data SDK[/bold] {sdk.__version__} in [bold]
|
|
187
|
+
rich.print(f"Initializing [bold]Synthetic Data SDK[/bold] {sdk.__version__} in [bold]CLIENT mode[/bold] 📡")
|
|
157
188
|
try:
|
|
158
189
|
server_version = self.about().version
|
|
159
190
|
email = self.me().email
|
|
@@ -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) ->
|
|
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.
|
|
3
|
+
version = "4.2.5"
|
|
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 = [
|
|
103
|
-
|
|
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 = [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_analyze_training_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_encode_training_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-4.2.3 → mostlyai-4.2.5}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|