mostlyai 0.3.10__tar.gz → 0.3.11__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.10
3
+ Version: 0.3.11
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.3.10" # Do not set this manually. Use poetry version [params].
4
+ __version__ = "0.3.11" # Do not set this manually. Use poetry version [params].
@@ -70,6 +70,14 @@ class _MostlyGeneratorsClient(_MostlyBaseClient, _MostlySharesMixin):
70
70
  table["data"] = _convert_to_base64(table["data"])
71
71
  else:
72
72
  raise ValueError("data must be a DataFrame or a file path")
73
+ # convert `columns` to list[dict], if provided as list[str]
74
+ if "tables" in config and config["tables"]:
75
+ for table in config["tables"]:
76
+ if "columns" in table and table["columns"]:
77
+ table["columns"] = [
78
+ {"name": col} if isinstance(col, str) else col
79
+ for col in table["columns"]
80
+ ]
73
81
 
74
82
  generator = self.request(
75
83
  verb=POST, path=[], json=config, response_type=Generator
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "mostlyai"
3
- version = "0.3.10"
3
+ version = "0.3.11"
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
File without changes