mostlyai 0.6.2__tar.gz → 0.7.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.
- {mostlyai-0.6.2 → mostlyai-0.7.0}/PKG-INFO +18 -18
- {mostlyai-0.6.2 → mostlyai-0.7.0}/README.md +15 -15
- {mostlyai-0.6.2 → mostlyai-0.7.0}/mostlyai/__init__.py +1 -1
- {mostlyai-0.6.2 → mostlyai-0.7.0}/mostlyai/client/_mostly_utils.py +1 -1
- {mostlyai-0.6.2 → mostlyai-0.7.0}/mostlyai/client/api.py +5 -5
- {mostlyai-0.6.2 → mostlyai-0.7.0}/mostlyai/client/connectors.py +1 -1
- {mostlyai-0.6.2 → mostlyai-0.7.0}/mostlyai/client/generators.py +1 -1
- {mostlyai-0.6.2 → mostlyai-0.7.0}/mostlyai/client/synthetic_datasets.py +1 -1
- {mostlyai-0.6.2/mostlyai/client → mostlyai-0.7.0/mostlyai}/domain.py +95 -14
- {mostlyai-0.6.2 → mostlyai-0.7.0}/pyproject.toml +3 -3
- {mostlyai-0.6.2 → mostlyai-0.7.0}/LICENSE +0 -0
- {mostlyai-0.6.2 → mostlyai-0.7.0}/mostlyai/client/__init__.py +0 -0
- {mostlyai-0.6.2 → mostlyai-0.7.0}/mostlyai/client/_base_utils.py +0 -0
- {mostlyai-0.6.2 → mostlyai-0.7.0}/mostlyai/client/_naming_conventions.py +0 -0
- {mostlyai-0.6.2 → mostlyai-0.7.0}/mostlyai/client/base.py +0 -0
- {mostlyai-0.6.2 → mostlyai-0.7.0}/mostlyai/client/exceptions.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mostlyai
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: MOSTLY AI - Python Client
|
|
5
5
|
Home-page: https://app.mostly.ai/
|
|
6
6
|
License: Apache-2.0
|
|
@@ -29,31 +29,31 @@ Requires-Dist: pandas (>=1.5.3,<3.0.0)
|
|
|
29
29
|
Requires-Dist: pyarrow (>=14.0.0)
|
|
30
30
|
Requires-Dist: pydantic (>=2.4.2,<3.0.0)
|
|
31
31
|
Requires-Dist: rich (>=13.7.0)
|
|
32
|
-
Project-URL: Documentation, https://mostly-ai.github.io/mostlyai
|
|
33
|
-
Project-URL: Source, https://github.com/mostly-ai/mostlyai
|
|
32
|
+
Project-URL: Documentation, https://mostly-ai.github.io/mostlyai/
|
|
33
|
+
Project-URL: Source, https://github.com/mostly-ai/mostlyai
|
|
34
34
|
Description-Content-Type: text/markdown
|
|
35
35
|
|
|
36
|
-
# MOSTLY AI -
|
|
36
|
+
# MOSTLY AI - SDK 🚀
|
|
37
37
|
|
|
38
|
-
[](https://mostly-ai.github.io/mostlyai
|
|
38
|
+
[](https://mostly-ai.github.io/mostlyai/) [](https://pypi.org/project/mostlyai/)   
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
[Package Documentation](https://mostly-ai.github.io/mostlyai/) | [Platform Documentation](https://mostly.ai/docs) | [Usage Examples](https://mostly-ai.github.io/mostlyai/api_client/)
|
|
41
41
|
|
|
42
|
-
The
|
|
42
|
+
The official Python SDK for [MOSTLY AI](https://app.mostly.ai/), the #1 platform for high-fidelity privacy-safe **Synthetic Data**.
|
|
43
|
+
|
|
44
|
+
This toolkit allows you to programmatically create, browse and manage the 3 key resources of the MOSTLY AI platform:
|
|
43
45
|
|
|
44
46
|
1. **Generators** - Train a synthetic data generator on your existing tabular or language data assets
|
|
45
47
|
2. **Synthetic Datasets** - Use a generator to create any number of synthetic samples to your needs
|
|
46
48
|
3. **Connectors** - Connect to any data source within your organization, for reading and writing data
|
|
47
49
|
|
|
48
50
|
|
|
49
|
-
| Intent | Primitive | Documentation
|
|
50
|
-
|
|
51
|
-
| Train a Generator on tabular or language data | `g = mostly.train(config)` | see [mostly.train](https://mostly-ai.github.io/mostlyai
|
|
52
|
-
| Generate any number of synthetic data records | `sd = mostly.generate(g, config)` | see [mostly.generate](https://mostly-ai.github.io/mostlyai
|
|
53
|
-
| Live probe the generator on demand | `df = mostly.probe(g, config)` | see [mostly.probe](https://mostly-ai.github.io/mostlyai
|
|
54
|
-
| Connect to any data source within your org | `c = mostly.connect(config)` | see [mostly.connect](https://mostly-ai.github.io/mostlyai
|
|
55
|
-
|
|
56
|
-
See our [Package Documentation](https://mostly-ai.github.io/mostlyai-client/) as well also our [Platform Documentation](https://mostly.ai/docs) for detailed feature descriptions and further Python examples.
|
|
51
|
+
| Intent | Primitive | Documentation |
|
|
52
|
+
|-----------------------------------------------|-----------------------------------|---------------------------------------------------------------------------------------------------------------|
|
|
53
|
+
| Train a Generator on tabular or language data | `g = mostly.train(config)` | see [mostly.train](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.client.api.MostlyAI.train) |
|
|
54
|
+
| Generate any number of synthetic data records | `sd = mostly.generate(g, config)` | see [mostly.generate](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.client.api.MostlyAI.generate) |
|
|
55
|
+
| Live probe the generator on demand | `df = mostly.probe(g, config)` | see [mostly.probe](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.client.api.MostlyAI.probe) |
|
|
56
|
+
| Connect to any data source within your org | `c = mostly.connect(config)` | see [mostly.connect](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.client.api.MostlyAI.connect) |
|
|
57
57
|
|
|
58
58
|
## Installation
|
|
59
59
|
|
|
@@ -105,10 +105,10 @@ df_synthetic = sd.data()
|
|
|
105
105
|
Please consider citing our project if you find it useful:
|
|
106
106
|
|
|
107
107
|
```bibtex
|
|
108
|
-
@software{mostlyai
|
|
108
|
+
@software{mostlyai,
|
|
109
109
|
author = {{MOSTLY AI}},
|
|
110
|
-
title = {{MOSTLY AI
|
|
111
|
-
url = {https://github.com/mostly-ai/mostlyai
|
|
110
|
+
title = {{MOSTLY AI SDK}},
|
|
111
|
+
url = {https://github.com/mostly-ai/mostlyai},
|
|
112
112
|
year = {2024}
|
|
113
113
|
}
|
|
114
114
|
```
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# MOSTLY AI -
|
|
1
|
+
# MOSTLY AI - SDK 🚀
|
|
2
2
|
|
|
3
|
-
[](https://mostly-ai.github.io/mostlyai
|
|
3
|
+
[](https://mostly-ai.github.io/mostlyai/) [](https://pypi.org/project/mostlyai/)   
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[Package Documentation](https://mostly-ai.github.io/mostlyai/) | [Platform Documentation](https://mostly.ai/docs) | [Usage Examples](https://mostly-ai.github.io/mostlyai/api_client/)
|
|
6
6
|
|
|
7
|
-
The
|
|
7
|
+
The official Python SDK for [MOSTLY AI](https://app.mostly.ai/), the #1 platform for high-fidelity privacy-safe **Synthetic Data**.
|
|
8
|
+
|
|
9
|
+
This toolkit allows you to programmatically create, browse and manage the 3 key resources of the MOSTLY AI platform:
|
|
8
10
|
|
|
9
11
|
1. **Generators** - Train a synthetic data generator on your existing tabular or language data assets
|
|
10
12
|
2. **Synthetic Datasets** - Use a generator to create any number of synthetic samples to your needs
|
|
11
13
|
3. **Connectors** - Connect to any data source within your organization, for reading and writing data
|
|
12
14
|
|
|
13
15
|
|
|
14
|
-
| Intent | Primitive | Documentation
|
|
15
|
-
|
|
16
|
-
| Train a Generator on tabular or language data | `g = mostly.train(config)` | see [mostly.train](https://mostly-ai.github.io/mostlyai
|
|
17
|
-
| Generate any number of synthetic data records | `sd = mostly.generate(g, config)` | see [mostly.generate](https://mostly-ai.github.io/mostlyai
|
|
18
|
-
| Live probe the generator on demand | `df = mostly.probe(g, config)` | see [mostly.probe](https://mostly-ai.github.io/mostlyai
|
|
19
|
-
| Connect to any data source within your org | `c = mostly.connect(config)` | see [mostly.connect](https://mostly-ai.github.io/mostlyai
|
|
20
|
-
|
|
21
|
-
See our [Package Documentation](https://mostly-ai.github.io/mostlyai-client/) as well also our [Platform Documentation](https://mostly.ai/docs) for detailed feature descriptions and further Python examples.
|
|
16
|
+
| Intent | Primitive | Documentation |
|
|
17
|
+
|-----------------------------------------------|-----------------------------------|---------------------------------------------------------------------------------------------------------------|
|
|
18
|
+
| Train a Generator on tabular or language data | `g = mostly.train(config)` | see [mostly.train](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.client.api.MostlyAI.train) |
|
|
19
|
+
| Generate any number of synthetic data records | `sd = mostly.generate(g, config)` | see [mostly.generate](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.client.api.MostlyAI.generate) |
|
|
20
|
+
| Live probe the generator on demand | `df = mostly.probe(g, config)` | see [mostly.probe](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.client.api.MostlyAI.probe) |
|
|
21
|
+
| Connect to any data source within your org | `c = mostly.connect(config)` | see [mostly.connect](https://mostly-ai.github.io/mostlyai/api_client/#mostlyai.client.api.MostlyAI.connect) |
|
|
22
22
|
|
|
23
23
|
## Installation
|
|
24
24
|
|
|
@@ -70,10 +70,10 @@ df_synthetic = sd.data()
|
|
|
70
70
|
Please consider citing our project if you find it useful:
|
|
71
71
|
|
|
72
72
|
```bibtex
|
|
73
|
-
@software{mostlyai
|
|
73
|
+
@software{mostlyai,
|
|
74
74
|
author = {{MOSTLY AI}},
|
|
75
|
-
title = {{MOSTLY AI
|
|
76
|
-
url = {https://github.com/mostly-ai/mostlyai
|
|
75
|
+
title = {{MOSTLY AI SDK}},
|
|
76
|
+
url = {https://github.com/mostly-ai/mostlyai},
|
|
77
77
|
year = {2024}
|
|
78
78
|
}
|
|
79
79
|
```
|
|
@@ -28,7 +28,7 @@ from rich.progress import (
|
|
|
28
28
|
from rich.style import Style
|
|
29
29
|
|
|
30
30
|
from mostlyai.client._base_utils import convert_to_base64, read_table_from_path
|
|
31
|
-
from mostlyai.
|
|
31
|
+
from mostlyai.domain import (
|
|
32
32
|
StepCode,
|
|
33
33
|
ProgressStatus,
|
|
34
34
|
Generator,
|
|
@@ -21,7 +21,7 @@ import rich
|
|
|
21
21
|
from mostlyai.client.base import GET, _MostlyBaseClient
|
|
22
22
|
from mostlyai.client.connectors import _MostlyConnectorsClient
|
|
23
23
|
from mostlyai.client.generators import _MostlyGeneratorsClient
|
|
24
|
-
from mostlyai.
|
|
24
|
+
from mostlyai.domain import (
|
|
25
25
|
Connector,
|
|
26
26
|
CurrentUser,
|
|
27
27
|
Generator,
|
|
@@ -121,7 +121,7 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
121
121
|
"""
|
|
122
122
|
Create a connector and optionally validate the connection before saving.
|
|
123
123
|
|
|
124
|
-
See [ConnectorConfig](api_domain.md#mostlyai.
|
|
124
|
+
See [ConnectorConfig](api_domain.md#mostlyai.domain.ConnectorConfig) for more information on the available configuration parameters.
|
|
125
125
|
|
|
126
126
|
Example for creating a connector to a AWS S3 storage:
|
|
127
127
|
```python
|
|
@@ -282,7 +282,7 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
282
282
|
"""
|
|
283
283
|
Train a generator.
|
|
284
284
|
|
|
285
|
-
See [GeneratorConfig](api_domain.md#mostlyai.
|
|
285
|
+
See [GeneratorConfig](api_domain.md#mostlyai.domain.GeneratorConfig) for more information on the available configuration parameters.
|
|
286
286
|
|
|
287
287
|
Example configuration using short-hand notation:
|
|
288
288
|
```python
|
|
@@ -393,7 +393,7 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
393
393
|
"""
|
|
394
394
|
Generate synthetic data.
|
|
395
395
|
|
|
396
|
-
See [SyntheticDatasetConfig](api_domain.md#mostlyai.
|
|
396
|
+
See [SyntheticDatasetConfig](api_domain.md#mostlyai.domain.SyntheticDatasetConfig) for more information on the available configuration parameters.
|
|
397
397
|
|
|
398
398
|
Example configuration using short-hand notation:
|
|
399
399
|
```python
|
|
@@ -495,7 +495,7 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
495
495
|
"""
|
|
496
496
|
Probe a generator.
|
|
497
497
|
|
|
498
|
-
See [SyntheticProbeConfig](api_domain.md#mostlyai.
|
|
498
|
+
See [SyntheticProbeConfig](api_domain.md#mostlyai.domain.SyntheticProbeConfig) for more information on the available configuration parameters.
|
|
499
499
|
|
|
500
500
|
Example for probing a generator for 10 synthetic samples:
|
|
501
501
|
```python
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
from typing import Any, Iterator, Optional, List, Dict, Union
|
|
16
16
|
|
|
17
17
|
from mostlyai.client.base import DELETE, GET, PATCH, POST, Paginator, _MostlyBaseClient
|
|
18
|
-
from mostlyai.
|
|
18
|
+
from mostlyai.domain import (
|
|
19
19
|
Connector,
|
|
20
20
|
ConnectorListItem,
|
|
21
21
|
ConnectorPatchConfig,
|
|
@@ -20,7 +20,7 @@ from typing import Any, Iterator, Optional, Union
|
|
|
20
20
|
import pandas as pd
|
|
21
21
|
|
|
22
22
|
from mostlyai.client.base import DELETE, GET, PATCH, POST, Paginator, _MostlyBaseClient
|
|
23
|
-
from mostlyai.
|
|
23
|
+
from mostlyai.domain import (
|
|
24
24
|
JobProgress,
|
|
25
25
|
SyntheticDataset,
|
|
26
26
|
SyntheticDatasetFormat,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
# generated by datamodel-codegen:
|
|
16
|
-
# timestamp: 2024-12-
|
|
16
|
+
# timestamp: 2024-12-19T19:16:18+00:00
|
|
17
17
|
|
|
18
18
|
from __future__ import annotations
|
|
19
19
|
|
|
@@ -24,9 +24,10 @@ import pandas as pd
|
|
|
24
24
|
from pathlib import Path
|
|
25
25
|
from pydantic import field_validator
|
|
26
26
|
from mostlyai.client._base_utils import convert_to_base64
|
|
27
|
-
from mostlyai.client.base import CustomBaseModel
|
|
28
27
|
from pydantic import Field, RootModel
|
|
29
28
|
|
|
29
|
+
from mostlyai.client.base import CustomBaseModel
|
|
30
|
+
|
|
30
31
|
|
|
31
32
|
class AboutService(CustomBaseModel):
|
|
32
33
|
"""
|
|
@@ -109,7 +110,7 @@ class ParallelTrainingJobs(CustomBaseModel):
|
|
|
109
110
|
|
|
110
111
|
class ParallelGenerationJobs(CustomBaseModel):
|
|
111
112
|
current: Optional[int] = Field(
|
|
112
|
-
None, description="The number of currently running generation jobs"
|
|
113
|
+
None, description="The number of currently running generation jobs."
|
|
113
114
|
)
|
|
114
115
|
limit: Optional[int] = Field(
|
|
115
116
|
None,
|
|
@@ -129,7 +130,7 @@ class UserUsage(CustomBaseModel):
|
|
|
129
130
|
|
|
130
131
|
class NotificationStatus(str, Enum):
|
|
131
132
|
"""
|
|
132
|
-
The status of the notification
|
|
133
|
+
The status of the notification.
|
|
133
134
|
"""
|
|
134
135
|
|
|
135
136
|
unread = "UNREAD"
|
|
@@ -670,14 +671,14 @@ class ProgressStatus(str, Enum):
|
|
|
670
671
|
"""
|
|
671
672
|
The status of a job or a step.
|
|
672
673
|
|
|
673
|
-
- NEW
|
|
674
|
-
- CONTINUE
|
|
675
|
-
- ON_HOLD
|
|
676
|
-
- QUEUED
|
|
677
|
-
- IN_PROGRESS
|
|
678
|
-
- DONE
|
|
679
|
-
- FAILED
|
|
680
|
-
- CANCELED
|
|
674
|
+
- `NEW`: The job/step is being configured, and has not started yet
|
|
675
|
+
- `CONTINUE`: The job/step is being configured, but has existing artefacts
|
|
676
|
+
- `ON_HOLD`: The job/step has been started, but is kept on hold
|
|
677
|
+
- `QUEUED`: The job/step has been started, and is awaiting for resources to execute
|
|
678
|
+
- `IN_PROGRESS`: The job/step is currently running
|
|
679
|
+
- `DONE`: The job/step has finished successfully
|
|
680
|
+
- `FAILED`: The job/step has failed
|
|
681
|
+
- `CANCELED`: The job/step has been canceled
|
|
681
682
|
|
|
682
683
|
"""
|
|
683
684
|
|
|
@@ -1425,6 +1426,10 @@ class ShareDeleteConfig(CustomBaseModel):
|
|
|
1425
1426
|
|
|
1426
1427
|
|
|
1427
1428
|
class User(CustomBaseModel):
|
|
1429
|
+
"""
|
|
1430
|
+
A user of the service.
|
|
1431
|
+
"""
|
|
1432
|
+
|
|
1428
1433
|
id: Optional[str] = Field(None, description="The unique identifier of a user.")
|
|
1429
1434
|
first_name: Optional[str] = Field(
|
|
1430
1435
|
None, alias="firstName", description="First name of a user", max_length=30
|
|
@@ -1436,6 +1441,10 @@ class User(CustomBaseModel):
|
|
|
1436
1441
|
|
|
1437
1442
|
|
|
1438
1443
|
class CurrentUser(CustomBaseModel):
|
|
1444
|
+
"""
|
|
1445
|
+
Information on the current user.
|
|
1446
|
+
"""
|
|
1447
|
+
|
|
1439
1448
|
id: Optional[str] = Field(None, description="The unique identifier of a user.")
|
|
1440
1449
|
first_name: Optional[str] = Field(
|
|
1441
1450
|
None, alias="firstName", description="First name of a user", max_length=30
|
|
@@ -1454,19 +1463,27 @@ class CurrentUser(CustomBaseModel):
|
|
|
1454
1463
|
|
|
1455
1464
|
|
|
1456
1465
|
class UserSettingsUpdateConfig(CustomBaseModel):
|
|
1466
|
+
"""
|
|
1467
|
+
The configuration for updating user settings.
|
|
1468
|
+
"""
|
|
1469
|
+
|
|
1457
1470
|
profile: Optional[UserSettingsProfileUpdateConfig] = None
|
|
1458
1471
|
assistant: Optional[UserSettingsAssistantUpdateConfig] = None
|
|
1459
1472
|
|
|
1460
1473
|
|
|
1461
1474
|
class Notification(CustomBaseModel):
|
|
1475
|
+
"""
|
|
1476
|
+
A notification for a user.
|
|
1477
|
+
"""
|
|
1478
|
+
|
|
1462
1479
|
id: str = Field(..., description="The unique identifier of the notification.")
|
|
1463
1480
|
type: NotificationType
|
|
1464
|
-
message: str = Field(..., description="The message of the notification")
|
|
1481
|
+
message: str = Field(..., description="The message of the notification.")
|
|
1465
1482
|
status: NotificationStatus
|
|
1466
1483
|
created_at: datetime = Field(
|
|
1467
1484
|
...,
|
|
1468
1485
|
alias="createdAt",
|
|
1469
|
-
description="The UTC date and time when the notification has been created",
|
|
1486
|
+
description="The UTC date and time when the notification has been created.",
|
|
1470
1487
|
)
|
|
1471
1488
|
resource_uri: Optional[str] = Field(
|
|
1472
1489
|
None,
|
|
@@ -1497,11 +1514,19 @@ class GeneratorListItem(CustomBaseModel):
|
|
|
1497
1514
|
|
|
1498
1515
|
|
|
1499
1516
|
class Probe(CustomBaseModel):
|
|
1517
|
+
"""
|
|
1518
|
+
The generated synthetic samples returned as a result of the probe.
|
|
1519
|
+
"""
|
|
1520
|
+
|
|
1500
1521
|
name: Optional[str] = Field(None, description="The name of the table.")
|
|
1501
1522
|
rows: Optional[List[Dict[str, Any]]] = None
|
|
1502
1523
|
|
|
1503
1524
|
|
|
1504
1525
|
class SourceColumn(CustomBaseModel):
|
|
1526
|
+
"""
|
|
1527
|
+
A column as part of a source table.
|
|
1528
|
+
"""
|
|
1529
|
+
|
|
1505
1530
|
id: str = Field(..., description="The unique identifier of a source column.")
|
|
1506
1531
|
name: str = Field(..., description="The name of a source column.")
|
|
1507
1532
|
included: bool = Field(
|
|
@@ -1523,6 +1548,10 @@ class GeneratorCloneConfig(CustomBaseModel):
|
|
|
1523
1548
|
|
|
1524
1549
|
|
|
1525
1550
|
class SourceColumnConfig(CustomBaseModel):
|
|
1551
|
+
"""
|
|
1552
|
+
The configuration for a source column when creating a new generator.
|
|
1553
|
+
"""
|
|
1554
|
+
|
|
1526
1555
|
name: str = Field(..., description="The name of a source column.")
|
|
1527
1556
|
model_encoding_type: Optional[ModelEncodingType] = Field(
|
|
1528
1557
|
ModelEncodingType.auto, alias="modelEncodingType"
|
|
@@ -1530,6 +1559,10 @@ class SourceColumnConfig(CustomBaseModel):
|
|
|
1530
1559
|
|
|
1531
1560
|
|
|
1532
1561
|
class SourceColumnPatchConfig(CustomBaseModel):
|
|
1562
|
+
"""
|
|
1563
|
+
The configuration for updating a source column.
|
|
1564
|
+
"""
|
|
1565
|
+
|
|
1533
1566
|
included: Optional[bool] = Field(
|
|
1534
1567
|
None,
|
|
1535
1568
|
description="If true, the column will be included in the training.\nIf false, the column will be excluded from the training.\n",
|
|
@@ -1614,6 +1647,10 @@ class ModelConfiguration(CustomBaseModel):
|
|
|
1614
1647
|
|
|
1615
1648
|
|
|
1616
1649
|
class ProgressStep(CustomBaseModel):
|
|
1650
|
+
"""
|
|
1651
|
+
The progress of a step.
|
|
1652
|
+
"""
|
|
1653
|
+
|
|
1617
1654
|
id: Optional[str] = None
|
|
1618
1655
|
model_label: Optional[str] = Field(
|
|
1619
1656
|
None,
|
|
@@ -1702,10 +1739,18 @@ class SyntheticTableConfiguration(CustomBaseModel):
|
|
|
1702
1739
|
|
|
1703
1740
|
|
|
1704
1741
|
class SyntheticTablePatchConfig(CustomBaseModel):
|
|
1742
|
+
"""
|
|
1743
|
+
The configuration for updating a synthetic table.
|
|
1744
|
+
"""
|
|
1745
|
+
|
|
1705
1746
|
configuration: Optional[SyntheticTableConfiguration] = None
|
|
1706
1747
|
|
|
1707
1748
|
|
|
1708
1749
|
class SyntheticTableConfig(CustomBaseModel):
|
|
1750
|
+
"""
|
|
1751
|
+
The configuration for a synthetic table when creating a new synthetic dataset.
|
|
1752
|
+
"""
|
|
1753
|
+
|
|
1709
1754
|
name: str = Field(
|
|
1710
1755
|
...,
|
|
1711
1756
|
description="The name of a synthetic table. This matches the name of a corresponding SourceTable.",
|
|
@@ -1725,6 +1770,10 @@ class AssistantThreadListItem(CustomBaseModel):
|
|
|
1725
1770
|
|
|
1726
1771
|
|
|
1727
1772
|
class AssistantThread(CustomBaseModel):
|
|
1773
|
+
"""
|
|
1774
|
+
A assistant thread.
|
|
1775
|
+
"""
|
|
1776
|
+
|
|
1728
1777
|
id: Optional[str] = Field(
|
|
1729
1778
|
None, description="The unique identifier of a assistant thread."
|
|
1730
1779
|
)
|
|
@@ -1772,6 +1821,10 @@ class ResourceShares(CustomBaseModel):
|
|
|
1772
1821
|
|
|
1773
1822
|
|
|
1774
1823
|
class SourceTable(CustomBaseModel):
|
|
1824
|
+
"""
|
|
1825
|
+
A table as part of a generator.
|
|
1826
|
+
"""
|
|
1827
|
+
|
|
1775
1828
|
id: str = Field(..., description="The unique identifier of a source table.")
|
|
1776
1829
|
source_connector: Optional[BaseResource] = Field(None, alias="sourceConnector")
|
|
1777
1830
|
location: Optional[str] = Field(
|
|
@@ -1855,6 +1908,10 @@ class SourceTable(CustomBaseModel):
|
|
|
1855
1908
|
|
|
1856
1909
|
|
|
1857
1910
|
class SourceTableConfig(CustomBaseModel):
|
|
1911
|
+
"""
|
|
1912
|
+
The configuration for a source table when creating a new generator.
|
|
1913
|
+
"""
|
|
1914
|
+
|
|
1858
1915
|
name: str = Field(
|
|
1859
1916
|
...,
|
|
1860
1917
|
description="The name of a source table. It must be unique within a generator.",
|
|
@@ -1897,6 +1954,10 @@ class SourceTableConfig(CustomBaseModel):
|
|
|
1897
1954
|
|
|
1898
1955
|
|
|
1899
1956
|
class SourceTablePatchConfig(CustomBaseModel):
|
|
1957
|
+
"""
|
|
1958
|
+
The configuration for updating a source table.
|
|
1959
|
+
"""
|
|
1960
|
+
|
|
1900
1961
|
name: Optional[str] = Field(
|
|
1901
1962
|
None,
|
|
1902
1963
|
description="The name of a source table. It must be unique within a generator.",
|
|
@@ -1913,6 +1974,10 @@ class SourceTablePatchConfig(CustomBaseModel):
|
|
|
1913
1974
|
|
|
1914
1975
|
|
|
1915
1976
|
class SourceTableAddConfig(CustomBaseModel):
|
|
1977
|
+
"""
|
|
1978
|
+
The configuration for adding a new source table to a generator.
|
|
1979
|
+
"""
|
|
1980
|
+
|
|
1916
1981
|
source_connector_id: str = Field(
|
|
1917
1982
|
...,
|
|
1918
1983
|
alias="sourceConnectorId",
|
|
@@ -1940,6 +2005,10 @@ class SourceTableAddConfig(CustomBaseModel):
|
|
|
1940
2005
|
|
|
1941
2006
|
|
|
1942
2007
|
class JobProgress(CustomBaseModel):
|
|
2008
|
+
"""
|
|
2009
|
+
The progress of a job.
|
|
2010
|
+
"""
|
|
2011
|
+
|
|
1943
2012
|
id: Optional[str] = None
|
|
1944
2013
|
start_date: Optional[datetime] = Field(
|
|
1945
2014
|
None,
|
|
@@ -1959,6 +2028,10 @@ class JobProgress(CustomBaseModel):
|
|
|
1959
2028
|
|
|
1960
2029
|
|
|
1961
2030
|
class SyntheticTable(CustomBaseModel):
|
|
2031
|
+
"""
|
|
2032
|
+
A synthetic table that will be generated.
|
|
2033
|
+
"""
|
|
2034
|
+
|
|
1962
2035
|
id: Optional[str] = Field(
|
|
1963
2036
|
None, description="The unique identifier of a synthetic table."
|
|
1964
2037
|
)
|
|
@@ -1992,6 +2065,10 @@ class SyntheticTable(CustomBaseModel):
|
|
|
1992
2065
|
|
|
1993
2066
|
|
|
1994
2067
|
class SyntheticDatasetConfig(CustomBaseModel):
|
|
2068
|
+
"""
|
|
2069
|
+
The configuration for creating a new synthetic dataset.
|
|
2070
|
+
"""
|
|
2071
|
+
|
|
1995
2072
|
generator_id: Optional[str] = Field(
|
|
1996
2073
|
None, alias="generatorId", description="The unique identifier of a generator."
|
|
1997
2074
|
)
|
|
@@ -2004,6 +2081,10 @@ class SyntheticDatasetConfig(CustomBaseModel):
|
|
|
2004
2081
|
|
|
2005
2082
|
|
|
2006
2083
|
class SyntheticProbeConfig(CustomBaseModel):
|
|
2084
|
+
"""
|
|
2085
|
+
The configuration for probing for new synthetic samples.
|
|
2086
|
+
"""
|
|
2087
|
+
|
|
2007
2088
|
generator_id: Optional[str] = Field(
|
|
2008
2089
|
None, alias="generatorId", description="The unique identifier of a generator."
|
|
2009
2090
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "mostlyai"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.7.0"
|
|
4
4
|
description = "MOSTLY AI - Python Client"
|
|
5
5
|
homepage = "https://app.mostly.ai/"
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -26,8 +26,8 @@ classifiers = [
|
|
|
26
26
|
|
|
27
27
|
[tool.poetry.urls]
|
|
28
28
|
"Homepage" = "https://app.mostly.ai/"
|
|
29
|
-
"Documentation" = "https://mostly-ai.github.io/mostlyai
|
|
30
|
-
"Source" = "https://github.com/mostly-ai/mostlyai
|
|
29
|
+
"Documentation" = "https://mostly-ai.github.io/mostlyai/"
|
|
30
|
+
"Source" = "https://github.com/mostly-ai/mostlyai"
|
|
31
31
|
|
|
32
32
|
[tool.poetry.dependencies]
|
|
33
33
|
python = "^3.9"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|