mage-ai 0.9.74__py3-none-any.whl → 0.9.76__py3-none-any.whl

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.

Potentially problematic release.


This version of mage-ai might be problematic. Click here for more details.

Files changed (374) hide show
  1. mage_ai/ai/llm_pipeline_wizard.py +6 -4
  2. mage_ai/ai/openai_client.py +7 -5
  3. mage_ai/api/policies/PipelineSchedulePolicy.py +1 -0
  4. mage_ai/api/presenters/PipelineSchedulePresenter.py +11 -2
  5. mage_ai/api/resources/PipelineScheduleResource.py +11 -3
  6. mage_ai/api/resources/PipelineTriggerResource.py +3 -1
  7. mage_ai/api/resources/SessionResource.py +2 -2
  8. mage_ai/api/resources/SyncResource.py +1 -1
  9. mage_ai/api/resources/UserResource.py +1 -1
  10. mage_ai/data_integrations/destinations/constants.py +3 -0
  11. mage_ai/data_integrations/sources/constants.py +2 -0
  12. mage_ai/data_preparation/models/block/__init__.py +4 -5
  13. mage_ai/data_preparation/models/block/dbt/dbt_adapter.py +20 -8
  14. mage_ai/data_preparation/models/block/dynamic/constants.py +0 -1
  15. mage_ai/data_preparation/models/block/dynamic/counter.py +1 -3
  16. mage_ai/data_preparation/models/block/r/__init__.py +16 -5
  17. mage_ai/data_preparation/models/block/sql/__init__.py +2 -0
  18. mage_ai/data_preparation/models/block/sql/mssql.py +8 -0
  19. mage_ai/data_preparation/models/block/sql/utils/shared.py +6 -2
  20. mage_ai/data_preparation/models/constants.py +2 -1
  21. mage_ai/data_preparation/models/pipeline.py +5 -0
  22. mage_ai/data_preparation/templates/constants.py +7 -0
  23. mage_ai/data_preparation/templates/data_exporters/streaming/elasticsearch.yaml +3 -0
  24. mage_ai/data_preparation/templates/data_loaders/airtable.py +28 -0
  25. mage_ai/data_preparation/templates/data_loaders/streaming/nats.yaml +6 -3
  26. mage_ai/data_preparation/templates/repo/io_config.yaml +2 -0
  27. mage_ai/io/airtable.py +104 -0
  28. mage_ai/io/base.py +30 -1
  29. mage_ai/io/bigquery.py +36 -0
  30. mage_ai/io/config.py +5 -0
  31. mage_ai/io/mssql.py +5 -0
  32. mage_ai/io/mysql.py +6 -1
  33. mage_ai/io/oracledb.py +2 -4
  34. mage_ai/io/postgres.py +38 -19
  35. mage_ai/io/redshift.py +13 -0
  36. mage_ai/io/sql.py +1 -0
  37. mage_ai/io/utils.py +18 -0
  38. mage_ai/orchestration/db/__init__.py +23 -3
  39. mage_ai/orchestration/db/models/schedules.py +2 -5
  40. mage_ai/orchestration/db/models/secrets.py +11 -1
  41. mage_ai/orchestration/metrics/pipeline_run.py +1 -1
  42. mage_ai/orchestration/pipeline_scheduler_original.py +4 -5
  43. mage_ai/orchestration/pipeline_scheduler_project_platform.py +4 -5
  44. mage_ai/orchestration/utils/distributed_lock.py +8 -1
  45. mage_ai/server/api/triggers.py +9 -0
  46. mage_ai/server/constants.py +1 -1
  47. mage_ai/server/frontend_dist/404.html +3 -3
  48. mage_ai/server/frontend_dist/_next/static/chunks/{1187-839336d276186105.js → 1187-4560c3895e1d7099.js} +1 -1
  49. mage_ai/server/frontend_dist/_next/static/chunks/{1598-0adca9dce3ba4c60.js → 1598-cbf3f5a6078fc3f5.js} +1 -1
  50. mage_ai/server/frontend_dist/_next/static/chunks/2717-638a944d24d5abde.js +1 -0
  51. mage_ai/server/frontend_dist/_next/static/chunks/3548-36f746b1824004f2.js +1 -0
  52. mage_ai/server/frontend_dist/_next/static/chunks/{3763-39a5174f6a3924db.js → 3763-aabe2703076636b0.js} +1 -1
  53. mage_ai/server/frontend_dist/_next/static/chunks/3782-3e2acb5ed45b582b.js +1 -0
  54. mage_ai/server/frontend_dist/_next/static/chunks/449-5e2253c6aba42557.js +1 -0
  55. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/5627-d5e559859dd0e1e0.js → frontend_dist/_next/static/chunks/5627-10e76bafa5a26f5f.js} +1 -1
  56. mage_ai/server/frontend_dist/_next/static/chunks/{5699-e49718dfc9eb2854.js → 5699-e99379e332bd0b41.js} +1 -1
  57. mage_ai/server/frontend_dist/_next/static/chunks/{7966-163da2621b8c987c.js → 7966-a5a7db345ce81263.js} +1 -1
  58. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-782dd4a6b13e1c42.js +2 -0
  59. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/compute-ed67fa8e81662e8b.js → frontend_dist/_next/static/chunks/pages/compute-9e2dea78024e3bb4.js} +1 -1
  60. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/files-e0ecd7ced09a63b2.js → frontend_dist/_next/static/chunks/pages/files-e08c7fe76f968f9c.js} +1 -1
  61. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-c7a729477ecda50e.js → [...slug]-30c3807057a4e65b.js} +1 -1
  62. mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-fd6ae6a358a60a0c.js → global-data-products-8dcb3b31af9e0e39.js} +1 -1
  63. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-8e50243797a7fe59.js → frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-85a64b64d27214b6.js} +1 -1
  64. mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-hooks-d0c003446332dc0d.js → global-hooks-4ff959d51b8a9502.js} +1 -1
  65. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{files-a69ed8e9f814490c.js → files-d08a460641d0efaa.js} +1 -1
  66. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{overview-1aad7093c6d39257.js → overview-aae747f487e08d51.js} +1 -1
  67. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{pipeline-runs-528d30e0d13b0cc7.js → pipeline-runs-09a842d64a6ada62.js} +1 -1
  68. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{settings-fb9201d9cf63031d.js → settings-2e98e57d9376a458.js} +1 -1
  69. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{[user]-000f5a980a07da39.js → [user]-7be6e41ad66089bb.js} +1 -1
  70. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-e4e613f6e817a733.js → frontend_dist/_next/static/chunks/pages/manage/users/new-4c088833063bfa07.js} +1 -1
  71. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-5db54821a3059c69.js +1 -0
  72. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage-34d718b8a4066c23.js → frontend_dist/_next/static/chunks/pages/manage-868fcd8cbeb265f0.js} +1 -1
  73. mage_ai/server/frontend_dist/_next/static/chunks/pages/{oauth-3bfd1b8d7f036726.js → oauth-6ceceb62191dfe8a.js} +1 -1
  74. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-f65416f6dbe30ad3.js +1 -0
  75. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-5f8c100e648efa8a.js → pipeline-runs-2d0136b51b57de93.js} +1 -1
  76. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-688c652f3296bb9c.js → [...slug]-1ad5238742e25b4c.js} +1 -1
  77. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-bd11e87d026bfbf9.js +1 -0
  78. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{dashboard-1236e36d39b1637d.js → dashboard-0f4f47f721b0723f.js} +1 -1
  79. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-432da20df91511fb.js +1 -0
  80. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-fe91dfb0091f6bc6.js +1 -0
  81. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-0d68d4bf6290fefb.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-cf794b2d22a80f31.js} +1 -1
  82. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-9254358d58f07714.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-a964caef91bed9e1.js} +1 -1
  83. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-821001e690caebe2.js → monitors-80bebb4401eefe25.js} +1 -1
  84. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2eae7cb017027682.js +1 -0
  85. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d4b2a0800a66b33.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3d7fdfeb7f806f7.js} +1 -1
  86. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-03d9bca3bc5e6088.js +1 -0
  87. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-707ed8ca942ca802.js +1 -0
  88. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-259143ed3cf59e31.js → [...slug]-8429f17d4146e1ec.js} +1 -1
  89. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-193045d9836d8d80.js +1 -0
  90. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-d25d07db166cbb04.js +1 -0
  91. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/{[...slug]-5eeec927e4202b63.js → [...slug]-6834ae87bd668cb2.js} +1 -1
  92. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-fbe9ad995d46d837.js → frontend_dist/_next/static/chunks/pages/platform/global-hooks-b3f7309a23e592b2.js} +1 -1
  93. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/{profile-fc659962d4015cb3.js → profile-f8b7374385e1f1bf.js} +1 -1
  94. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-8de68502a9afa299.js +1 -0
  95. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-a4f88c334414402b.js → frontend_dist/_next/static/chunks/pages/settings/platform/settings-50fb6a34f3913f1f.js} +1 -1
  96. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-4deb9579ef99a3c6.js → [...slug]-2e5c098c21ea32b7.js} +1 -1
  97. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-e0cda2f2bfce8d61.js → permissions-54e4b15b9585bfc4.js} +1 -1
  98. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-040f83d75d0f6537.js +1 -0
  99. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-910257d16c604ebd.js → [...slug]-95088f43034e3c95.js} +1 -1
  100. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-4f7a0756806cee34.js → roles-e9149e1fcf218f42.js} +1 -1
  101. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-208d6f955204d704.js → sync-data-75b67ae4a00818ef.js} +1 -1
  102. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-c89dc67e5a1706a8.js → [...slug]-557dda05ca6c6124.js} +1 -1
  103. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-fa61dc6c1370e6a5.js +1 -0
  104. mage_ai/server/frontend_dist/_next/static/chunks/pages/{sign-in-054b33312d3193c3.js → sign-in-593c40985d63fcf7.js} +1 -1
  105. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/{[...slug]-b6ed6a5d818bfd20.js → [...slug]-252c4b6b818345d5.js} +1 -1
  106. mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-852357bc983af2ea.js → templates-ca528bc607753ab8.js} +1 -1
  107. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/terminal-1f9c56d671bbc67d.js → frontend_dist/_next/static/chunks/pages/terminal-287362c1defcc96b.js} +1 -1
  108. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-2f83af8c9f1378fe.js +1 -0
  109. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-d9de73fb799efed8.js +1 -0
  110. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/version-control-ae3469b992a341d6.js → frontend_dist/_next/static/chunks/pages/version-control-573f0225d7a703ed.js} +1 -1
  111. mage_ai/server/frontend_dist/_next/static/qR0jauUABqPaFMjUsYeoG/_buildManifest.js +1 -0
  112. mage_ai/server/frontend_dist/block-layout.html +3 -3
  113. mage_ai/server/frontend_dist/compute.html +6 -6
  114. mage_ai/server/frontend_dist/files.html +6 -6
  115. mage_ai/server/frontend_dist/global-data-products/[...slug].html +6 -6
  116. mage_ai/server/frontend_dist/global-data-products.html +6 -6
  117. mage_ai/server/frontend_dist/global-hooks/[...slug].html +6 -6
  118. mage_ai/server/frontend_dist/global-hooks.html +6 -6
  119. mage_ai/server/frontend_dist/index.html +3 -3
  120. mage_ai/server/frontend_dist/manage/files.html +6 -6
  121. mage_ai/server/frontend_dist/manage/overview.html +6 -6
  122. mage_ai/server/frontend_dist/manage/pipeline-runs.html +6 -6
  123. mage_ai/server/frontend_dist/manage/settings.html +6 -6
  124. mage_ai/server/frontend_dist/manage/users/[user].html +6 -6
  125. mage_ai/server/frontend_dist/manage/users/new.html +6 -6
  126. mage_ai/server/frontend_dist/manage/users.html +6 -6
  127. mage_ai/server/frontend_dist/manage.html +6 -6
  128. mage_ai/server/frontend_dist/oauth.html +5 -5
  129. mage_ai/server/frontend_dist/overview.html +6 -6
  130. mage_ai/server/frontend_dist/pipeline-runs.html +6 -6
  131. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +6 -6
  132. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +6 -6
  133. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +6 -6
  134. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +3 -3
  135. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +6 -6
  136. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +6 -6
  137. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +6 -6
  138. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +6 -6
  139. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +6 -6
  140. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +6 -6
  141. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +6 -6
  142. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +6 -6
  143. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +6 -6
  144. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +6 -6
  145. mage_ai/server/frontend_dist/pipelines/[pipeline].html +3 -3
  146. mage_ai/server/frontend_dist/pipelines.html +6 -6
  147. mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +6 -6
  148. mage_ai/server/frontend_dist/platform/global-hooks.html +6 -6
  149. mage_ai/server/frontend_dist/settings/account/profile.html +6 -6
  150. mage_ai/server/frontend_dist/settings/platform/preferences.html +6 -6
  151. mage_ai/server/frontend_dist/settings/platform/settings.html +6 -6
  152. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +6 -6
  153. mage_ai/server/frontend_dist/settings/workspace/permissions.html +6 -6
  154. mage_ai/server/frontend_dist/settings/workspace/preferences.html +6 -6
  155. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +6 -6
  156. mage_ai/server/frontend_dist/settings/workspace/roles.html +6 -6
  157. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +6 -6
  158. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +6 -6
  159. mage_ai/server/frontend_dist/settings/workspace/users.html +6 -6
  160. mage_ai/server/frontend_dist/settings.html +3 -3
  161. mage_ai/server/frontend_dist/sign-in.html +7 -7
  162. mage_ai/server/frontend_dist/templates/[...slug].html +6 -6
  163. mage_ai/server/frontend_dist/templates.html +6 -6
  164. mage_ai/server/frontend_dist/terminal.html +6 -6
  165. mage_ai/server/frontend_dist/test.html +3 -3
  166. mage_ai/server/frontend_dist/triggers.html +6 -6
  167. mage_ai/server/frontend_dist/v2/canvas.html +2 -2
  168. mage_ai/server/frontend_dist/v2.html +2 -2
  169. mage_ai/server/frontend_dist/version-control.html +6 -6
  170. mage_ai/server/frontend_dist_base_path_template/404.html +3 -3
  171. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1187-839336d276186105.js → 1187-4560c3895e1d7099.js} +1 -1
  172. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1598-0adca9dce3ba4c60.js → 1598-cbf3f5a6078fc3f5.js} +1 -1
  173. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-638a944d24d5abde.js +1 -0
  174. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3548-36f746b1824004f2.js +1 -0
  175. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{3763-39a5174f6a3924db.js → 3763-aabe2703076636b0.js} +1 -1
  176. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3782-3e2acb5ed45b582b.js +1 -0
  177. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/449-5e2253c6aba42557.js +1 -0
  178. mage_ai/server/{frontend_dist/_next/static/chunks/5627-d5e559859dd0e1e0.js → frontend_dist_base_path_template/_next/static/chunks/5627-10e76bafa5a26f5f.js} +1 -1
  179. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5699-e49718dfc9eb2854.js → 5699-e99379e332bd0b41.js} +1 -1
  180. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7966-163da2621b8c987c.js → 7966-a5a7db345ce81263.js} +1 -1
  181. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ee5e328aaf51c698.js +2 -0
  182. mage_ai/server/{frontend_dist/_next/static/chunks/pages/compute-ed67fa8e81662e8b.js → frontend_dist_base_path_template/_next/static/chunks/pages/compute-9e2dea78024e3bb4.js} +1 -1
  183. mage_ai/server/{frontend_dist/_next/static/chunks/pages/files-e0ecd7ced09a63b2.js → frontend_dist_base_path_template/_next/static/chunks/pages/files-e08c7fe76f968f9c.js} +1 -1
  184. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-c7a729477ecda50e.js → [...slug]-30c3807057a4e65b.js} +1 -1
  185. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-fd6ae6a358a60a0c.js → global-data-products-8dcb3b31af9e0e39.js} +1 -1
  186. mage_ai/server/{frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-8e50243797a7fe59.js → frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-85a64b64d27214b6.js} +1 -1
  187. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-hooks-d0c003446332dc0d.js → global-hooks-4ff959d51b8a9502.js} +1 -1
  188. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{files-a69ed8e9f814490c.js → files-d08a460641d0efaa.js} +1 -1
  189. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{overview-1aad7093c6d39257.js → overview-aae747f487e08d51.js} +1 -1
  190. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{pipeline-runs-528d30e0d13b0cc7.js → pipeline-runs-09a842d64a6ada62.js} +1 -1
  191. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{settings-fb9201d9cf63031d.js → settings-2e98e57d9376a458.js} +1 -1
  192. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/{[user]-000f5a980a07da39.js → [user]-7be6e41ad66089bb.js} +1 -1
  193. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/new-e4e613f6e817a733.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-4c088833063bfa07.js} +1 -1
  194. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-5db54821a3059c69.js +1 -0
  195. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage-34d718b8a4066c23.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage-868fcd8cbeb265f0.js} +1 -1
  196. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{oauth-3bfd1b8d7f036726.js → oauth-6ceceb62191dfe8a.js} +1 -1
  197. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-f65416f6dbe30ad3.js +1 -0
  198. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{pipeline-runs-5f8c100e648efa8a.js → pipeline-runs-2d0136b51b57de93.js} +1 -1
  199. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-688c652f3296bb9c.js → [...slug]-1ad5238742e25b4c.js} +1 -1
  200. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-bd11e87d026bfbf9.js +1 -0
  201. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{dashboard-1236e36d39b1637d.js → dashboard-0f4f47f721b0723f.js} +1 -1
  202. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-432da20df91511fb.js +1 -0
  203. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-fe91dfb0091f6bc6.js +1 -0
  204. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-0d68d4bf6290fefb.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-cf794b2d22a80f31.js} +1 -1
  205. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-9254358d58f07714.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-a964caef91bed9e1.js} +1 -1
  206. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-821001e690caebe2.js → monitors-80bebb4401eefe25.js} +1 -1
  207. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2eae7cb017027682.js +1 -0
  208. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d4b2a0800a66b33.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3d7fdfeb7f806f7.js} +1 -1
  209. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-03d9bca3bc5e6088.js +1 -0
  210. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-707ed8ca942ca802.js +1 -0
  211. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-259143ed3cf59e31.js → [...slug]-8429f17d4146e1ec.js} +1 -1
  212. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-193045d9836d8d80.js +1 -0
  213. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-d25d07db166cbb04.js +1 -0
  214. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/{[...slug]-5eeec927e4202b63.js → [...slug]-6834ae87bd668cb2.js} +1 -1
  215. mage_ai/server/{frontend_dist/_next/static/chunks/pages/platform/global-hooks-fbe9ad995d46d837.js → frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-b3f7309a23e592b2.js} +1 -1
  216. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/{profile-fc659962d4015cb3.js → profile-f8b7374385e1f1bf.js} +1 -1
  217. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-8de68502a9afa299.js +1 -0
  218. mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/platform/settings-a4f88c334414402b.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-50fb6a34f3913f1f.js} +1 -1
  219. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-4deb9579ef99a3c6.js → [...slug]-2e5c098c21ea32b7.js} +1 -1
  220. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-e0cda2f2bfce8d61.js → permissions-54e4b15b9585bfc4.js} +1 -1
  221. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-040f83d75d0f6537.js +1 -0
  222. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-910257d16c604ebd.js → [...slug]-95088f43034e3c95.js} +1 -1
  223. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-4f7a0756806cee34.js → roles-e9149e1fcf218f42.js} +1 -1
  224. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{sync-data-208d6f955204d704.js → sync-data-75b67ae4a00818ef.js} +1 -1
  225. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-c89dc67e5a1706a8.js → [...slug]-557dda05ca6c6124.js} +1 -1
  226. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-fa61dc6c1370e6a5.js +1 -0
  227. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{sign-in-054b33312d3193c3.js → sign-in-593c40985d63fcf7.js} +1 -1
  228. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/{[...slug]-b6ed6a5d818bfd20.js → [...slug]-252c4b6b818345d5.js} +1 -1
  229. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{templates-852357bc983af2ea.js → templates-ca528bc607753ab8.js} +1 -1
  230. mage_ai/server/{frontend_dist/_next/static/chunks/pages/terminal-1f9c56d671bbc67d.js → frontend_dist_base_path_template/_next/static/chunks/pages/terminal-287362c1defcc96b.js} +1 -1
  231. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-2f83af8c9f1378fe.js +1 -0
  232. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-d9de73fb799efed8.js +1 -0
  233. mage_ai/server/{frontend_dist/_next/static/chunks/pages/version-control-ae3469b992a341d6.js → frontend_dist_base_path_template/_next/static/chunks/pages/version-control-573f0225d7a703ed.js} +1 -1
  234. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-12ad70eb5c31aa92.js → webpack-5f4be622608d9267.js} +1 -1
  235. mage_ai/server/frontend_dist_base_path_template/_next/static/iCySon3_GCldnbC5U7C-s/_buildManifest.js +1 -0
  236. mage_ai/server/frontend_dist_base_path_template/block-layout.html +3 -3
  237. mage_ai/server/frontend_dist_base_path_template/compute.html +6 -6
  238. mage_ai/server/frontend_dist_base_path_template/files.html +6 -6
  239. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +6 -6
  240. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +6 -6
  241. mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +6 -6
  242. mage_ai/server/frontend_dist_base_path_template/global-hooks.html +6 -6
  243. mage_ai/server/frontend_dist_base_path_template/index.html +3 -3
  244. mage_ai/server/frontend_dist_base_path_template/manage/files.html +6 -6
  245. mage_ai/server/frontend_dist_base_path_template/manage/overview.html +6 -6
  246. mage_ai/server/frontend_dist_base_path_template/manage/pipeline-runs.html +6 -6
  247. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +6 -6
  248. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +6 -6
  249. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +6 -6
  250. mage_ai/server/frontend_dist_base_path_template/manage/users.html +6 -6
  251. mage_ai/server/frontend_dist_base_path_template/manage.html +6 -6
  252. mage_ai/server/frontend_dist_base_path_template/oauth.html +5 -5
  253. mage_ai/server/frontend_dist_base_path_template/overview.html +6 -6
  254. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +6 -6
  255. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +6 -6
  256. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +6 -6
  257. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +6 -6
  258. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +3 -3
  259. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +6 -6
  260. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +6 -6
  261. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +6 -6
  262. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +6 -6
  263. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +6 -6
  264. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +6 -6
  265. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +6 -6
  266. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +6 -6
  267. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +6 -6
  268. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +6 -6
  269. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +3 -3
  270. mage_ai/server/frontend_dist_base_path_template/pipelines.html +6 -6
  271. mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +6 -6
  272. mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +6 -6
  273. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +6 -6
  274. mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +6 -6
  275. mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +6 -6
  276. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +6 -6
  277. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +6 -6
  278. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +6 -6
  279. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +6 -6
  280. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +6 -6
  281. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +6 -6
  282. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +6 -6
  283. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +6 -6
  284. mage_ai/server/frontend_dist_base_path_template/settings.html +3 -3
  285. mage_ai/server/frontend_dist_base_path_template/sign-in.html +7 -7
  286. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +6 -6
  287. mage_ai/server/frontend_dist_base_path_template/templates.html +6 -6
  288. mage_ai/server/frontend_dist_base_path_template/terminal.html +6 -6
  289. mage_ai/server/frontend_dist_base_path_template/test.html +3 -3
  290. mage_ai/server/frontend_dist_base_path_template/triggers.html +6 -6
  291. mage_ai/server/frontend_dist_base_path_template/v2/canvas.html +2 -2
  292. mage_ai/server/frontend_dist_base_path_template/v2.html +2 -2
  293. mage_ai/server/frontend_dist_base_path_template/version-control.html +6 -6
  294. mage_ai/server/server.py +9 -0
  295. mage_ai/services/teams/config.py +13 -2
  296. mage_ai/services/teams/teams.py +13 -11
  297. mage_ai/settings/server.py +2 -0
  298. mage_ai/shared/constants.py +3 -1
  299. mage_ai/shared/enum.py +2 -5
  300. mage_ai/shared/environments.py +27 -3
  301. mage_ai/streaming/sinks/elasticsearch.py +15 -5
  302. mage_ai/tests/api/endpoints/test_blocks.py +1 -101
  303. mage_ai/tests/api/endpoints/test_configuration_options.py +1 -48
  304. mage_ai/tests/api/endpoints/test_configuration_options_project_platform.py +68 -0
  305. mage_ai/tests/api/endpoints/test_custom_designs.py +1 -106
  306. mage_ai/tests/api/endpoints/test_custom_designs_project_platform.py +132 -0
  307. mage_ai/tests/api/endpoints/test_dbt_blocks.py +111 -0
  308. mage_ai/tests/api/endpoints/test_file_contents.py +0 -48
  309. mage_ai/tests/api/endpoints/test_file_contents_with_project_platform.py +66 -0
  310. mage_ai/tests/api/endpoints/test_pipelines.py +0 -134
  311. mage_ai/tests/api/endpoints/test_pipelines_with_project_platform.py +143 -0
  312. mage_ai/tests/data_preparation/models/block/dynamic/test_counter.py +1 -3
  313. mage_ai/tests/data_preparation/models/block/hook/test_hook_block.py +3 -3
  314. mage_ai/tests/data_preparation/models/test_block.py +7 -0
  315. mage_ai/tests/data_preparation/test_repo_manager.py +0 -63
  316. mage_ai/tests/data_preparation/test_repo_manager_project_platform.py +67 -0
  317. mage_ai/tests/data_preparation/test_variable_manager.py +0 -51
  318. mage_ai/tests/data_preparation/test_variable_manager_project_platform.py +41 -0
  319. mage_ai/tests/io/create_table/test_postgresql.py +27 -0
  320. mage_ai/tests/orchestration/notification/test_config.py +3 -3
  321. mage_ai/usage_statistics/logger.py +99 -15
  322. mage_ai-0.9.76.dist-info/METADATA +393 -0
  323. {mage_ai-0.9.74.dist-info → mage_ai-0.9.76.dist-info}/RECORD +331 -322
  324. {mage_ai-0.9.74.dist-info → mage_ai-0.9.76.dist-info}/WHEEL +1 -1
  325. mage_ai/server/frontend_dist/_next/static/chunks/1557-1ad0c64c2d08e569.js +0 -1
  326. mage_ai/server/frontend_dist/_next/static/chunks/2717-d65056b6b5e124eb.js +0 -1
  327. mage_ai/server/frontend_dist/_next/static/chunks/3548-b2c5edfb710886a6.js +0 -1
  328. mage_ai/server/frontend_dist/_next/static/chunks/3782-4b3091e550f809a2.js +0 -1
  329. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-5bdff745074fb350.js +0 -2
  330. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-a5e9d77ed5b50205.js +0 -1
  331. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-69af3253ad0d0d89.js +0 -1
  332. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-fe112809feb25b05.js +0 -1
  333. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-e9ca358209cdf93d.js +0 -1
  334. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-a29f1615d2e7d330.js +0 -1
  335. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-6d382ae5bad9745c.js +0 -1
  336. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-cd49372ae1702963.js +0 -1
  337. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-135be8974f7f5f2b.js +0 -1
  338. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-3af13e89adff4d6c.js +0 -1
  339. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-b578b075a8d857e3.js +0 -1
  340. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-058d283ee178c038.js +0 -1
  341. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-7b02bb70462144cb.js +0 -1
  342. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-5212c01a9dc558da.js +0 -1
  343. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-86b12cc12d4a625f.js +0 -1
  344. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-2481c40b18d5b6d4.js +0 -1
  345. mage_ai/server/frontend_dist/_next/static/pLWT6Sqd09xYpufCVIqnz/_buildManifest.js +0 -1
  346. mage_ai/server/frontend_dist_base_path_template/_next/static/JQewSAObpbhO0wrdAM6Ng/_buildManifest.js +0 -1
  347. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-1ad0c64c2d08e569.js +0 -1
  348. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-d65056b6b5e124eb.js +0 -1
  349. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3548-b2c5edfb710886a6.js +0 -1
  350. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3782-4b3091e550f809a2.js +0 -1
  351. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-90de19bc03f1484b.js +0 -2
  352. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-a5e9d77ed5b50205.js +0 -1
  353. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-69af3253ad0d0d89.js +0 -1
  354. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-fe112809feb25b05.js +0 -1
  355. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-e9ca358209cdf93d.js +0 -1
  356. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-a29f1615d2e7d330.js +0 -1
  357. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-6d382ae5bad9745c.js +0 -1
  358. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-cd49372ae1702963.js +0 -1
  359. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-135be8974f7f5f2b.js +0 -1
  360. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-3af13e89adff4d6c.js +0 -1
  361. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-b578b075a8d857e3.js +0 -1
  362. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-058d283ee178c038.js +0 -1
  363. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-7b02bb70462144cb.js +0 -1
  364. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-5212c01a9dc558da.js +0 -1
  365. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-86b12cc12d4a625f.js +0 -1
  366. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-2481c40b18d5b6d4.js +0 -1
  367. mage_ai-0.9.74.dist-info/METADATA +0 -544
  368. /mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-5bdff745074fb350.js.LICENSE.txt → _app-782dd4a6b13e1c42.js.LICENSE.txt} +0 -0
  369. /mage_ai/server/frontend_dist/_next/static/{pLWT6Sqd09xYpufCVIqnz → qR0jauUABqPaFMjUsYeoG}/_ssgManifest.js +0 -0
  370. /mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{_app-90de19bc03f1484b.js.LICENSE.txt → _app-ee5e328aaf51c698.js.LICENSE.txt} +0 -0
  371. /mage_ai/server/frontend_dist_base_path_template/_next/static/{JQewSAObpbhO0wrdAM6Ng → iCySon3_GCldnbC5U7C-s}/_ssgManifest.js +0 -0
  372. {mage_ai-0.9.74.dist-info → mage_ai-0.9.76.dist-info}/entry_points.txt +0 -0
  373. {mage_ai-0.9.74.dist-info → mage_ai-0.9.76.dist-info/licenses}/LICENSE +0 -0
  374. {mage_ai-0.9.74.dist-info → mage_ai-0.9.76.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,9 @@
1
1
  import pandas as pd
2
+ import simplejson
2
3
 
3
4
  from mage_ai.io.export_utils import infer_dtypes
4
5
  from mage_ai.io.postgres import Postgres
6
+ from mage_ai.shared.parsers import encode_complex
5
7
  from mage_ai.tests.base_test import DBTestCase
6
8
 
7
9
 
@@ -26,3 +28,28 @@ class TestTablePostgres(DBTestCase):
26
28
  )
27
29
  self.assertEqual('CREATE TABLE Test.Test ("varchar_time" text,"datetime_time" TIMESTAMP);',
28
30
  query)
31
+
32
+ def test_clean_array_value(self):
33
+ test_cases = [
34
+ [],
35
+ [123],
36
+ [['abc', 'def']],
37
+ [['08:00', '12:00'], ['15:00', '20:00']],
38
+ [['08:00', '12:00'], []],
39
+ ]
40
+ expected = [
41
+ '{}',
42
+ '{123}',
43
+ '{{"abc", "def"}}',
44
+ '{{"08:00", "12:00"}, {"15:00", "20:00"}}',
45
+ '{{"08:00", "12:00"}, {}}',
46
+ ]
47
+ for val, expected_val in zip(test_cases, expected):
48
+ cleaned_array_value = Postgres._clean_array_value(
49
+ simplejson.dumps(
50
+ val,
51
+ default=encode_complex,
52
+ ignore_nan=True,
53
+ )
54
+ )
55
+ self.assertEqual(cleaned_array_value, expected_val)
@@ -2,10 +2,10 @@ from mage_ai.orchestration.notification.config import NotificationConfig
2
2
  from mage_ai.tests.base_test import TestCase
3
3
  from mage_ai.tests.orchestration.notification.constants import (
4
4
  EMAIL_NOTIFICATION_CONFIG,
5
+ GOOGLE_CHAT_NOTIFICATION_CONFIG,
6
+ OPSGENIE_NOTIFICATION_CONFIG,
5
7
  SLACK_NOTIFICATION_CONFIG,
6
8
  TEAMS_NOTIFICATION_CONFIG,
7
- GOOGLE_CHAT_NOTIFICATION_CONFIG,
8
- OPSGENIE_NOTIFICATION_CONFIG
9
9
  )
10
10
 
11
11
 
@@ -43,7 +43,7 @@ class NotificationConfigTests(TestCase):
43
43
  self.assertIsNone(config3.email_config)
44
44
  self.assertEqual(config3.slack_config.webhook_url, 'test_webhook_url')
45
45
 
46
- self.assertEqual(config4.teams_config.webhook_url, 'test_webhook_url')
46
+ self.assertEqual(config4.teams_config.webhook_url, ['test_webhook_url'])
47
47
 
48
48
  self.assertEqual(config5.google_chat_config.webhook_url, 'test_webhook_url')
49
49
 
@@ -7,6 +7,7 @@ from typing import Callable, Dict, List, Union
7
7
 
8
8
  import aiohttp
9
9
  import pytz
10
+ import requests
10
11
 
11
12
  from mage_ai.api.operations.constants import OperationType
12
13
  from mage_ai.cache.block_action_object.constants import (
@@ -43,6 +44,8 @@ from mage_ai.usage_statistics.constants import (
43
44
  )
44
45
  from mage_ai.usage_statistics.utils import build_event_data_for_chart
45
46
 
47
+ AMPLITUDE_API_KEY = 'KwnbpKJNe6gOjC2X5ilxafFvxbNppiIfGejB2hlY'
48
+
46
49
 
47
50
  class UsageStatisticLogger():
48
51
  def __init__(
@@ -229,6 +232,17 @@ class UsageStatisticLogger():
229
232
  ),
230
233
  )
231
234
 
235
+ def pipeline_runs_impression_sync(self, count_func: Callable) -> bool:
236
+ if not self.help_improve_mage:
237
+ return False
238
+ return self.__send_message_sync(
239
+ dict(
240
+ object=EventObjectType.PIPELINE_RUN,
241
+ action=EventActionType.IMPRESSION,
242
+ pipeline_runs=count_func(),
243
+ ),
244
+ )
245
+
232
246
  @safe_db_query
233
247
  async def pipeline_runs_impression(self, count_func: Callable) -> bool:
234
248
  if not self.help_improve_mage:
@@ -301,19 +315,7 @@ class UsageStatisticLogger():
301
315
  )
302
316
 
303
317
  @safe_db_query
304
- async def pipeline_run_ended(self, pipeline_run: PipelineRun) -> bool:
305
- """
306
- Write "pipeline_run_ended" event to Amplitude for the given PipelineRun.
307
-
308
- Args:
309
- pipeline_run (PipelineRun): pipeline run to use to populate the event
310
-
311
- Returns:
312
- bool: True if event was successfully uploaded
313
- """
314
- if not self.help_improve_mage:
315
- return False
316
-
318
+ def pipeline_run_ended_data(self, pipeline_run: PipelineRun):
317
319
  pipeline = pipeline_run.pipeline
318
320
 
319
321
  if pipeline.type == PipelineType.INTEGRATION:
@@ -333,7 +335,7 @@ class UsageStatisticLogger():
333
335
 
334
336
  encoded_pipeline_uuid = pipeline.uuid.encode('utf-8')
335
337
  pipeline_schedule = pipeline_run.pipeline_schedule
336
- data = dict(
338
+ return dict(
337
339
  landing_time_enabled=1 if pipeline_schedule.landing_time_enabled() else 0,
338
340
  num_pipeline_blocks=len(block_configs),
339
341
  pipeline_run_uuid=pipeline_run.id,
@@ -346,11 +348,48 @@ class UsageStatisticLogger():
346
348
  unique_languages=list(set([b.get('language') for b in block_configs])),
347
349
  )
348
350
 
351
+ @safe_db_query
352
+ async def pipeline_run_ended(self, pipeline_run: PipelineRun) -> bool:
353
+ """
354
+ Write "pipeline_run_ended" event to Amplitude for the given PipelineRun.
355
+
356
+ Args:
357
+ pipeline_run (PipelineRun): pipeline run to use to populate the event
358
+
359
+ Returns:
360
+ bool: True if event was successfully uploaded
361
+ """
362
+ if not self.help_improve_mage:
363
+ return False
364
+
365
+ data = self.pipeline_run_ended_data(pipeline_run)
366
+
349
367
  return await self.__send_message(
350
368
  data,
351
369
  event_name=EventNameType.PIPELINE_RUN_ENDED,
352
370
  )
353
371
 
372
+ @safe_db_query
373
+ def pipeline_run_ended_sync(self, pipeline_run: PipelineRun) -> bool:
374
+ """
375
+ Write "pipeline_run_ended" event to Amplitude for the given PipelineRun.
376
+
377
+ Args:
378
+ pipeline_run (PipelineRun): pipeline run to use to populate the event
379
+
380
+ Returns:
381
+ bool: True if event was successfully uploaded
382
+ """
383
+ if not self.help_improve_mage:
384
+ return False
385
+
386
+ data = self.pipeline_run_ended_data(pipeline_run)
387
+
388
+ return self.__send_message_sync(
389
+ data,
390
+ event_name=EventNameType.PIPELINE_RUN_ENDED,
391
+ )
392
+
354
393
  @safe_db_query
355
394
  async def block_run_ended(self, block_run: BlockRun) -> bool:
356
395
  if not self.help_improve_mage:
@@ -452,7 +491,7 @@ class UsageStatisticLogger():
452
491
  async with session.post(
453
492
  API_ENDPOINT,
454
493
  json=dict(
455
- api_key='KwnbpKJNe6gOjC2X5ilxafFvxbNppiIfGejB2hlY',
494
+ api_key=AMPLITUDE_API_KEY,
456
495
  event_name=event_name,
457
496
  usage_statistics=data_to_send,
458
497
  ),
@@ -467,6 +506,51 @@ class UsageStatisticLogger():
467
506
  print(f'[Statistics] Message: {err}')
468
507
  return False
469
508
 
509
+ def __send_message_sync(
510
+ self,
511
+ data: Dict,
512
+ event_name: EventNameType = EventNameType.USAGE_STATISTIC_CREATE,
513
+ override_validation: bool = False,
514
+ project_uuid: str = None,
515
+ ) -> bool:
516
+ if not override_validation:
517
+ if is_test():
518
+ return False
519
+
520
+ if not self.help_improve_mage:
521
+ return False
522
+
523
+ if data is None:
524
+ data = {}
525
+
526
+ data_to_send = merge_dict(
527
+ self.__shared_metadata(),
528
+ data,
529
+ )
530
+
531
+ if project_uuid and not data_to_send.get('project_uuid'):
532
+ data_to_send['project_uuid'] = project_uuid
533
+
534
+ try:
535
+ response = requests.post(
536
+ API_ENDPOINT,
537
+ json={
538
+ 'api_key': AMPLITUDE_API_KEY,
539
+ 'event_name': event_name,
540
+ 'usage_statistics': data_to_send,
541
+ },
542
+ timeout=3
543
+ )
544
+ response.raise_for_status()
545
+ response_json = response.json()
546
+ if response_json.get('success'):
547
+ if is_debug():
548
+ print(json.dumps(data_to_send, indent=2))
549
+ return True
550
+ except Exception as err:
551
+ print(f'[Statistics] Message: {err}')
552
+ return False
553
+
470
554
  def __shared_metadata(self) -> Dict:
471
555
  return dict(
472
556
  environment=get_env(),
@@ -0,0 +1,393 @@
1
+ Metadata-Version: 2.4
2
+ Name: mage-ai
3
+ Version: 0.9.76
4
+ Summary: Mage is a tool for building and deploying data pipelines.
5
+ Home-page: https://github.com/mage-ai/mage-ai
6
+ Author: Mage
7
+ Author-email: eng@mage.ai
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: Apache Software License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.9
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: cachetools
15
+ Requires-Dist: Faker==4.14.0
16
+ Requires-Dist: GitPython==3.1.41
17
+ Requires-Dist: Jinja2==3.1.3
18
+ Requires-Dist: Pillow==10.3.0
19
+ Requires-Dist: PyGithub==1.59.0
20
+ Requires-Dist: PyJWT==2.6.0
21
+ Requires-Dist: aiofiles==22.1.0
22
+ Requires-Dist: aiohttp==3.10.0
23
+ Requires-Dist: alembic>=1.7.5
24
+ Requires-Dist: bcrypt==4.0.1
25
+ Requires-Dist: croniter==1.3.7
26
+ Requires-Dist: cryptography==42.0.4
27
+ Requires-Dist: dask>=2022.2.0
28
+ Requires-Dist: datadog==0.44.0
29
+ Requires-Dist: freezegun==1.2.2
30
+ Requires-Dist: great-expectations==0.18.12
31
+ Requires-Dist: httpx==0.25.0
32
+ Requires-Dist: inflection==0.5.1
33
+ Requires-Dist: ipykernel==6.15.0
34
+ Requires-Dist: ipython==8.10.0
35
+ Requires-Dist: itsdangerous~=1.1.0
36
+ Requires-Dist: joblib>=1.1.0
37
+ Requires-Dist: jupyter-server==2.14.1
38
+ Requires-Dist: jupyter_client==7.4.4
39
+ Requires-Dist: ldap3==2.9.1
40
+ Requires-Dist: memory_profiler
41
+ Requires-Dist: newrelic==8.8.0
42
+ Requires-Dist: numpy>=1.22.0
43
+ Requires-Dist: pandas>=1.3.0
44
+ Requires-Dist: polars<0.19.2,>=0.18.0
45
+ Requires-Dist: protobuf>=4.25.0
46
+ Requires-Dist: psutil==5.9.8
47
+ Requires-Dist: pyairtable>=2.3.3
48
+ Requires-Dist: pyarrow>=14.0.1
49
+ Requires-Dist: python-dateutil==2.8.2
50
+ Requires-Dist: pytz>=2022.2.1
51
+ Requires-Dist: pyyaml~=6.0
52
+ Requires-Dist: redis~=5.0.1
53
+ Requires-Dist: requests~=2.31.0
54
+ Requires-Dist: ruamel.yaml==0.17.17
55
+ Requires-Dist: scikit-learn>=1.0
56
+ Requires-Dist: sentry-sdk==1.19.1
57
+ Requires-Dist: setuptools==70.0.0
58
+ Requires-Dist: simplejson
59
+ Requires-Dist: six>=1.15.0
60
+ Requires-Dist: sqlalchemy<2.0.0,>=1.4.20
61
+ Requires-Dist: sqlglot[rs]
62
+ Requires-Dist: terminado==0.17.1
63
+ Requires-Dist: thefuzz[speedup]==0.19.0
64
+ Requires-Dist: tornado==6.4.2
65
+ Requires-Dist: typer[all]==0.9.0
66
+ Requires-Dist: typing_extensions==4.10.0
67
+ Requires-Dist: watchdog==4.0.0
68
+ Requires-Dist: Werkzeug==3.0.3
69
+ Provides-Extra: ai
70
+ Requires-Dist: astor>=0.8.1; extra == "ai"
71
+ Requires-Dist: langchain==0.1.6; extra == "ai"
72
+ Requires-Dist: langchain_community<0.0.20; extra == "ai"
73
+ Requires-Dist: openai>=1.0.0; extra == "ai"
74
+ Provides-Extra: airtable
75
+ Requires-Dist: pyairtable>=2.3.3; extra == "airtable"
76
+ Provides-Extra: azure
77
+ Requires-Dist: azure-eventhub==5.11.2; extra == "azure"
78
+ Requires-Dist: azure-identity==1.12.0; extra == "azure"
79
+ Requires-Dist: azure-keyvault-secrets==4.6.0; extra == "azure"
80
+ Requires-Dist: azure-keyvault-certificates==4.6.0; extra == "azure"
81
+ Requires-Dist: azure-mgmt-containerinstance==10.1.0; extra == "azure"
82
+ Requires-Dist: azure-storage-blob==12.14.1; extra == "azure"
83
+ Provides-Extra: bigquery
84
+ Requires-Dist: google-cloud-bigquery~=3.0; extra == "bigquery"
85
+ Requires-Dist: db-dtypes==1.0.5; extra == "bigquery"
86
+ Provides-Extra: chroma
87
+ Requires-Dist: chromadb>=0.4.17; extra == "chroma"
88
+ Provides-Extra: clickhouse
89
+ Requires-Dist: clickhouse-connect~=0.6.23; extra == "clickhouse"
90
+ Provides-Extra: dbt
91
+ Requires-Dist: dbt-adapters==1.8.0; extra == "dbt"
92
+ Requires-Dist: dbt-bigquery==1.8.3; extra == "dbt"
93
+ Requires-Dist: dbt-clickhouse==1.8.5; extra == "dbt"
94
+ Requires-Dist: dbt-core==1.8.7; extra == "dbt"
95
+ Requires-Dist: dbt-duckdb==1.8.4; extra == "dbt"
96
+ Requires-Dist: dbt-postgres==1.8.2; extra == "dbt"
97
+ Requires-Dist: dbt-redshift==1.8.1; extra == "dbt"
98
+ Requires-Dist: dbt-snowflake==1.8.4; extra == "dbt"
99
+ Requires-Dist: dbt-spark==1.8.0; extra == "dbt"
100
+ Requires-Dist: dbt-sqlserver==1.8.4; extra == "dbt"
101
+ Requires-Dist: dbt-synapse==1.8.2; extra == "dbt"
102
+ Requires-Dist: dbt-trino==1.8.4; extra == "dbt"
103
+ Requires-Dist: trino~=0.326; extra == "dbt"
104
+ Provides-Extra: google-cloud-storage
105
+ Requires-Dist: google-cloud-storage==2.5.0; extra == "google-cloud-storage"
106
+ Requires-Dist: gspread==5.7.2; extra == "google-cloud-storage"
107
+ Provides-Extra: hdf5
108
+ Requires-Dist: tables==3.7.0; python_version < "3.11" and extra == "hdf5"
109
+ Requires-Dist: tables==3.10.1; python_version >= "3.11" and extra == "hdf5"
110
+ Provides-Extra: mysql
111
+ Requires-Dist: mysql-connector-python~=8.4.0; python_version < "3.11" and extra == "mysql"
112
+ Requires-Dist: mysql-connector-python~=9.0.0; python_version >= "3.11" and extra == "mysql"
113
+ Provides-Extra: oracle
114
+ Requires-Dist: oracledb==1.3.1; python_version < "3.12" and extra == "oracle"
115
+ Requires-Dist: oracledb==2.4.1; python_version >= "3.12" and extra == "oracle"
116
+ Provides-Extra: postgres
117
+ Requires-Dist: psycopg2==2.9.3; extra == "postgres"
118
+ Requires-Dist: psycopg2-binary==2.9.3; extra == "postgres"
119
+ Requires-Dist: sshtunnel==0.4.0; extra == "postgres"
120
+ Provides-Extra: qdrant
121
+ Requires-Dist: qdrant-client==1.6.9; extra == "qdrant"
122
+ Requires-Dist: sentence-transformers==2.2.2; extra == "qdrant"
123
+ Provides-Extra: redshift
124
+ Requires-Dist: boto3==1.26.60; extra == "redshift"
125
+ Requires-Dist: redshift-connector==2.0.915; extra == "redshift"
126
+ Requires-Dist: lxml==4.9.4; extra == "redshift"
127
+ Provides-Extra: s3
128
+ Requires-Dist: boto3==1.26.60; extra == "s3"
129
+ Requires-Dist: botocore==1.29.60; extra == "s3"
130
+ Provides-Extra: snowflake
131
+ Requires-Dist: snowflake-connector-python==3.7.1; extra == "snowflake"
132
+ Provides-Extra: spark
133
+ Requires-Dist: boto3==1.26.60; extra == "spark"
134
+ Requires-Dist: botocore==1.29.60; extra == "spark"
135
+ Provides-Extra: streaming
136
+ Requires-Dist: confluent-avro~=1.8.0; extra == "streaming"
137
+ Requires-Dist: elasticsearch==8.15.1; extra == "streaming"
138
+ Requires-Dist: influxdb_client==1.36.1; extra == "streaming"
139
+ Requires-Dist: kafka-python==2.0.2; extra == "streaming"
140
+ Requires-Dist: nats-py==2.6.0; extra == "streaming"
141
+ Requires-Dist: nkeys~=0.2.0; extra == "streaming"
142
+ Requires-Dist: opensearch-py==2.0.0; extra == "streaming"
143
+ Requires-Dist: pika==1.3.1; extra == "streaming"
144
+ Requires-Dist: pymongo==4.3.3; extra == "streaming"
145
+ Requires-Dist: requests_aws4auth==1.1.2; extra == "streaming"
146
+ Requires-Dist: stomp.py==8.1.0; extra == "streaming"
147
+ Provides-Extra: all
148
+ Requires-Dist: PyGithub==1.59.0; extra == "all"
149
+ Requires-Dist: astor>=0.8.1; extra == "all"
150
+ Requires-Dist: aws-secretsmanager-caching==1.1.1.5; extra == "all"
151
+ Requires-Dist: azure-eventhub==5.11.2; extra == "all"
152
+ Requires-Dist: azure-identity==1.12.0; extra == "all"
153
+ Requires-Dist: azure-keyvault-certificates==4.6.0; extra == "all"
154
+ Requires-Dist: azure-keyvault-secrets==4.6.0; extra == "all"
155
+ Requires-Dist: azure-mgmt-containerinstance==10.1.0; extra == "all"
156
+ Requires-Dist: azure-storage-blob==12.14.1; extra == "all"
157
+ Requires-Dist: boto3==1.26.60; extra == "all"
158
+ Requires-Dist: botocore==1.29.60; extra == "all"
159
+ Requires-Dist: clickhouse-connect~=0.6.23; extra == "all"
160
+ Requires-Dist: confluent-avro~=1.8.0; extra == "all"
161
+ Requires-Dist: db-dtypes==1.0.5; extra == "all"
162
+ Requires-Dist: dbt-adapters==1.8.0; extra == "all"
163
+ Requires-Dist: dbt-bigquery==1.8.3; extra == "all"
164
+ Requires-Dist: dbt-clickhouse==1.8.5; extra == "all"
165
+ Requires-Dist: dbt-core==1.8.7; extra == "all"
166
+ Requires-Dist: dbt-duckdb==1.8.4; extra == "all"
167
+ Requires-Dist: dbt-postgres==1.8.2; extra == "all"
168
+ Requires-Dist: dbt-redshift==1.8.1; extra == "all"
169
+ Requires-Dist: dbt-snowflake==1.8.4; extra == "all"
170
+ Requires-Dist: dbt-spark==1.8.0; extra == "all"
171
+ Requires-Dist: dbt-sqlserver==1.8.4; extra == "all"
172
+ Requires-Dist: dbt-synapse==1.8.2; extra == "all"
173
+ Requires-Dist: dbt-trino==1.8.4; extra == "all"
174
+ Requires-Dist: duckdb==1.0.0; extra == "all"
175
+ Requires-Dist: elasticsearch==8.15.1; extra == "all"
176
+ Requires-Dist: google-api-core~=2.15.0; extra == "all"
177
+ Requires-Dist: google-api-python-client~=2.70.0; extra == "all"
178
+ Requires-Dist: google-cloud-bigquery~=3.14.1; extra == "all"
179
+ Requires-Dist: google-cloud-iam~=2.13.0; extra == "all"
180
+ Requires-Dist: google-cloud-pubsub~=2.19.0; extra == "all"
181
+ Requires-Dist: google-cloud-run~=0.10.1; extra == "all"
182
+ Requires-Dist: google-cloud-storage~=2.5.0; extra == "all"
183
+ Requires-Dist: great-expectations==0.18.12; extra == "all"
184
+ Requires-Dist: gspread==5.7.2; extra == "all"
185
+ Requires-Dist: influxdb_client==1.36.1; extra == "all"
186
+ Requires-Dist: kafka-python==2.0.2; extra == "all"
187
+ Requires-Dist: kubernetes>=28.1.0; extra == "all"
188
+ Requires-Dist: langchain==0.1.6; extra == "all"
189
+ Requires-Dist: langchain_community<0.0.20; extra == "all"
190
+ Requires-Dist: ldap3==2.9.1; extra == "all"
191
+ Requires-Dist: nats-py==2.6.0; extra == "all"
192
+ Requires-Dist: nkeys~=0.2.0; extra == "all"
193
+ Requires-Dist: openai>=1.0.0; extra == "all"
194
+ Requires-Dist: opensearch-py==2.0.0; extra == "all"
195
+ Requires-Dist: opentelemetry-api==1.22.0; extra == "all"
196
+ Requires-Dist: opentelemetry-exporter-prometheus==0.43b0; extra == "all"
197
+ Requires-Dist: opentelemetry-instrumentation-tornado==0.43b0; extra == "all"
198
+ Requires-Dist: opentelemetry-exporter-otlp==1.22.0; extra == "all"
199
+ Requires-Dist: opentelemetry-instrumentation-sqlalchemy==0.43b0; extra == "all"
200
+ Requires-Dist: oracledb==1.3.1; extra == "all"
201
+ Requires-Dist: pika==1.3.1; extra == "all"
202
+ Requires-Dist: pinotdb==5.6.0; extra == "all"
203
+ Requires-Dist: prometheus_client>=0.18.0; extra == "all"
204
+ Requires-Dist: protobuf>=4.25.0; extra == "all"
205
+ Requires-Dist: psycopg2-binary==2.9.3; extra == "all"
206
+ Requires-Dist: psycopg2==2.9.3; extra == "all"
207
+ Requires-Dist: pyairtable==2.3.3; extra == "all"
208
+ Requires-Dist: pydruid==0.6.5; extra == "all"
209
+ Requires-Dist: pymongo==4.3.3; extra == "all"
210
+ Requires-Dist: pyodbc==4.0.35; python_version < "3.12" and extra == "all"
211
+ Requires-Dist: pyodbc==5.0.1; python_version >= "3.12" and extra == "all"
212
+ Requires-Dist: redshift-connector==2.0.915; extra == "all"
213
+ Requires-Dist: lxml==4.9.4; extra == "all"
214
+ Requires-Dist: requests_aws4auth==1.1.2; extra == "all"
215
+ Requires-Dist: snowflake-connector-python==3.7.1; extra == "all"
216
+ Requires-Dist: sshtunnel==0.4.0; extra == "all"
217
+ Requires-Dist: stomp.py==8.1.0; extra == "all"
218
+ Requires-Dist: thefuzz[speedup]==0.19.0; extra == "all"
219
+ Requires-Dist: trino~=0.326; extra == "all"
220
+ Dynamic: author
221
+ Dynamic: author-email
222
+ Dynamic: classifier
223
+ Dynamic: description
224
+ Dynamic: description-content-type
225
+ Dynamic: home-page
226
+ Dynamic: license-file
227
+ Dynamic: provides-extra
228
+ Dynamic: requires-dist
229
+ Dynamic: requires-python
230
+ Dynamic: summary
231
+
232
+ <div align="left">
233
+ <h1>Mage AI</h1>
234
+
235
+ <p>Give your data team magical powers.</p>
236
+
237
+ <a href="https://mage.ai"><img alt="Mage AI GitHub repo stars" src="https://img.shields.io/github/stars/mage-ai/mage-ai?style=for-the-badge&logo=github&labelColor=000000&logoColor=FFFFFF&label=stars&color=0500ff" /></a>
238
+ <a href="https://hub.docker.com/r/mageai/mageai"><img alt="Mage AI Docker downloads" src="https://img.shields.io/docker/pulls/mageai/mageai?style=for-the-badge&logo=docker&labelColor=000000&logoColor=FFFFFF&label=pulls&color=6A35FF" /></a>
239
+ <a href="https://github.com/mage-ai/mage-ai/blob/master/LICENSE"><img alt="Mage AI license" src="https://img.shields.io/github/license/mage-ai/mage-ai?style=for-the-badge&logo=codeigniter&labelColor=000000&logoColor=FFFFFF&label=license&color=FFCC19" /></a>
240
+ <a href="https://www.mage.ai/chat"><img alt="Join the Mage AI community" src="https://img.shields.io/badge/Join%20the%20community-black.svg?style=for-the-badge&logo=lightning&labelColor=000000&logoColor=FFFFFF&label=&color=DD55FF&logoWidth=20" /></a>
241
+
242
+ </div>
243
+
244
+ <br />
245
+
246
+ <a href="https://cloud.mage.ai/sign-up">
247
+ <picture>
248
+ <source media="(prefers-color-scheme: dark)" srcset="https://github.com/mage-ai/assets/blob/main/oss/hero.png?raw=true">
249
+ <img alt="Mage AI hero" src="https://github.com/mage-ai/assets/blob/main/oss/hero.png?raw=true" />
250
+ </picture>
251
+ </a>
252
+
253
+ <br />
254
+ <br />
255
+
256
+ Mage is a hybrid framework for transforming and integrating data. It combines the best of both worlds: the flexibility of notebooks with the rigor of modular code.
257
+
258
+ <br />
259
+
260
+ - Extract and synchronize data from 3rd party sources.
261
+ - Transform data with real-time and batch pipelines using Python, SQL, and R.
262
+ - Load data into your data warehouse or data lake using our pre-built connectors.
263
+ - Run, monitor, and orchestrate thousands of pipelines without losing sleep.
264
+
265
+ <br />
266
+
267
+ Plus hundreds of enterprise-class features, infrastructure innovations, and magical surprises.
268
+
269
+ <h1></h1>
270
+
271
+ #### Available in two spellbinding versions
272
+
273
+ <br />
274
+
275
+ <table style="width: 100%; border: none;" cellspacing="0" cellpadding="0" border="0">
276
+ <tr>
277
+ <td rowspan="2">
278
+ <a href="https://cloud.mage.ai/sign-up">
279
+ <img alt="Mage Pro" width="124" align="left" src="https://github.com/mage-ai/assets/blob/main/oss/card-pro.png?raw=true" />
280
+ </a>
281
+ <b>For teams.</b> Fully managed platform
282
+ for integrating and transforming data.
283
+ </td>
284
+ <td rowspan="2">
285
+ <a href="https://github.com/mage-ai/mage-ai?tab=readme-ov-file#its-magic">
286
+ <img alt="Mage OSS" width="124" align="left" src="https://github.com/mage-ai/assets/blob/main/oss/card-oss.png?raw=true" />
287
+ </a>
288
+ <b>Self-hosted.</b> System to build, run, and
289
+ manage data pipelines.
290
+ </td>
291
+ </tr>
292
+ </table>
293
+
294
+ <br />
295
+
296
+ <a href="https://cloud.mage.ai/sign-up">
297
+ <img alt="Try out Mage Pro" src="https://img.shields.io/badge/try%20it%20out%20now-black.svg?style=for-the-badge&logo=artifacthub&labelColor=6A35FF&logoColor=FFFFFF&label=mage%20pro&color=6A35FF">
298
+ </a>
299
+
300
+ <br />
301
+ <br />
302
+
303
+ <div align="left">
304
+
305
+ # It’s magic.
306
+
307
+ <p align="left">
308
+ For documentation on getting started, how to develop, and how to deploy to production check out the live
309
+ <br />
310
+ <a
311
+ href="https://docs.mage.ai?source=github"
312
+ target="_blank"
313
+ ><b>Developer documentation portal</b></a>.
314
+ </p>
315
+
316
+ <br />
317
+
318
+ ## 🏃‍♀️ Install
319
+
320
+ The recommended way to install the latest version of Mage is through Docker with the following command:
321
+
322
+ ```bash
323
+ docker pull mageai/mageai:latest
324
+ ```
325
+
326
+ You can also install Mage using pip or conda, though this may cause dependency issues without the proper environment.
327
+
328
+ ```bash
329
+ pip install mage-ai
330
+ ```
331
+ ```bash
332
+ conda install -c conda-forge mage-ai
333
+ ```
334
+
335
+ Looking for help? The _fastest_ way to get started is by checking out our documentation [here](https://docs.mage.ai/getting-started/setup).
336
+
337
+ Looking for quick examples? Open a [demo](https://demo.mage.ai/) project right in your browser or check out our [guides](https://docs.mage.ai/guides/overview).
338
+
339
+ ## 🎮 Demo
340
+
341
+ ### Live demo
342
+
343
+ Build and run a data pipeline with our <b>[demo app](https://demo.mage.ai/)</b>.
344
+
345
+ > WARNING
346
+ >
347
+ > The live demo is public to everyone, please don’t save anything sensitive (e.g. passwords, secrets, etc).
348
+ ### Demo video (5 min)
349
+
350
+ [![Mage quick start demo](https://github.com/mage-ai/assets/blob/main/overview/overview-video.png?raw=True)](https://youtu.be/GswOdShLGmg)
351
+
352
+ <sub><i>Click the image to play video</i></sub>
353
+
354
+ <br />
355
+
356
+ ## 🔮 [Features](https://docs.mage.ai/about/features)
357
+
358
+ | | | |
359
+ | --- | --- | --- |
360
+ | 🎶 | <b>[Orchestration](https://docs.mage.ai/design/data-pipeline-management)</b> | Schedule and manage data pipelines with observability. |
361
+ | 📓 | <b>[Notebook](https://docs.mage.ai/about/features#notebook-for-building-data-pipelines)</b> | Interactive Python, SQL, & R editor for coding data pipelines. |
362
+ | 🏗️ | <b>[Data integrations](https://docs.mage.ai/data-integrations/overview)</b> | Synchronize data from 3rd party sources to your internal destinations. |
363
+ | 🚰 | <b>[Streaming pipelines](https://docs.mage.ai/guides/streaming-pipeline)</b> | Ingest and transform real-time data. |
364
+ | ❎ | <b>[dbt](https://docs.mage.ai/dbt/overview)</b> | Build, run, and manage your dbt models with Mage. |
365
+
366
+ <br />
367
+
368
+ <b>A sample data pipeline defined across 3 files ➝</b>
369
+
370
+ <br />
371
+
372
+ 1. Load data ➝
373
+ ```python
374
+ @data_loader
375
+ def load_csv_from_file() -> pl.DataFrame:
376
+ return pl.read_csv('default_repo/titanic.csv')
377
+ ```
378
+ 1. Transform data ➝
379
+ ```python
380
+ @transformer
381
+ def select_columns_from_df(df: pl.DataFrame, *args) -> pl.DataFrame:
382
+ return df[['Age', 'Fare', 'Survived']]
383
+ ```
384
+ 1. Export data ➝
385
+ ```python
386
+ @data_exporter
387
+ def export_titanic_data_to_disk(df: pl.DataFrame) -> None:
388
+ df.to_csv('default_repo/titanic_transformed.csv')
389
+ ```
390
+
391
+ <br />
392
+
393
+ [<img alt="Water mage casting spell" height="300" src="https://github.com/mage-ai/assets/blob/main/mage-water-charging-up.svg?raw=True" />](https://www.mage.ai/)