mostlyai 0.4.0__tar.gz → 0.4.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mostlyai
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: The official Python client for the MOSTLY AI platform.
5
5
  Home-page: https://app.mostly.ai/
6
6
  License: Proprietary
@@ -1,4 +1,4 @@
1
1
  from mostlyai.api import MostlyAI
2
2
 
3
3
  __all__ = ["MostlyAI"]
4
- __version__ = "0.4.0" # Do not set this manually. Use poetry version [params].
4
+ __version__ = "0.4.2" # Do not set this manually. Use poetry version [params].
@@ -1,7 +1,7 @@
1
1
  from typing import Any, Iterator, Optional, List, Dict
2
2
 
3
3
  from mostlyai.base import DELETE, GET, PATCH, POST, Paginator, _MostlyBaseClient
4
- from mostlyai.model import Connector
4
+ from mostlyai.model import Connector, ConnectorListItem
5
5
  from mostlyai.shares import _MostlySharesMixin
6
6
 
7
7
 
@@ -16,7 +16,7 @@ class _MostlyConnectorsClient(_MostlyBaseClient, _MostlySharesMixin):
16
16
  limit: int = 50,
17
17
  access_type: Optional[str] = None,
18
18
  search_term: Optional[str] = None,
19
- ) -> Iterator[Connector]:
19
+ ) -> Iterator[ConnectorListItem]:
20
20
  """
21
21
  List connectors.
22
22
 
@@ -31,7 +31,7 @@ class _MostlyConnectorsClient(_MostlyBaseClient, _MostlySharesMixin):
31
31
  """
32
32
  with Paginator(
33
33
  self,
34
- Connector,
34
+ ConnectorListItem,
35
35
  offset=offset,
36
36
  limit=limit,
37
37
  access_type=access_type,
@@ -5,7 +5,7 @@ import re
5
5
  import pandas as pd
6
6
 
7
7
  from mostlyai.base import DELETE, GET, PATCH, POST, Paginator, _MostlyBaseClient
8
- from mostlyai.model import Generator, JobProgress
8
+ from mostlyai.model import Generator, JobProgress, GeneratorListItem
9
9
  from mostlyai.shares import _MostlySharesMixin
10
10
  from mostlyai.utils import (
11
11
  _convert_to_base64,
@@ -25,7 +25,7 @@ class _MostlyGeneratorsClient(_MostlyBaseClient, _MostlySharesMixin):
25
25
  limit: int = 50,
26
26
  status: Optional[Union[str, list[str]]] = None,
27
27
  search_term: Optional[str] = None,
28
- ) -> Iterator[Generator]:
28
+ ) -> Iterator[GeneratorListItem]:
29
29
  """
30
30
  List generators.
31
31
 
@@ -40,7 +40,7 @@ class _MostlyGeneratorsClient(_MostlyBaseClient, _MostlySharesMixin):
40
40
  status = ",".join(status) if isinstance(status, list) else status
41
41
  with Paginator(
42
42
  self,
43
- Generator,
43
+ GeneratorListItem,
44
44
  offset=offset,
45
45
  limit=limit,
46
46
  status=status,
@@ -1,5 +1,5 @@
1
1
  # generated by datamodel-codegen:
2
- # timestamp: 2024-09-04T22:33:57+00:00
2
+ # timestamp: 2024-09-18T15:56:08+00:00
3
3
 
4
4
  from __future__ import annotations
5
5
 
@@ -506,12 +506,28 @@ class Accuracy(CustomBaseModel):
506
506
 
507
507
 
508
508
  class Distances(CustomBaseModel):
509
+ dcr_training: Annotated[
510
+ Optional[float],
511
+ Field(
512
+ None,
513
+ alias="dcrTraining",
514
+ description="The average DCR between the synthetic and the training records.",
515
+ ),
516
+ ] = None
517
+ dcr_holdout: Annotated[
518
+ Optional[float],
519
+ Field(
520
+ None,
521
+ alias="dcrHoldout",
522
+ description="The average DCR between the synthetic and the holdout records.",
523
+ ),
524
+ ] = None
509
525
  dcr_original: Annotated[
510
526
  Optional[float],
511
527
  Field(
512
528
  None,
513
529
  alias="dcrOriginal",
514
- description="The average DCR between the original records.",
530
+ description="(DEPRECATED) The average DCR between the original records.",
515
531
  ),
516
532
  ] = None
517
533
  dcr_synthetic: Annotated[
@@ -519,7 +535,7 @@ class Distances(CustomBaseModel):
519
535
  Field(
520
536
  None,
521
537
  alias="dcrSynthetic",
522
- description="The average DCR between the synthetic and the original records.",
538
+ description="(DEPRECATED) The average DCR between the synthetic and the original records.",
523
539
  ),
524
540
  ] = None
525
541
 
@@ -1199,6 +1215,7 @@ class ProgressStep(CustomBaseModel):
1199
1215
  examples=[["census:tabular", "census:language"]],
1200
1216
  ),
1201
1217
  ] = None
1218
+ compute_name: Annotated[Optional[str], Field(None, alias="computeName")] = None
1202
1219
  step_code: Annotated[Optional[StepCode], Field(None, alias="stepCode")] = None
1203
1220
  start_date: Annotated[
1204
1221
  Optional[AwareDatetime],
@@ -1311,6 +1328,9 @@ class SyntheticTable(CustomBaseModel):
1311
1328
  model_metrics: Annotated[
1312
1329
  Optional[ModelMetrics], Field(None, alias="modelMetrics")
1313
1330
  ] = None
1331
+ language_model_metrics: Annotated[
1332
+ Optional[ModelMetrics], Field(None, alias="languageModelMetrics")
1333
+ ] = None
1314
1334
  foreign_keys: Annotated[
1315
1335
  Optional[List[ForeignKey]],
1316
1336
  Field(None, alias="foreignKeys", description="The foreign keys of this table."),
@@ -6,7 +6,12 @@ from typing import Any, Iterator, Optional, Union
6
6
  import pandas as pd
7
7
 
8
8
  from mostlyai.base import DELETE, GET, PATCH, POST, Paginator, _MostlyBaseClient
9
- from mostlyai.model import JobProgress, SyntheticDataset, SyntheticDatasetFormat
9
+ from mostlyai.model import (
10
+ JobProgress,
11
+ SyntheticDataset,
12
+ SyntheticDatasetFormat,
13
+ SyntheticDatasetListItem,
14
+ )
10
15
  from mostlyai.utils import _job_wait
11
16
 
12
17
 
@@ -21,7 +26,7 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
21
26
  limit: int = 50,
22
27
  status: Optional[Union[str, list[str]]] = None,
23
28
  search_term: Optional[str] = None,
24
- ) -> Iterator[SyntheticDataset]:
29
+ ) -> Iterator[SyntheticDatasetListItem]:
25
30
  """
26
31
  List synthetic datasets.
27
32
 
@@ -36,7 +41,7 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
36
41
  status = ",".join(status) if isinstance(status, list) else status
37
42
  with Paginator(
38
43
  self,
39
- SyntheticDataset,
44
+ SyntheticDatasetListItem,
40
45
  offset=offset,
41
46
  limit=limit,
42
47
  status=status,
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "mostlyai"
3
- version = "0.4.0"
3
+ version = "0.4.2"
4
4
  description = "The official Python client for the MOSTLY AI platform."
5
5
  homepage = "https://app.mostly.ai/"
6
6
  authors = ["MOSTLY AI <office@mostly.ai>"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes