mostlyai 0.3.3__tar.gz → 0.3.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mostlyai
3
- Version: 0.3.3
3
+ Version: 0.3.4
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,5 +1,5 @@
1
1
  # generated by datamodel-codegen:
2
- # timestamp: 2024-03-18T16:27:33+00:00
2
+ # timestamp: 2024-04-26T12:18:03+00:00
3
3
 
4
4
  from __future__ import annotations
5
5
 
@@ -182,12 +182,27 @@ class ConnectorTestConnection(RootModel[bool]):
182
182
  ]
183
183
 
184
184
 
185
+ class ConnectorUsage(CustomBaseModel):
186
+ no_of_shares: Annotated[
187
+ Optional[int],
188
+ Field(alias="noOfShares", description="Number of shares of this connector."),
189
+ ] = None
190
+ no_of_generators: Annotated[
191
+ Optional[int],
192
+ Field(
193
+ alias="noOfGenerators",
194
+ description="Number of generators using this connector.",
195
+ ),
196
+ ] = None
197
+
198
+
185
199
  class ConnectorListItem(CustomBaseModel):
186
200
  id: Annotated[str, Field(description="The unique identifier of a connector")]
187
201
  name: Annotated[str, Field(description="The name of a connector")]
188
202
  type: ConnectorType
189
203
  access_type: Annotated[ConnectorAccessType, Field(alias="accessType")]
190
204
  metadata: Metadata
205
+ usage: Optional[ConnectorUsage] = None
191
206
 
192
207
 
193
208
  class Connector(CustomBaseModel):
@@ -199,6 +214,7 @@ class Connector(CustomBaseModel):
199
214
  secrets: Optional[Dict[str, str]] = None
200
215
  ssl: Optional[Dict[str, str]] = None
201
216
  metadata: Optional[Metadata] = None
217
+ usage: Optional[ConnectorUsage] = None
202
218
  table_id: Annotated[
203
219
  Optional[str],
204
220
  Field(
@@ -266,6 +282,17 @@ class GeneratorUsage(CustomBaseModel):
266
282
  description="The total compute time in seconds used for training this generator. \nThis is the sum of the compute time of all trained tasks.\n",
267
283
  ),
268
284
  ] = None
285
+ no_of_synthetic_datasets: Annotated[
286
+ Optional[int],
287
+ Field(
288
+ alias="noOfSyntheticDatasets",
289
+ description="Number of synthetic datasets generated by this generator.",
290
+ ),
291
+ ] = None
292
+ no_of_shares: Annotated[
293
+ Optional[int],
294
+ Field(alias="noOfShares", description="Number of shares of this generator."),
295
+ ] = None
269
296
 
270
297
 
271
298
  class SourceTableData(RootModel[str]):
@@ -541,6 +568,13 @@ class SyntheticDatasetUsage(CustomBaseModel):
541
568
  description="The total compute time in seconds used for generating this synthetic dataset. \nThis is the sum of the compute time of all trained tasks.\n",
542
569
  ),
543
570
  ] = None
571
+ no_of_shares: Annotated[
572
+ Optional[int],
573
+ Field(
574
+ alias="noOfShares",
575
+ description="Number of shares of this synthetic dataset.",
576
+ ),
577
+ ] = None
544
578
 
545
579
 
546
580
  class SyntheticDatasetListItem(CustomBaseModel):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "mostlyai"
3
- version = "0.3.3"
3
+ version = "0.3.4"
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>"]
@@ -9,6 +9,7 @@ readme = "README.md"
9
9
  packages = [
10
10
  { include = "mostlyai" }
11
11
  ]
12
+ exclude = ["tools/", "tools/**/*"]
12
13
 
13
14
  [tool.poetry.dependencies]
14
15
  python = "^3.9"
@@ -23,7 +24,7 @@ pytest = "^7.0.0"
23
24
  mypy = "^0.931"
24
25
  pylint = "^2.12.2"
25
26
  isort = "^5.10.1"
26
- black = "^22.1.0"
27
+ black = "^24.4.0"
27
28
  pre-commit = "^2.17.0"
28
29
  datamodel-code-generator = { version = "^0.22.0", extras = ["http"] }
29
30
 
@@ -33,6 +34,9 @@ ruff = "^0.2.2"
33
34
  respx = "^0.20.2"
34
35
  twine = "^5.0.0"
35
36
  commitizen = "^3.18.0"
37
+ mkdocs = "^1.5.3"
38
+ mkdocstrings = "^0.24.1"
39
+ mkdocs-material = "^9.5.13"
36
40
 
37
41
  [tool.mypy]
38
42
  python_version = "3.9"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes