mostlyai 4.2.7__tar.gz → 4.2.8__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.2.7 → mostlyai-4.2.8}/PKG-INFO +1 -1
  2. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/__init__.py +1 -1
  3. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/plan.py +3 -4
  4. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/domain.py +74 -54
  5. {mostlyai-4.2.7 → mostlyai-4.2.8}/pyproject.toml +1 -1
  6. {mostlyai-4.2.7 → mostlyai-4.2.8}/.gitignore +0 -0
  7. {mostlyai-4.2.7 → mostlyai-4.2.8}/LICENSE +0 -0
  8. {mostlyai-4.2.7 → mostlyai-4.2.8}/README.md +0 -0
  9. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/__init__.py +0 -0
  10. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/auto_detect.py +0 -0
  11. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/base.py +0 -0
  12. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/context.py +0 -0
  13. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/conversions.py +0 -0
  14. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/db/__init__.py +0 -0
  15. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/db/base.py +0 -0
  16. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/db/bigquery.py +0 -0
  17. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/db/databricks.py +0 -0
  18. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/db/hive.py +0 -0
  19. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/db/mssql.py +0 -0
  20. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/db/mysql.py +0 -0
  21. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/db/oracle.py +0 -0
  22. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/db/postgresql.py +0 -0
  23. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/db/snowflake.py +0 -0
  24. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/db/sqlite.py +0 -0
  25. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/db/types_coercion.py +0 -0
  26. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/dtype.py +0 -0
  27. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/exceptions.py +0 -0
  28. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/__init__.py +0 -0
  29. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/base.py +0 -0
  30. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/container/__init__.py +0 -0
  31. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/container/aws.py +0 -0
  32. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/container/azure.py +0 -0
  33. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/container/bucket_based.py +0 -0
  34. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/container/gcs.py +0 -0
  35. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/container/minio.py +0 -0
  36. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/table/__init__.py +0 -0
  37. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/table/csv.py +0 -0
  38. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/table/feather.py +0 -0
  39. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/table/json.py +0 -0
  40. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/table/parquet.py +0 -0
  41. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/file/utils.py +0 -0
  42. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/language_model.py +0 -0
  43. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/metadata_objects.py +0 -0
  44. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/non_context.py +0 -0
  45. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/progress_callback.py +0 -0
  46. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/pull.py +0 -0
  47. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/pull_context.py +0 -0
  48. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/pull_utils.py +0 -0
  49. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/push.py +0 -0
  50. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/util/__init__.py +0 -0
  51. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/util/common.py +0 -0
  52. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_data/util/kerberos.py +0 -0
  53. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/__init__.py +0 -0
  54. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/cli.py +0 -0
  55. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/connectors.py +0 -0
  56. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/__init__.py +0 -0
  57. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/jobs.py +0 -0
  58. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/step_analyze_training_data.py +0 -0
  59. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/step_create_data_report.py +0 -0
  60. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/step_create_model_report.py +0 -0
  61. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/step_deliver_data.py +0 -0
  62. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/step_encode_training_data.py +0 -0
  63. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/step_finalize_generation.py +0 -0
  64. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/step_finalize_training.py +0 -0
  65. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/step_generate_data.py +0 -0
  66. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py +0 -0
  67. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/step_pull_training_data.py +0 -0
  68. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/execution/step_train_model.py +0 -0
  69. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/generators.py +0 -0
  70. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/progress.py +0 -0
  71. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/routes.py +0 -0
  72. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/server.py +0 -0
  73. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/storage.py +0 -0
  74. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/_local/synthetic_datasets.py +0 -0
  75. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/client/__init__.py +0 -0
  76. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/client/_base_utils.py +0 -0
  77. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/client/_naming_conventions.py +0 -0
  78. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/client/_utils.py +0 -0
  79. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/client/api.py +0 -0
  80. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/client/base.py +0 -0
  81. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/client/connectors.py +0 -0
  82. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/client/exceptions.py +0 -0
  83. {mostlyai-4.2.7 → mostlyai-4.2.8}/mostlyai/sdk/client/generators.py +0 -0
  84. {mostlyai-4.2.7 → mostlyai-4.2.8}/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.2.7
3
+ Version: 4.2.8
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.2.7" # Do not set this manually. Use poetry version [params].
18
+ __version__ = "4.2.8" # Do not set this manually. Use poetry version [params].
@@ -151,9 +151,9 @@ def make_synthetic_dataset_execution_plan(generator: Generator, is_probe: bool =
151
151
  )
152
152
 
153
153
  # Traverse child tables in tree level order traversal
154
- queue = deque([(root_table.name, generate_task)])
154
+ queue = deque([root_table.name])
155
155
  while queue:
156
- current_table_name, parent_task = queue.popleft()
156
+ current_table_name = queue.popleft()
157
157
 
158
158
  # Find child tables
159
159
  child_tables = sorted(
@@ -162,7 +162,6 @@ def make_synthetic_dataset_execution_plan(generator: Generator, is_probe: bool =
162
162
  )
163
163
  # Process each child table
164
164
  for child_table in child_tables:
165
- generate_task = parent_task
166
165
  if has_tabular_model(child_table):
167
166
  generate_task = execution_plan.add_task(
168
167
  generate_tabular_task_type, parent=generate_task, target_table_name=child_table.name
@@ -172,7 +171,7 @@ def make_synthetic_dataset_execution_plan(generator: Generator, is_probe: bool =
172
171
  generate_language_task_type, parent=generate_task, target_table_name=child_table.name
173
172
  )
174
173
 
175
- queue.append((child_table.name, generate_task))
174
+ queue.append(child_table.name)
176
175
 
177
176
  post_generation_sync_task = execution_plan.add_task(TaskType.sync)
178
177
  finalize_task = execution_plan.add_task(finalize_task_type, parent=post_generation_sync_task)
@@ -13,7 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  # generated by datamodel-codegen:
16
- # timestamp: 2025-02-27T10:11:09+00:00
16
+ # timestamp: 2025-02-28T14:40:37+00:00
17
17
 
18
18
  from __future__ import annotations
19
19
 
@@ -55,6 +55,10 @@ class PermissionLevel(str, Enum):
55
55
 
56
56
 
57
57
  class UserSettingsProfileUpdateConfig(CustomBaseModel):
58
+ name: str | None = Field(
59
+ None,
60
+ description="The name of a user.\nContains only alphanumeric characters, hyphens, and underscores. Must start or end with alphanumeric.\nIt must be globally case-insensitive unique considering organizations and users.\n",
61
+ )
58
62
  first_name: str | None = Field(None, alias="firstName", description="First name of a user", max_length=30)
59
63
  last_name: str | None = Field(None, alias="lastName", description="Last name of a user", max_length=30)
60
64
  avatar: str | None = Field(None, description="The base64-encoded image of the user's avatar")
@@ -837,22 +841,6 @@ class ComputePatchConfig(CustomBaseModel):
837
841
  )
838
842
 
839
843
 
840
- class OrganizationListItem(CustomBaseModel):
841
- """
842
- Essential organization details for listings.
843
- """
844
-
845
- id: str = Field(..., description="The unique identifier of an organization.")
846
- name: str | None = Field(
847
- None,
848
- description="The name of an organization.\nContains only alphanumeric characters, hyphens, and underscores. Must start or end with alphanumeric.\nIt must be globally case-insensitive unique.\n",
849
- max_length=64,
850
- )
851
- display_name: str = Field(..., alias="displayName", description="The display name of an organization.")
852
- description: str | None = Field(None, description="The description of an organization. Supports markdown.")
853
- logo: str | None = Field(None, description="The URL of the organization's logo.")
854
-
855
-
856
844
  class MemberRole(str, Enum):
857
845
  """
858
846
  The role of the user in the organization
@@ -1316,22 +1304,6 @@ class Distances(CustomBaseModel):
1316
1304
  )
1317
1305
 
1318
1306
 
1319
- class User(CustomBaseModel):
1320
- """
1321
- A user of the service.
1322
- """
1323
-
1324
- id: str | None = Field(None, description="The unique identifier of a user.")
1325
- name: str | None = Field(
1326
- None,
1327
- description="The name of a user. As of now, it is the concatenation of the first name and last name.",
1328
- )
1329
- first_name: str | None = Field(None, alias="firstName", description="First name of a user", max_length=30)
1330
- last_name: str | None = Field(None, alias="lastName", description="Last name of a user", max_length=30)
1331
- email: str | None = Field(None, description="The email of a user")
1332
- avatar: str | None = Field(None, description="The URL of the user's avatar")
1333
-
1334
-
1335
1307
  class UserListItem(CustomBaseModel):
1336
1308
  """
1337
1309
  Essential information about a user for public listings.
@@ -1340,29 +1312,11 @@ class UserListItem(CustomBaseModel):
1340
1312
  id: str | None = Field(None, description="The unique identifier of a user.")
1341
1313
  name: str | None = Field(
1342
1314
  None,
1343
- description="The name of a user. As of now, it is the concatenation of the first name and last name.",
1315
+ description="The name of a user.\nContains only alphanumeric characters, hyphens, and underscores. Must start or end with alphanumeric.\nIt must be globally case-insensitive unique considering organizations and users.\n",
1344
1316
  )
1345
- avatar: str | None = Field(None, description="The URL of the user's avatar")
1346
-
1347
-
1348
- class CurrentUser(CustomBaseModel):
1349
- """
1350
- Information on the current user.
1351
- """
1352
-
1353
- id: str | None = Field(None, description="The unique identifier of a user.")
1354
1317
  first_name: str | None = Field(None, alias="firstName", description="First name of a user", max_length=30)
1355
1318
  last_name: str | None = Field(None, alias="lastName", description="Last name of a user", max_length=30)
1356
- email: str | None = Field(None, description="The email of a user")
1357
1319
  avatar: str | None = Field(None, description="The URL of the user's avatar")
1358
- settings: dict[str, Any] | None = None
1359
- usage: UserUsage | None = None
1360
- unread_notifications: int | None = Field(
1361
- None,
1362
- alias="unreadNotifications",
1363
- description="Number of unread notifications for the user",
1364
- )
1365
- organizations: list[OrganizationListItem] | None = Field(None, description="The organizations the user belongs to")
1366
1320
 
1367
1321
 
1368
1322
  class UserSettingsUpdateConfig(CustomBaseModel):
@@ -1421,7 +1375,7 @@ class Metadata(CustomBaseModel):
1421
1375
  creator_name: str | None = Field(
1422
1376
  None,
1423
1377
  alias="creatorName",
1424
- description="The name of a user. As of now, it is the concatenation of the first name and last name.",
1378
+ description="The name of a user.\nContains only alphanumeric characters, hyphens, and underscores. Must start or end with alphanumeric.\nIt must be globally case-insensitive unique considering organizations and users.\n",
1425
1379
  )
1426
1380
  created_at: datetime | None = Field(
1427
1381
  None,
@@ -2011,6 +1965,14 @@ class AssistantThread(CustomBaseModel):
2011
1965
  usage: AssistantThreadUsage | None = None
2012
1966
 
2013
1967
 
1968
+ class OrganizationMetadata(CustomBaseModel):
1969
+ """
1970
+ The metadata of an organization.
1971
+ """
1972
+
1973
+ current_user_member_role: MemberRole | None = Field(None, alias="currentUserMemberRole")
1974
+
1975
+
2014
1976
  class Organization(CustomBaseModel):
2015
1977
  """
2016
1978
  An organization that owns resources.
@@ -2028,6 +1990,7 @@ class Organization(CustomBaseModel):
2028
1990
  email: str | None = Field(None, description="The email address of the organization.")
2029
1991
  website: str | None = Field(None, description="The URL of the organization's website.")
2030
1992
  members: list[UserListItem] | None = None
1993
+ metadata: OrganizationMetadata | None = None
2031
1994
 
2032
1995
 
2033
1996
  class OrganizationMember(CustomBaseModel):
@@ -2035,7 +1998,7 @@ class OrganizationMember(CustomBaseModel):
2035
1998
  A member of an organization.
2036
1999
  """
2037
2000
 
2038
- user: User | None = None
2001
+ user: UserListItem | None = None
2039
2002
  role: MemberRole | None = None
2040
2003
 
2041
2004
 
@@ -2415,6 +2378,63 @@ class SyntheticProbeConfig(CustomBaseModel):
2415
2378
  _SyntheticDataConfigValidation(synthetic_config=self, generator=generator)
2416
2379
 
2417
2380
 
2381
+ class OrganizationListItem(CustomBaseModel):
2382
+ """
2383
+ Essential organization details for listings.
2384
+ """
2385
+
2386
+ id: str = Field(..., description="The unique identifier of an organization.")
2387
+ name: str | None = Field(
2388
+ None,
2389
+ description="The name of an organization.\nContains only alphanumeric characters, hyphens, and underscores. Must start or end with alphanumeric.\nIt must be globally case-insensitive unique.\n",
2390
+ max_length=64,
2391
+ )
2392
+ display_name: str = Field(..., alias="displayName", description="The display name of an organization.")
2393
+ description: str | None = Field(None, description="The description of an organization. Supports markdown.")
2394
+ logo: str | None = Field(None, description="The URL of the organization's logo.")
2395
+ metadata: OrganizationMetadata | None = None
2396
+
2397
+
2398
+ class User(CustomBaseModel):
2399
+ """
2400
+ The public attributes of a user of the service.
2401
+ """
2402
+
2403
+ id: str | None = Field(None, description="The unique identifier of a user.")
2404
+ name: str | None = Field(
2405
+ None,
2406
+ description="The name of a user.\nContains only alphanumeric characters, hyphens, and underscores. Must start or end with alphanumeric.\nIt must be globally case-insensitive unique considering organizations and users.\n",
2407
+ )
2408
+ first_name: str | None = Field(None, alias="firstName", description="First name of a user", max_length=30)
2409
+ last_name: str | None = Field(None, alias="lastName", description="Last name of a user", max_length=30)
2410
+ avatar: str | None = Field(None, description="The URL of the user's avatar")
2411
+ organizations: list[OrganizationListItem] | None = Field(None, description="The organizations the user belongs to")
2412
+
2413
+
2414
+ class CurrentUser(CustomBaseModel):
2415
+ """
2416
+ Information on the current user.
2417
+ """
2418
+
2419
+ id: str | None = Field(None, description="The unique identifier of a user.")
2420
+ name: str | None = Field(
2421
+ None,
2422
+ description="The name of a user.\nContains only alphanumeric characters, hyphens, and underscores. Must start or end with alphanumeric.\nIt must be globally case-insensitive unique considering organizations and users.\n",
2423
+ )
2424
+ first_name: str | None = Field(None, alias="firstName", description="First name of a user", max_length=30)
2425
+ last_name: str | None = Field(None, alias="lastName", description="Last name of a user", max_length=30)
2426
+ email: str | None = Field(None, description="The email of a user")
2427
+ avatar: str | None = Field(None, description="The URL of the user's avatar")
2428
+ settings: dict[str, Any] | None = None
2429
+ usage: UserUsage | None = None
2430
+ unread_notifications: int | None = Field(
2431
+ None,
2432
+ alias="unreadNotifications",
2433
+ description="Number of unread notifications for the user",
2434
+ )
2435
+ organizations: list[OrganizationListItem] | None = Field(None, description="The organizations the user belongs to")
2436
+
2437
+
2418
2438
  class Generator(CustomBaseModel):
2419
2439
  """
2420
2440
  A generator is a set models that can generate synthetic data.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mostlyai"
3
- version = "4.2.7"
3
+ version = "4.2.8"
4
4
  description = "Synthetic Data SDK"
5
5
  authors = [{ name = "MOSTLY AI", email = "dev@mostly.ai" }]
6
6
  requires-python = ">=3.10,<3.14"
File without changes
File without changes
File without changes