mostlyai 4.0.0__tar.gz → 4.0.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 (84) hide show
  1. {mostlyai-4.0.0 → mostlyai-4.0.2}/PKG-INFO +9 -5
  2. {mostlyai-4.0.0 → mostlyai-4.0.2}/README.md +4 -4
  3. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/__init__.py +1 -1
  4. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/client/api.py +1 -1
  5. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/domain.py +6 -6
  6. {mostlyai-4.0.0 → mostlyai-4.0.2}/pyproject.toml +5 -7
  7. {mostlyai-4.0.0 → mostlyai-4.0.2}/.gitignore +0 -0
  8. {mostlyai-4.0.0 → mostlyai-4.0.2}/LICENSE +0 -0
  9. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/__init__.py +0 -0
  10. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/auto_detect.py +0 -0
  11. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/base.py +0 -0
  12. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/context.py +0 -0
  13. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/conversions.py +0 -0
  14. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/db/__init__.py +0 -0
  15. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/db/base.py +0 -0
  16. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/db/bigquery.py +0 -0
  17. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/db/databricks.py +0 -0
  18. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/db/hive.py +0 -0
  19. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/db/mssql.py +0 -0
  20. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/db/mysql.py +0 -0
  21. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/db/oracle.py +0 -0
  22. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/db/postgresql.py +0 -0
  23. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/db/snowflake.py +0 -0
  24. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/db/sqlite.py +0 -0
  25. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/db/types_coercion.py +0 -0
  26. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/dtype.py +0 -0
  27. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/exceptions.py +0 -0
  28. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/__init__.py +0 -0
  29. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/base.py +0 -0
  30. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/container/__init__.py +0 -0
  31. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/container/aws.py +0 -0
  32. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/container/azure.py +0 -0
  33. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/container/bucket_based.py +0 -0
  34. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/container/gcs.py +0 -0
  35. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/container/minio.py +0 -0
  36. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/table/__init__.py +0 -0
  37. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/table/csv.py +0 -0
  38. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/table/feather.py +0 -0
  39. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/table/json.py +0 -0
  40. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/table/parquet.py +0 -0
  41. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/file/utils.py +0 -0
  42. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/language_model.py +0 -0
  43. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/metadata_objects.py +0 -0
  44. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/non_context.py +0 -0
  45. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/progress_callback.py +0 -0
  46. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/pull.py +0 -0
  47. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/pull_context.py +0 -0
  48. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/pull_utils.py +0 -0
  49. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/push.py +0 -0
  50. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/util/__init__.py +0 -0
  51. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/util/common.py +0 -0
  52. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_data/util/kerberos.py +0 -0
  53. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/__init__.py +0 -0
  54. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/cli.py +0 -0
  55. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/connectors.py +0 -0
  56. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/__init__.py +0 -0
  57. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/jobs.py +0 -0
  58. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/plan.py +0 -0
  59. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/step_analyze_training_data.py +0 -0
  60. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/step_create_data_report.py +0 -0
  61. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/step_create_model_report.py +0 -0
  62. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/step_deliver_data.py +0 -0
  63. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/step_encode_training_data.py +0 -0
  64. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/step_finalize_generation.py +0 -0
  65. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/step_finalize_training.py +0 -0
  66. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/step_generate_data.py +0 -0
  67. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py +0 -0
  68. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/step_pull_training_data.py +0 -0
  69. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/execution/step_train_model.py +0 -0
  70. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/generators.py +0 -0
  71. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/progress.py +0 -0
  72. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/routes.py +0 -0
  73. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/server.py +0 -0
  74. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/storage.py +0 -0
  75. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/_local/synthetic_datasets.py +0 -0
  76. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/client/__init__.py +0 -0
  77. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/client/_base_utils.py +0 -0
  78. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/client/_naming_conventions.py +0 -0
  79. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/client/_utils.py +0 -0
  80. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/client/base.py +0 -0
  81. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/client/connectors.py +0 -0
  82. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/client/exceptions.py +0 -0
  83. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/client/generators.py +0 -0
  84. {mostlyai-4.0.0 → mostlyai-4.0.2}/mostlyai/sdk/client/synthetic_datasets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mostlyai
3
- Version: 4.0.0
3
+ Version: 4.0.2
4
4
  Summary: MOSTLY AI - Python Client
5
5
  Project-URL: Homepage, https://app.mostly.ai/
6
6
  Project-URL: Documentation, https://mostly-ai.github.io/mostlyai/
@@ -17,6 +17,10 @@ Classifier: Intended Audience :: Science/Research
17
17
  Classifier: Intended Audience :: Telecommunications Industry
18
18
  Classifier: License :: OSI Approved :: Apache Software License
19
19
  Classifier: Operating System :: OS Independent
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
20
24
  Classifier: Topic :: Software Development :: Libraries
21
25
  Classifier: Typing :: Typed
22
26
  Requires-Python: <3.13,>=3.10
@@ -131,11 +135,11 @@ pip install -U mostlyai
131
135
  **Client + Local mode**
132
136
 
133
137
  ```shell
134
- pip install -U mostlyai[local-cpu] # for CPU
135
- #pip install -U mostlyai[local-gpu] # for GPU
138
+ pip install -U 'mostlyai[local]' # for CPU
139
+ #pip install -U 'mostlyai[local-gpu]' # for GPU
136
140
  ```
137
141
 
138
- NOTE: installing `mostlyai[local-cpu]` on Linux requires `--extra-index-url https://download.pytorch.org/whl/cpu` to be specified.
142
+ NOTE: installing `mostlyai[local]` on Linux requires `--extra-index-url https://download.pytorch.org/whl/cpu` to be specified.
139
143
 
140
144
  **Optional Connectors**
141
145
 
@@ -143,7 +147,7 @@ Add any of the following extras for further data connectors support: `databricks
143
147
 
144
148
  E.g.
145
149
  ```shell
146
- pip install -U mostlyai[local, databricks, snowflake]
150
+ pip install -U 'mostlyai[local, databricks, snowflake]'
147
151
  ```
148
152
 
149
153
  ## Quick Start
@@ -37,11 +37,11 @@ pip install -U mostlyai
37
37
  **Client + Local mode**
38
38
 
39
39
  ```shell
40
- pip install -U mostlyai[local-cpu] # for CPU
41
- #pip install -U mostlyai[local-gpu] # for GPU
40
+ pip install -U 'mostlyai[local]' # for CPU
41
+ #pip install -U 'mostlyai[local-gpu]' # for GPU
42
42
  ```
43
43
 
44
- NOTE: installing `mostlyai[local-cpu]` on Linux requires `--extra-index-url https://download.pytorch.org/whl/cpu` to be specified.
44
+ NOTE: installing `mostlyai[local]` on Linux requires `--extra-index-url https://download.pytorch.org/whl/cpu` to be specified.
45
45
 
46
46
  **Optional Connectors**
47
47
 
@@ -49,7 +49,7 @@ Add any of the following extras for further data connectors support: `databricks
49
49
 
50
50
  E.g.
51
51
  ```shell
52
- pip install -U mostlyai[local, databricks, snowflake]
52
+ pip install -U 'mostlyai[local, databricks, snowflake]'
53
53
  ```
54
54
 
55
55
  ## Quick Start
@@ -15,4 +15,4 @@
15
15
  from mostlyai.sdk.client.api import MostlyAI
16
16
 
17
17
  __all__ = ["MostlyAI"]
18
- __version__ = "4.0.0" # Do not set this manually. Use poetry version [params].
18
+ __version__ = "4.0.2" # Do not set this manually. Use poetry version [params].
@@ -112,7 +112,7 @@ class MostlyAI(_MostlyBaseClient):
112
112
  from mostlyai import qa # noqa
113
113
  except ImportError:
114
114
  raise APIError(
115
- "Local mode requires additional packages to be installed. Run `pip install mostlyai[local]`."
115
+ "Local mode requires additional packages to be installed. Run `pip install 'mostlyai[local]'`."
116
116
  )
117
117
 
118
118
  self.local = LocalServer(home_dir=local_dir, host=local_host, port=local_port)
@@ -13,7 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  # generated by datamodel-codegen:
16
- # timestamp: 2025-01-23T07:25:16+00:00
16
+ # timestamp: 2025-01-23T15:57:07+00:00
17
17
 
18
18
  from __future__ import annotations
19
19
 
@@ -1907,9 +1907,9 @@ class SyntheticTableConfiguration(CustomBaseModel):
1907
1907
  @model_validator(mode="before")
1908
1908
  @classmethod
1909
1909
  def add_required_fields(cls, values):
1910
- if "sampling_temperature" not in values:
1910
+ if "sampling_temperature" not in values or values["sampling_temperature"] is None:
1911
1911
  values["sampling_temperature"] = 1.0
1912
- if "sampling_top_p" not in values:
1912
+ if "sampling_top_p" not in values or values["sampling_top_p"] is None:
1913
1913
  values["sampling_top_p"] = 1.0
1914
1914
  return values
1915
1915
 
@@ -2397,7 +2397,7 @@ class Generator(CustomBaseModel):
2397
2397
  file_path.write_bytes(bytes)
2398
2398
  return file_path
2399
2399
 
2400
- def clone(self, training_status: Literal["NEW", "CONTINUE"] = "NEW") -> Generator:
2400
+ def clone(self, training_status: Literal["NEW", "CONTINUE"] = "NEW") -> "Generator":
2401
2401
  """
2402
2402
  Clone the generator.
2403
2403
 
@@ -2447,7 +2447,7 @@ class Generator(CustomBaseModel):
2447
2447
  return file_path
2448
2448
 
2449
2449
  class Training:
2450
- def __init__(self, _generator: Generator):
2450
+ def __init__(self, _generator: "Generator"):
2451
2451
  self.generator = _generator
2452
2452
 
2453
2453
  def start(self) -> None:
@@ -2726,7 +2726,7 @@ class SyntheticDataset(CustomBaseModel):
2726
2726
  return file_path
2727
2727
 
2728
2728
  class Generation:
2729
- def __init__(self, _synthetic_dataset: SyntheticDataset):
2729
+ def __init__(self, _synthetic_dataset: "SyntheticDataset"):
2730
2730
  self.synthetic_dataset = _synthetic_dataset
2731
2731
 
2732
2732
  def start(self) -> None:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mostlyai"
3
- version = "4.0.0"
3
+ version = "4.0.2"
4
4
  description = "MOSTLY AI - Python Client"
5
5
  authors = [{ name = "MOSTLY AI", email = "dev@mostly.ai" }]
6
6
  requires-python = ">=3.10,<3.13"
@@ -14,6 +14,10 @@ classifiers = [
14
14
  "Intended Audience :: Financial and Insurance Industry",
15
15
  "Intended Audience :: Healthcare Industry",
16
16
  "Intended Audience :: Telecommunications Industry",
17
+ "Programming Language :: Python :: 3.10",
18
+ "Programming Language :: Python :: 3.11",
19
+ "Programming Language :: Python :: 3.12",
20
+ "Programming Language :: Python :: 3.13",
17
21
  "License :: OSI Approved :: Apache Software License",
18
22
  "Operating System :: OS Independent",
19
23
  "Topic :: Software Development :: Libraries",
@@ -135,15 +139,9 @@ name = "pytorch-cpu"
135
139
  url = "https://download.pytorch.org/whl/cpu"
136
140
  explicit = true
137
141
 
138
- [[tool.uv.index]]
139
- name = "pytorch-gpu"
140
- url = "https://download.pytorch.org/whl/cu124"
141
- explicit = true
142
-
143
142
  [tool.uv.sources]
144
143
  torch = [
145
144
  { index = "pytorch-cpu", extra = "local-cpu"},
146
- { index = "pytorch-gpu", extra = "local-gpu"},
147
145
  ]
148
146
 
149
147
  [tool.hatch.build.targets.sdist]
File without changes
File without changes