mostlyai 4.3.1__tar.gz → 4.3.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.
Files changed (86) hide show
  1. {mostlyai-4.3.1 → mostlyai-4.3.2}/PKG-INFO +1 -1
  2. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/__init__.py +1 -1
  3. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/client/api.py +69 -69
  4. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/domain.py +5 -4
  5. mostlyai-4.3.2/mostlyai/sdk/py.typed +0 -0
  6. {mostlyai-4.3.1 → mostlyai-4.3.2}/pyproject.toml +1 -1
  7. mostlyai-4.3.1/mostlyai/sdk/py.typed +0 -1
  8. {mostlyai-4.3.1 → mostlyai-4.3.2}/.gitignore +0 -0
  9. {mostlyai-4.3.1 → mostlyai-4.3.2}/LICENSE +0 -0
  10. {mostlyai-4.3.1 → mostlyai-4.3.2}/README.md +0 -0
  11. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/__init__.py +0 -0
  12. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/auto_detect.py +0 -0
  13. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/base.py +0 -0
  14. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/context.py +0 -0
  15. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/conversions.py +0 -0
  16. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/db/__init__.py +0 -0
  17. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/db/base.py +0 -0
  18. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/db/bigquery.py +0 -0
  19. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/db/databricks.py +0 -0
  20. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/db/hive.py +0 -0
  21. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/db/mssql.py +0 -0
  22. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/db/mysql.py +0 -0
  23. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/db/oracle.py +0 -0
  24. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/db/postgresql.py +0 -0
  25. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/db/snowflake.py +0 -0
  26. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/db/sqlite.py +0 -0
  27. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/db/types_coercion.py +0 -0
  28. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/dtype.py +0 -0
  29. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/exceptions.py +0 -0
  30. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/__init__.py +0 -0
  31. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/base.py +0 -0
  32. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/container/__init__.py +0 -0
  33. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/container/aws.py +0 -0
  34. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/container/azure.py +0 -0
  35. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/container/bucket_based.py +0 -0
  36. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/container/gcs.py +0 -0
  37. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/container/minio.py +0 -0
  38. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/table/__init__.py +0 -0
  39. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/table/csv.py +0 -0
  40. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/table/feather.py +0 -0
  41. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/table/json.py +0 -0
  42. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/table/parquet.py +0 -0
  43. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/file/utils.py +0 -0
  44. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/language_model.py +0 -0
  45. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/metadata_objects.py +0 -0
  46. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/non_context.py +0 -0
  47. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/progress_callback.py +0 -0
  48. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/pull.py +0 -0
  49. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/pull_context.py +0 -0
  50. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/pull_utils.py +0 -0
  51. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/push.py +0 -0
  52. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/util/__init__.py +0 -0
  53. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/util/common.py +0 -0
  54. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_data/util/kerberos.py +0 -0
  55. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/__init__.py +0 -0
  56. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/cli.py +0 -0
  57. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/connectors.py +0 -0
  58. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/__init__.py +0 -0
  59. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/jobs.py +0 -0
  60. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/plan.py +0 -0
  61. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/step_analyze_training_data.py +0 -0
  62. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/step_create_data_report.py +0 -0
  63. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/step_create_model_report.py +0 -0
  64. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/step_deliver_data.py +0 -0
  65. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/step_encode_training_data.py +0 -0
  66. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/step_finalize_generation.py +0 -0
  67. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/step_finalize_training.py +0 -0
  68. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/step_generate_data.py +0 -0
  69. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py +0 -0
  70. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/step_pull_training_data.py +0 -0
  71. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/execution/step_train_model.py +0 -0
  72. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/generators.py +0 -0
  73. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/progress.py +0 -0
  74. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/routes.py +0 -0
  75. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/server.py +0 -0
  76. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/storage.py +0 -0
  77. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/_local/synthetic_datasets.py +0 -0
  78. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/client/__init__.py +0 -0
  79. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/client/_base_utils.py +0 -0
  80. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/client/_naming_conventions.py +0 -0
  81. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/client/_utils.py +0 -0
  82. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/client/base.py +0 -0
  83. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/client/connectors.py +6 -6
  84. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/client/exceptions.py +0 -0
  85. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/client/generators.py +25 -25
  86. {mostlyai-4.3.1 → mostlyai-4.3.2}/mostlyai/sdk/client/synthetic_datasets.py +22 -22
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mostlyai
3
- Version: 4.3.1
3
+ Version: 4.3.2
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
@@ -15,4 +15,4 @@
15
15
  from mostlyai.sdk.client.api import MostlyAI
16
16
 
17
17
  __all__ = ["MostlyAI"]
18
- __version__ = "4.3.1" # Do not set this manually. Use poetry version [params].
18
+ __version__ = "4.3.2" # Do not set this manually. Use poetry version [params].
@@ -54,7 +54,17 @@ class MostlyAI(_MostlyBaseClient):
54
54
  """
55
55
  Instantiate an SDK instance, either in CLIENT or in LOCAL mode.
56
56
 
57
- Example for instantiating the SDK in CLIENT mode with explicit arguments:
57
+ Args:
58
+ base_url: The base URL. If not provided, a default value is used.
59
+ api_key: The API key for authenticating. If not provided, it would rely on environment variables.
60
+ local: Whether to run in local mode or not.
61
+ local_dir: The directory to use for local mode. If not provided, `~/mostlyai` will be used.
62
+ local_port: The port to use for local mode with TCP transport. If not provided, UDS transport is used by default.
63
+ timeout: Timeout for HTTPS requests in seconds.
64
+ ssl_verify: Whether to verify SSL certificates.
65
+ quiet: Whether to suppress rich output.
66
+
67
+ Example for SDK in CLIENT mode with explicit arguments:
58
68
  ```python
59
69
  from mostlyai.sdk import MostlyAI
60
70
  mostly = MostlyAI(
@@ -65,7 +75,7 @@ class MostlyAI(_MostlyBaseClient):
65
75
  # MostlyAI(base_url='https://app.mostly.ai', api_key='***')
66
76
  ```
67
77
 
68
- Example for instantiating the SDK in CLIENT mode with environment variables:
78
+ Example for SDK in CLIENT mode with environment variables:
69
79
  ```python
70
80
  import os
71
81
  from mostlyai.sdk import MostlyAI
@@ -76,7 +86,7 @@ class MostlyAI(_MostlyBaseClient):
76
86
  # MostlyAI(base_url='https://app.mostly.ai', api_key='***')
77
87
  ```
78
88
 
79
- Example for instantiating the SDK in LOCAL mode, and connect via Unix Domain Socket (UDS):
89
+ Example for SDK in LOCAL mode connecting via UDS:
80
90
  ```python
81
91
  from mostlyai.sdk import MostlyAI
82
92
  mostly = MostlyAI(local=True)
@@ -84,23 +94,13 @@ class MostlyAI(_MostlyBaseClient):
84
94
  # MostlyAI(local=True)
85
95
  ```
86
96
 
87
- Example for instantiating the SDK in LOCAL mode, and connect via Transmission Control Protocol (TCP):
97
+ Example for SDK in LOCAL mode connecting via TCP:
88
98
  ```python
89
99
  from mostlyai.sdk import MostlyAI
90
100
  mostly = MostlyAI(local=True, local_port=8080)
91
101
  mostly
92
102
  # MostlyAI(local=True, local_port=8080)
93
103
  ```
94
-
95
- Args:
96
- base_url: The base URL. If not provided, a default value is used.
97
- api_key: The API key for authenticating. If not provided, it would rely on environment variables.
98
- local: Whether to run in local mode or not.
99
- local_dir: The directory to use for local mode. If not provided, `~/mostlyai` will be used.
100
- local_port: The port to use for local mode with TCP transport. If not provided, UDS transport is used by default.
101
- timeout: Timeout for HTTPS requests in seconds.
102
- ssl_verify: Whether to verify SSL certificates.
103
- quiet: Whether to suppress rich output.
104
104
  """
105
105
 
106
106
  def __init__(
@@ -243,6 +243,13 @@ class MostlyAI(_MostlyBaseClient):
243
243
 
244
244
  See [ConnectorConfig](api_domain.md#mostlyai.sdk.domain.ConnectorConfig) for more information on the available configuration parameters.
245
245
 
246
+ Args:
247
+ config: Configuration for the connector. Can be either a ConnectorConfig object or an equivalent dictionary.
248
+ test_connection: Whether to validate the connection before saving.
249
+
250
+ Returns:
251
+ The created connector.
252
+
246
253
  Example for creating a connector to a AWS S3 storage:
247
254
  ```python
248
255
  from mostlyai.sdk import MostlyAI
@@ -260,10 +267,6 @@ class MostlyAI(_MostlyBaseClient):
260
267
  )
261
268
  ```
262
269
 
263
- Args:
264
- config: Configuration for the connector. Can be either a ConnectorConfig object or an equivalent dictionary.
265
- test_connection: Whether to validate the connection before saving.
266
-
267
270
  The structures of the `config`, `secrets` and `ssl` parameters depend on the connector `type`:
268
271
 
269
272
  - Cloud storage:
@@ -380,9 +383,6 @@ class MostlyAI(_MostlyBaseClient):
380
383
  secrets:
381
384
  password: string
382
385
  ```
383
-
384
- Returns:
385
- Connector: The created connector.
386
386
  """
387
387
  c = self.connectors.create(config=config, test_connection=test_connection)
388
388
  return c
@@ -401,7 +401,18 @@ class MostlyAI(_MostlyBaseClient):
401
401
 
402
402
  See [GeneratorConfig](api_domain.md#mostlyai.sdk.domain.GeneratorConfig) for more information on the available configuration parameters.
403
403
 
404
- Example of short-hand notation, reading data from path:
404
+ Args:
405
+ config: The configuration parameters of the generator to be created. Either `config` or `data` must be provided.
406
+ data: A single pandas DataFrame, or a path to a CSV or PARQUET file. Either `config` or `data` must be provided.
407
+ name: Name of the generator.
408
+ start: Whether to start training immediately.
409
+ wait: Whether to wait for training to finish.
410
+ progress_bar: Whether to display a progress bar during training.
411
+
412
+ Returns:
413
+ The created generator.
414
+
415
+ Example of short-hand notation reading data from path:
405
416
  ```python
406
417
  from mostlyai.sdk import MostlyAI
407
418
  mostly = MostlyAI()
@@ -410,7 +421,7 @@ class MostlyAI(_MostlyBaseClient):
410
421
  )
411
422
  ```
412
423
 
413
- Example of short-hand notation, passing data as pandas DataFrame:
424
+ Example of short-hand notation passing data as DataFrame:
414
425
  ```python
415
426
  # read original data
416
427
  import pandas as pd
@@ -469,17 +480,6 @@ class MostlyAI(_MostlyBaseClient):
469
480
  }
470
481
  )
471
482
  ```
472
-
473
- Args:
474
- config: The configuration parameters of the generator to be created. Either `config` or `data` must be provided.
475
- data: A single pandas DataFrame, or a path to a CSV or PARQUET file. Either `config` or `data` must be provided.
476
- name: Name of the generator.
477
- start: Whether to start training immediately.
478
- wait: Whether to wait for training to finish.
479
- progress_bar: Whether to display a progress bar during training.
480
-
481
- Returns:
482
- Generator: The created generator.
483
483
  """
484
484
  if data is None and config is None:
485
485
  raise ValueError("Either config or data must be provided")
@@ -528,6 +528,19 @@ class MostlyAI(_MostlyBaseClient):
528
528
 
529
529
  See [SyntheticDatasetConfig](api_domain.md#mostlyai.sdk.domain.SyntheticDatasetConfig) for more information on the available configuration parameters.
530
530
 
531
+ Args:
532
+ generator: The generator instance or its UUID.
533
+ config: Configuration for the synthetic dataset.
534
+ size : Sample size(s) for the subject table(s).
535
+ seed: Seed data for the subject table(s).
536
+ name: Name of the synthetic dataset.
537
+ start: Whether to start generation immediately.
538
+ wait: Whether to wait for generation to finish.
539
+ progress_bar: Whether to display a progress bar during generation.
540
+
541
+ Returns:
542
+ The created synthetic dataset.
543
+
531
544
  Example configuration using short-hand notation:
532
545
  ```python
533
546
  from mostlyai.sdk import MostlyAI
@@ -574,19 +587,6 @@ class MostlyAI(_MostlyBaseClient):
574
587
  }
575
588
  )
576
589
  ```
577
-
578
- Args:
579
- generator: The generator instance or its UUID.
580
- config: Configuration for the synthetic dataset.
581
- size : Sample size(s) for the subject table(s).
582
- seed: Seed data for the subject table(s).
583
- name: Name of the synthetic dataset.
584
- start: Whether to start generation immediately.
585
- wait: Whether to wait for generation to finish.
586
- progress_bar: Whether to display a progress bar during generation.
587
-
588
- Returns:
589
- SyntheticDataset: The created synthetic dataset.
590
590
  """
591
591
  config = harmonize_sd_config(
592
592
  generator,
@@ -617,6 +617,16 @@ class MostlyAI(_MostlyBaseClient):
617
617
 
618
618
  See [SyntheticProbeConfig](api_domain.md#mostlyai.sdk.domain.SyntheticProbeConfig) for more information on the available configuration parameters.
619
619
 
620
+ Args:
621
+ generator: The generator instance or its UUID.
622
+ size: Sample size(s) for the subject table(s).
623
+ seed: Seed data for the subject table(s).
624
+ config: Configuration for the probe.
625
+ return_type: Format of the return value. "auto" for pandas DataFrame if a single table, otherwise a dictionary.
626
+
627
+ Returns:
628
+ The created synthetic probe.
629
+
620
630
  Example for probing a generator for 10 synthetic samples:
621
631
  ```python
622
632
  from mostlyai.sdk import MostlyAI
@@ -647,16 +657,6 @@ class MostlyAI(_MostlyBaseClient):
647
657
  }),
648
658
  )
649
659
  ```
650
-
651
- Args:
652
- generator: The generator instance or its UUID.
653
- size: Sample size(s) for the subject table(s).
654
- seed: Seed data for the subject table(s).
655
- config: Configuration for the probe.
656
- return_type: Format of the return value. "auto" for pandas DataFrame if a single table, otherwise a dictionary.
657
-
658
- Returns:
659
- The created synthetic probe.
660
660
  """
661
661
  config = harmonize_sd_config(
662
662
  generator,
@@ -676,6 +676,9 @@ class MostlyAI(_MostlyBaseClient):
676
676
  """
677
677
  Retrieve information about the current user.
678
678
 
679
+ Returns:
680
+ Information about the current user.
681
+
679
682
  Example for retrieving information about the current user:
680
683
  ```python
681
684
  from mostlyai.sdk import MostlyAI
@@ -683,9 +686,6 @@ class MostlyAI(_MostlyBaseClient):
683
686
  mostly.me()
684
687
  # {'id': '488f2f26-...', 'first_name': 'Tom', ...}
685
688
  ```
686
-
687
- Returns:
688
- Information about the current user.
689
689
  """
690
690
  return self.request(verb=GET, path=["users", "me"], response_type=CurrentUser)
691
691
 
@@ -693,6 +693,9 @@ class MostlyAI(_MostlyBaseClient):
693
693
  """
694
694
  Retrieve information about the platform.
695
695
 
696
+ Returns:
697
+ Information about the platform.
698
+
696
699
  Example for retrieving information about the platform:
697
700
  ```python
698
701
  from mostlyai.sdk import MostlyAI
@@ -700,9 +703,6 @@ class MostlyAI(_MostlyBaseClient):
700
703
  mostly.about()
701
704
  # {'version': 'v316', 'assistant': True}
702
705
  ```
703
-
704
- Returns:
705
- Information about the platform.
706
706
  """
707
707
  return self.request(verb=GET, path=["about"], response_type=AboutService)
708
708
 
@@ -710,6 +710,9 @@ class MostlyAI(_MostlyBaseClient):
710
710
  """
711
711
  Retrieve a list of available models of a specific type.
712
712
 
713
+ Returns:
714
+ A dictionary with list of available models for each ModelType.
715
+
713
716
  Example for retrieving available models:
714
717
  ```python
715
718
  from mostlyai.sdk import MostlyAI
@@ -720,9 +723,6 @@ class MostlyAI(_MostlyBaseClient):
720
723
  # 'LANGUAGE": ['MOSTLY_AI/LSTMFromScratch-3m', 'microsoft/phi-1_5', ..],
721
724
  # }
722
725
  ```
723
-
724
- Returns:
725
- A dictionary with list of available models for each ModelType.
726
726
  """
727
727
  return {model_type.value: self.request(verb=GET, path=["models", model_type.value]) for model_type in ModelType}
728
728
 
@@ -730,6 +730,9 @@ class MostlyAI(_MostlyBaseClient):
730
730
  """
731
731
  Retrieve a list of available compute resources, that can be used for executing tasks.
732
732
 
733
+ Returns:
734
+ A list of available compute resources.
735
+
733
736
  Example for retrieving available compute resources:
734
737
  ```python
735
738
  from mostlyai.sdk import MostlyAI
@@ -737,8 +740,5 @@ class MostlyAI(_MostlyBaseClient):
737
740
  mostly.computes()
738
741
  # [{'id': '...', 'name': 'CPU Large',...]
739
742
  ```
740
-
741
- Returns:
742
- A list of available compute resources.
743
743
  """
744
744
  return self.request(verb=GET, path=["computes"])
@@ -13,7 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  # generated by datamodel-codegen:
16
- # timestamp: 2025-03-11T13:20:00+00:00
16
+ # timestamp: 2025-03-14T08:42:51+00:00
17
17
 
18
18
  from __future__ import annotations
19
19
 
@@ -871,13 +871,15 @@ class Visibility(str, Enum):
871
871
  """
872
872
  Indicates the visibility of the resource.
873
873
 
874
- - `PUBLIC` resources are visible to all users.
875
- - `PRIVATE` resources are visible to the owner. And in case it is owned by an organization, also visible by all members of that organization.
874
+ - `PUBLIC` - Everyone can access the resource.
875
+ - `UNLISTED`- Anyone with the direct link can access the resource. No public listings.
876
+ - `PRIVATE` - Accessible only by the owner. For organizations, all members can access.
876
877
 
877
878
  """
878
879
 
879
880
  public = "PUBLIC"
880
881
  private = "PRIVATE"
882
+ unlisted = "UNLISTED"
881
883
 
882
884
 
883
885
  class OrganizationInvite(CustomBaseModel):
@@ -3105,7 +3107,6 @@ class _SyntheticTableConfigValidation(CustomBaseModel):
3105
3107
  ]
3106
3108
  if cfg
3107
3109
  ]
3108
-
3109
3110
  if not all(cfg.enable_model_report for cfg in configs):
3110
3111
  if validation.synthetic_table.configuration is not None:
3111
3112
  validation.synthetic_table.configuration.enable_data_report = False
File without changes
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mostlyai"
3
- version = "4.3.1"
3
+ version = "4.3.2"
4
4
  description = "Synthetic Data SDK"
5
5
  authors = [{ name = "MOSTLY AI", email = "dev@mostly.ai" }]
6
6
  requires-python = ">=3.10,<3.14"
@@ -1 +0,0 @@
1
-
File without changes
File without changes
File without changes
@@ -85,6 +85,12 @@ class _MostlyConnectorsClient(_MostlyBaseClient):
85
85
  """
86
86
  Retrieve a connector by its ID.
87
87
 
88
+ Args:
89
+ connector_id: The unique identifier of the connector.
90
+
91
+ Returns:
92
+ Connector: The retrieved connector object.
93
+
88
94
  Example for retrieving a connector:
89
95
  ```python
90
96
  from mostlyai.sdk import MostlyAI
@@ -92,12 +98,6 @@ class _MostlyConnectorsClient(_MostlyBaseClient):
92
98
  c = mostly.connectors.get('INSERT_YOUR_CONNECTOR_ID')
93
99
  c
94
100
  ```
95
-
96
- Args:
97
- connector_id: The unique identifier of the connector.
98
-
99
- Returns:
100
- Connector: The retrieved connector object.
101
101
  """
102
102
  if not isinstance(connector_id, str) or len(connector_id) != 36:
103
103
  raise ValueError("The provided connector_id must be a UUID string")
@@ -58,6 +58,16 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
58
58
 
59
59
  Paginate through all generators accessible by the user.
60
60
 
61
+ Args:
62
+ offset: Offset for the entities in the response.
63
+ limit: Limit for the number of entities in the response.
64
+ status: Filter by training status.
65
+ search_term: Filter by name or description.
66
+ owner_id: Filter by owner ID.
67
+
68
+ Returns:
69
+ Iterator[GeneratorListItem]: An iterator over generator list items.
70
+
61
71
  Example for listing all generators:
62
72
  ```python
63
73
  from mostlyai.sdk import MostlyAI
@@ -73,16 +83,6 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
73
83
  generators = list(mostly.generators.list(search_term="census", status="DONE"))
74
84
  print(f"Found {len(generators)} generators")
75
85
  ```
76
-
77
- Args:
78
- offset: Offset for the entities in the response.
79
- limit: Limit for the number of entities in the response.
80
- status: Filter by training status.
81
- search_term: Filter by name or description.
82
- owner_id: Filter by owner ID.
83
-
84
- Returns:
85
- Iterator[GeneratorListItem]: An iterator over generator list items.
86
86
  """
87
87
  status = ",".join(status) if isinstance(status, list) else status
88
88
  with Paginator(
@@ -103,6 +103,9 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
103
103
  Args:
104
104
  generator_id: The unique identifier of the generator.
105
105
 
106
+ Returns:
107
+ Generator: The retrieved generator object.
108
+
106
109
  Example for retrieving a generator:
107
110
  ```python
108
111
  from mostlyai.sdk import MostlyAI
@@ -110,9 +113,6 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
110
113
  g = mostly.generators.get('INSERT_YOUR_GENERATOR_ID')
111
114
  g
112
115
  ```
113
-
114
- Returns:
115
- Generator: The retrieved generator object.
116
116
  """
117
117
  if not isinstance(generator_id, str) or len(generator_id) != 36:
118
118
  raise ValueError("The provided generator_id must be a UUID string")
@@ -125,6 +125,12 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
125
125
 
126
126
  See [`mostly.train`](api_client.md#mostlyai.sdk.client.api.MostlyAI.train) for more details.
127
127
 
128
+ Args:
129
+ config: Configuration for the generator.
130
+
131
+ Returns:
132
+ The created generator object.
133
+
128
134
  Example for creating a generator:
129
135
  ```python
130
136
  from mostlyai.sdk import MostlyAI
@@ -147,12 +153,6 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
147
153
  print("status:", g.training_status)
148
154
  # status: DONE
149
155
  ```
150
-
151
- Args:
152
- config: Configuration for the generator.
153
-
154
- Returns:
155
- The created generator object.
156
156
  """
157
157
  if isinstance(config, dict) and config.get("tables"):
158
158
  for table in config["tables"]:
@@ -189,6 +189,12 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
189
189
  """
190
190
  Import a generator from a file.
191
191
 
192
+ Args:
193
+ file_path: Path to the file to import.
194
+
195
+ Returns:
196
+ The imported generator object.
197
+
192
198
  Example for importing a generator from a file:
193
199
  ```python
194
200
  from mostlyai.sdk import MostlyAI
@@ -196,12 +202,6 @@ class _MostlyGeneratorsClient(_MostlyBaseClient):
196
202
  g = mostly.generators.import_from_file('path/to/generator')
197
203
  g
198
204
  ```
199
-
200
- Args:
201
- file_path: Path to the file to import.
202
-
203
- Returns:
204
- The imported generator object.
205
205
  """
206
206
  generator = self.request(
207
207
  verb=POST,
@@ -61,6 +61,16 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
61
61
 
62
62
  Paginate through all synthetic datasets accessible by the user.
63
63
 
64
+ Args:
65
+ offset: Offset for the entities in the response.
66
+ limit: Limit for the number of entities in the response.
67
+ status: Filter by generation status.
68
+ search_term: Filter by name or description.
69
+ owner_id: Filter by owner ID.
70
+
71
+ Returns:
72
+ An iterator over synthetic datasets.
73
+
64
74
  Example for listing all synthetic datasets:
65
75
  ```python
66
76
  from mostlyai.sdk import MostlyAI
@@ -76,16 +86,6 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
76
86
  datasets = list(mostly.synthetic_datasets.list(search_term="census", status="DONE"))
77
87
  print(f"Found {len(datasets)} synthetic datasets")
78
88
  ```
79
-
80
- Args:
81
- offset: Offset for the entities in the response.
82
- limit: Limit for the number of entities in the response.
83
- status: Filter by generation status.
84
- search_term: Filter by name or description.
85
- owner_id: Filter by owner ID.
86
-
87
- Returns:
88
- An iterator over synthetic datasets.
89
89
  """
90
90
  status = ",".join(status) if isinstance(status, list) else status
91
91
  with Paginator(
@@ -103,6 +103,12 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
103
103
  """
104
104
  Retrieve a synthetic dataset by its ID.
105
105
 
106
+ Args:
107
+ synthetic_dataset_id: The unique identifier of the synthetic dataset.
108
+
109
+ Returns:
110
+ SyntheticDataset: The retrieved synthetic dataset object.
111
+
106
112
  Example for retrieving a synthetic dataset:
107
113
  ```python
108
114
  from mostlyai.sdk import MostlyAI
@@ -110,12 +116,6 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
110
116
  sd = mostly.synthetic_datasets.get('INSERT_YOUR_SYNTHETIC_DATASET_ID')
111
117
  sd
112
118
  ```
113
-
114
- Args:
115
- synthetic_dataset_id: The unique identifier of the synthetic dataset.
116
-
117
- Returns:
118
- SyntheticDataset: The retrieved synthetic dataset object.
119
119
  """
120
120
  if not isinstance(synthetic_dataset_id, str) or len(synthetic_dataset_id) != 36:
121
121
  raise ValueError("The provided synthetic_dataset_id must be a UUID string")
@@ -128,6 +128,12 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
128
128
 
129
129
  See [`mostly.generate`](api_client.md#mostlyai.sdk.client.api.MostlyAI.generate) for more details.
130
130
 
131
+ Args:
132
+ config: Configuration for the synthetic dataset.
133
+
134
+ Returns:
135
+ The created synthetic dataset object.
136
+
131
137
  Example for creating a synthetic dataset:
132
138
  ```python
133
139
  from mostlyai.sdk import MostlyAI
@@ -146,12 +152,6 @@ class _MostlySyntheticDatasetsClient(_MostlyBaseClient):
146
152
  print("status:", sd.generation_status)
147
153
  # status: DONE
148
154
  ```
149
-
150
- Args:
151
- config: Configuration for the synthetic dataset.
152
-
153
- Returns:
154
- The created synthetic dataset object.
155
155
  """
156
156
  synthetic_dataset = self.request(
157
157
  verb=POST,