datasight 0.3.0__tar.gz → 0.5.0__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 (275) hide show
  1. datasight-0.5.0/.github/dependabot.yml +34 -0
  2. {datasight-0.3.0 → datasight-0.5.0}/.github/workflows/ci.yml +30 -0
  3. datasight-0.5.0/.github/workflows/codeql.yml +42 -0
  4. {datasight-0.3.0 → datasight-0.5.0}/AGENTS.md +1 -1
  5. {datasight-0.3.0 → datasight-0.5.0}/CLAUDE.md +1 -1
  6. {datasight-0.3.0 → datasight-0.5.0}/PKG-INFO +25 -6
  7. {datasight-0.3.0 → datasight-0.5.0}/README.md +21 -5
  8. {datasight-0.3.0 → datasight-0.5.0}/docs/concepts/choosing-an-llm.md +11 -7
  9. datasight-0.5.0/docs/end-user/how-to/connect-spark.md +480 -0
  10. datasight-0.5.0/docs/end-user/how-to/install.md +94 -0
  11. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/how-to/run-on-hpc.md +1 -1
  12. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/tutorials/getting-started.md +2 -2
  13. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/tutorials/tempo.md +1 -1
  14. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/tutorials/time-validation.md +1 -1
  15. {datasight-0.3.0 → datasight-0.5.0}/docs/index.md +1 -1
  16. {datasight-0.3.0 → datasight-0.5.0}/docs/project-developer/database-connections.md +42 -9
  17. {datasight-0.3.0 → datasight-0.5.0}/docs/project-developer/schema-description.md +33 -0
  18. {datasight-0.3.0 → datasight-0.5.0}/docs/project-developer/set-up-project.md +8 -3
  19. {datasight-0.3.0 → datasight-0.5.0}/docs/project-developer/verification.md +1 -1
  20. {datasight-0.3.0 → datasight-0.5.0}/docs/reference/cli.md +7 -4
  21. {datasight-0.3.0 → datasight-0.5.0}/docs/reference/configuration.md +15 -3
  22. {datasight-0.3.0 → datasight-0.5.0}/docs/tool-developer/contributing.md +2 -2
  23. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/app.css +2 -2
  24. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/LlmConfigForm.svelte +1 -1
  25. datasight-0.5.0/frontend/src/lib/components/ProjectHealth.svelte +267 -0
  26. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/SqlView.svelte +1 -1
  27. {datasight-0.3.0 → datasight-0.5.0}/mkdocs.yml +1 -0
  28. {datasight-0.3.0 → datasight-0.5.0}/pyproject.toml +5 -1
  29. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/agent.py +36 -0
  30. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/cli.py +179 -69
  31. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/config.py +21 -1
  32. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/dashboard_template.py +5 -7
  33. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/data_profile.py +1 -4
  34. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/demo_dsgrid_tempo.py +20 -48
  35. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/explore.py +154 -2
  36. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/generate.py +22 -6
  37. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/llm.py +53 -2
  38. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/prompts.py +21 -0
  39. datasight-0.5.0/src/datasight/runner.py +1052 -0
  40. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/schema.py +75 -16
  41. datasight-0.5.0/src/datasight/schema_links.py +376 -0
  42. datasight-0.5.0/src/datasight/schema_types.py +23 -0
  43. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/settings.py +25 -4
  44. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/templates/env.template +17 -2
  45. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/templates/global_env.template +3 -0
  46. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/web/app.py +29 -4
  47. datasight-0.5.0/src/datasight/web/static/assets/index-C27qGiRH.js +366 -0
  48. datasight-0.5.0/src/datasight/web/static/assets/index-PCYPGrnK.css +1 -0
  49. datasight-0.3.0/src/datasight/web/static/assets/plotly.min-8S0eIcYl.js → datasight-0.5.0/src/datasight/web/static/assets/plotly.min-BWjRNW4g.js +1 -1
  50. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/web/templates/index.html +2 -2
  51. {datasight-0.3.0 → datasight-0.5.0}/tests/conftest.py +1 -3
  52. {datasight-0.3.0 → datasight-0.5.0}/tests/test_cli_ask.py +2 -2
  53. {datasight-0.3.0 → datasight-0.5.0}/tests/test_cli_commands.py +2 -2
  54. {datasight-0.3.0 → datasight-0.5.0}/tests/test_cli_tools.py +8 -6
  55. datasight-0.5.0/tests/test_explore_spark.py +184 -0
  56. {datasight-0.3.0 → datasight-0.5.0}/tests/test_generate.py +87 -0
  57. {datasight-0.3.0 → datasight-0.5.0}/tests/test_generate_persist_db.py +51 -0
  58. {datasight-0.3.0 → datasight-0.5.0}/tests/test_llm.py +106 -0
  59. {datasight-0.3.0 → datasight-0.5.0}/tests/test_schema_extra.py +18 -0
  60. datasight-0.5.0/tests/test_schema_links.py +346 -0
  61. datasight-0.5.0/tests/test_spark_runner.py +537 -0
  62. {datasight-0.3.0 → datasight-0.5.0}/uv.lock +203 -2
  63. datasight-0.3.0/docs/end-user/how-to/install.md +0 -67
  64. datasight-0.3.0/frontend/src/lib/components/ProjectHealth.svelte +0 -160
  65. datasight-0.3.0/src/datasight/runner.py +0 -548
  66. datasight-0.3.0/src/datasight/web/static/assets/index-B9ADeqpL.js +0 -366
  67. datasight-0.3.0/src/datasight/web/static/assets/index-cOOWLGwC.css +0 -1
  68. {datasight-0.3.0 → datasight-0.5.0}/.github/workflows/gh-pages.yml +0 -0
  69. {datasight-0.3.0 → datasight-0.5.0}/.github/workflows/release.yml +0 -0
  70. {datasight-0.3.0 → datasight-0.5.0}/.gitignore +0 -0
  71. {datasight-0.3.0 → datasight-0.5.0}/.pre-commit-config.yaml +0 -0
  72. {datasight-0.3.0 → datasight-0.5.0}/DISCLAIMER.md +0 -0
  73. {datasight-0.3.0 → datasight-0.5.0}/LICENSE +0 -0
  74. {datasight-0.3.0 → datasight-0.5.0}/codecov.yml +0 -0
  75. {datasight-0.3.0 → datasight-0.5.0}/dashboard-filter-roadmap.md +0 -0
  76. {datasight-0.3.0 → datasight-0.5.0}/docs/assets/datasight-icon.svg +0 -0
  77. {datasight-0.3.0 → datasight-0.5.0}/docs/assets/screenshots/01-landing.png +0 -0
  78. {datasight-0.3.0 → datasight-0.5.0}/docs/assets/screenshots/02-chat-view.png +0 -0
  79. {datasight-0.3.0 → datasight-0.5.0}/docs/assets/screenshots/03-sql-editor.png +0 -0
  80. {datasight-0.3.0 → datasight-0.5.0}/docs/assets/screenshots/04-chart-result.png +0 -0
  81. {datasight-0.3.0 → datasight-0.5.0}/docs/assets/screenshots/05-dashboard.png +0 -0
  82. {datasight-0.3.0 → datasight-0.5.0}/docs/assets/screenshots/06-web-ui-reference.png +0 -0
  83. {datasight-0.3.0 → datasight-0.5.0}/docs/concepts/how-the-agent-works.md +0 -0
  84. {datasight-0.3.0 → datasight-0.5.0}/docs/concepts/sql-result-cache.md +0 -0
  85. {datasight-0.3.0 → datasight-0.5.0}/docs/concepts/users-and-roles.md +0 -0
  86. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/explanation/query-confidence.md +0 -0
  87. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/explanation/semantic-measures.md +0 -0
  88. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/explanation/trusting-ai-results.md +0 -0
  89. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/how-to/ask-from-cli.md +0 -0
  90. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/how-to/ask-in-web-ui.md +0 -0
  91. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/how-to/audit-data-quality.md +0 -0
  92. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/how-to/build-a-dashboard.md +0 -0
  93. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/how-to/configure-measures.md +0 -0
  94. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/how-to/connect-flight-sql.md +0 -0
  95. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/how-to/create-visualizations.md +0 -0
  96. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/how-to/declare-time-series.md +0 -0
  97. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/how-to/explore-files.md +0 -0
  98. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/how-to/review-query-log.md +0 -0
  99. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/how-to/save-and-rerun.md +0 -0
  100. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/how-to/save-dashboard-template.md +0 -0
  101. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/reference/keyboard-shortcuts.md +0 -0
  102. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/reference/query-confidence-toggles.md +0 -0
  103. {datasight-0.3.0 → datasight-0.5.0}/docs/end-user/reference/web-ui.md +0 -0
  104. {datasight-0.3.0 → datasight-0.5.0}/docs/project-developer/example-queries.md +0 -0
  105. {datasight-0.3.0 → datasight-0.5.0}/docs/project-developer/querying-files.md +0 -0
  106. {datasight-0.3.0 → datasight-0.5.0}/docs/project-developer/schema-config.md +0 -0
  107. {datasight-0.3.0 → datasight-0.5.0}/docs/stylesheets/extra.css +0 -0
  108. {datasight-0.3.0 → datasight-0.5.0}/docs/tool-developer/architecture.md +0 -0
  109. {datasight-0.3.0 → datasight-0.5.0}/frontend/e2e/screenshots.spec.ts +0 -0
  110. {datasight-0.3.0 → datasight-0.5.0}/frontend/e2e/smoke.spec.ts +0 -0
  111. {datasight-0.3.0 → datasight-0.5.0}/frontend/index.html +0 -0
  112. {datasight-0.3.0 → datasight-0.5.0}/frontend/package-lock.json +0 -0
  113. {datasight-0.3.0 → datasight-0.5.0}/frontend/package.json +0 -0
  114. {datasight-0.3.0 → datasight-0.5.0}/frontend/playwright.config.ts +0 -0
  115. {datasight-0.3.0 → datasight-0.5.0}/frontend/public/datasight-icon.svg +0 -0
  116. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/App.svelte +0 -0
  117. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/assets/datasight-icon.svg +0 -0
  118. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/api/chat.ts +0 -0
  119. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/api/client.ts +0 -0
  120. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/api/dashboard.ts +0 -0
  121. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/api/measures.ts +0 -0
  122. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/api/projects.ts +0 -0
  123. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/api/saved.ts +0 -0
  124. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/api/schema.ts +0 -0
  125. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/api/settings.ts +0 -0
  126. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/api/sql.ts +0 -0
  127. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/api/starters.ts +0 -0
  128. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/api/summarize.ts +0 -0
  129. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/AddFilesInput.svelte +0 -0
  130. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/BookmarksList.svelte +0 -0
  131. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/ChartResult.svelte +0 -0
  132. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/ChatInput.svelte +0 -0
  133. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/ChatView.svelte +0 -0
  134. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/ClarifyOptions.svelte +0 -0
  135. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/CodeEditor.svelte +0 -0
  136. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/CommandPalette.svelte +0 -0
  137. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/ConversationsList.svelte +0 -0
  138. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/DashboardCard.svelte +0 -0
  139. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/DashboardGrid.svelte +0 -0
  140. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/DashboardNote.svelte +0 -0
  141. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/DashboardSection.svelte +0 -0
  142. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/DashboardToolbar.svelte +0 -0
  143. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/DashboardView.svelte +0 -0
  144. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/DiscoveredFilesCard.svelte +0 -0
  145. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/ExploreCard.svelte +0 -0
  146. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/ExportBar.svelte +0 -0
  147. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/Header.svelte +0 -0
  148. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/LandingPage.svelte +0 -0
  149. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/MeasureEditor.svelte +0 -0
  150. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/MeasureEditorModal.svelte +0 -0
  151. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/MessageBubble.svelte +0 -0
  152. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/MessageList.svelte +0 -0
  153. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/PlotlyChart.svelte +0 -0
  154. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/ProjectCard.svelte +0 -0
  155. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/ProjectsPanel.svelte +0 -0
  156. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/QueriesList.svelte +0 -0
  157. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/QueryHistoryPanel.svelte +0 -0
  158. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/RecipesList.svelte +0 -0
  159. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/ReportsList.svelte +0 -0
  160. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/RunDetails.svelte +0 -0
  161. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/SaveProjectModal.svelte +0 -0
  162. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/SchemaInspector.svelte +0 -0
  163. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/SettingsPanel.svelte +0 -0
  164. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/ShortcutsModal.svelte +0 -0
  165. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/Sidebar.svelte +0 -0
  166. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/SidebarSection.svelte +0 -0
  167. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/SqlConfirmDialog.svelte +0 -0
  168. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/StarterGrid.svelte +0 -0
  169. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/StarterOverview.svelte +0 -0
  170. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/SuggestionButtons.svelte +0 -0
  171. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/TableResult.svelte +0 -0
  172. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/Toast.svelte +0 -0
  173. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/components/ToolIndicator.svelte +0 -0
  174. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/stores/chat.svelte.ts +0 -0
  175. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/stores/dashboard.svelte.ts +0 -0
  176. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/stores/palette.svelte.ts +0 -0
  177. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/stores/queries.svelte.ts +0 -0
  178. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/stores/schema.svelte.ts +0 -0
  179. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/stores/session.svelte.ts +0 -0
  180. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/stores/settings.svelte.ts +0 -0
  181. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/stores/sidebar.svelte.ts +0 -0
  182. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/stores/sql_editor.svelte.ts +0 -0
  183. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/stores/toast.svelte.ts +0 -0
  184. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/types/plotly-js-dist-min.d.ts +0 -0
  185. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/types/plotly.ts +0 -0
  186. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/utils/conversation.ts +0 -0
  187. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/utils/emacs-keys.ts +0 -0
  188. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/utils/format.ts +0 -0
  189. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/utils/markdown.ts +0 -0
  190. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/utils/search.ts +0 -0
  191. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/lib/utils/sql-completion.ts +0 -0
  192. {datasight-0.3.0 → datasight-0.5.0}/frontend/src/main.ts +0 -0
  193. {datasight-0.3.0 → datasight-0.5.0}/frontend/svelte.config.js +0 -0
  194. {datasight-0.3.0 → datasight-0.5.0}/frontend/tests/chat.test.ts +0 -0
  195. {datasight-0.3.0 → datasight-0.5.0}/frontend/tests/emacs-keys.test.ts +0 -0
  196. {datasight-0.3.0 → datasight-0.5.0}/frontend/tests/format.test.ts +0 -0
  197. {datasight-0.3.0 → datasight-0.5.0}/frontend/tests/search.test.ts +0 -0
  198. {datasight-0.3.0 → datasight-0.5.0}/frontend/tests/sql-completion.test.ts +0 -0
  199. {datasight-0.3.0 → datasight-0.5.0}/frontend/tests/stores.test.ts +0 -0
  200. {datasight-0.3.0 → datasight-0.5.0}/frontend/tests/summarize.test.ts +0 -0
  201. {datasight-0.3.0 → datasight-0.5.0}/frontend/tsconfig.json +0 -0
  202. {datasight-0.3.0 → datasight-0.5.0}/frontend/vite.config.ts +0 -0
  203. {datasight-0.3.0 → datasight-0.5.0}/frontend/vitest.config.ts +0 -0
  204. {datasight-0.3.0 → datasight-0.5.0}/scripts/build-frontend.sh +0 -0
  205. {datasight-0.3.0 → datasight-0.5.0}/scripts/generate_cli_reference.py +0 -0
  206. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/__init__.py +0 -0
  207. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/__main__.py +0 -0
  208. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/audit_report.py +0 -0
  209. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/chart.py +0 -0
  210. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/cost.py +0 -0
  211. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/demo.py +0 -0
  212. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/demo_time_validation.py +0 -0
  213. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/distribution.py +0 -0
  214. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/events.py +0 -0
  215. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/exceptions.py +0 -0
  216. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/export.py +0 -0
  217. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/identifiers.py +0 -0
  218. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/integrity.py +0 -0
  219. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/query_log.py +0 -0
  220. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/recent_projects.py +0 -0
  221. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/sql_validation.py +0 -0
  222. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/templates/html/audit_report.mustache +0 -0
  223. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/templates/html/chart.mustache +0 -0
  224. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/templates/html/export_dashboard.mustache +0 -0
  225. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/templates/html/export_session.mustache +0 -0
  226. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/templates/queries.yaml +0 -0
  227. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/templates/schema_description.md +0 -0
  228. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/templates/time_series.yaml +0 -0
  229. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/templates/validation.yaml +0 -0
  230. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/templating.py +0 -0
  231. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/validation.py +0 -0
  232. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/verify.py +0 -0
  233. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/web/__init__.py +0 -0
  234. {datasight-0.3.0 → datasight-0.5.0}/src/datasight/web/static/datasight-icon.svg +0 -0
  235. {datasight-0.3.0 → datasight-0.5.0}/tests/__init__.py +0 -0
  236. {datasight-0.3.0 → datasight-0.5.0}/tests/_env_helpers.py +0 -0
  237. {datasight-0.3.0 → datasight-0.5.0}/tests/test_agent.py +0 -0
  238. {datasight-0.3.0 → datasight-0.5.0}/tests/test_agent_extra.py +0 -0
  239. {datasight-0.3.0 → datasight-0.5.0}/tests/test_audit.py +0 -0
  240. {datasight-0.3.0 → datasight-0.5.0}/tests/test_audit_report_extra.py +0 -0
  241. {datasight-0.3.0 → datasight-0.5.0}/tests/test_caching_runner.py +0 -0
  242. {datasight-0.3.0 → datasight-0.5.0}/tests/test_cli_config.py +0 -0
  243. {datasight-0.3.0 → datasight-0.5.0}/tests/test_cli_tools_extra.py +0 -0
  244. {datasight-0.3.0 → datasight-0.5.0}/tests/test_config.py +0 -0
  245. {datasight-0.3.0 → datasight-0.5.0}/tests/test_config_extra.py +0 -0
  246. {datasight-0.3.0 → datasight-0.5.0}/tests/test_dashboard_template.py +0 -0
  247. {datasight-0.3.0 → datasight-0.5.0}/tests/test_data_profile_extra.py +0 -0
  248. {datasight-0.3.0 → datasight-0.5.0}/tests/test_distribution.py +0 -0
  249. {datasight-0.3.0 → datasight-0.5.0}/tests/test_docs_cli_reference.py +0 -0
  250. {datasight-0.3.0 → datasight-0.5.0}/tests/test_explore.py +0 -0
  251. {datasight-0.3.0 → datasight-0.5.0}/tests/test_explore_extra.py +0 -0
  252. {datasight-0.3.0 → datasight-0.5.0}/tests/test_export.py +0 -0
  253. {datasight-0.3.0 → datasight-0.5.0}/tests/test_export_extra.py +0 -0
  254. {datasight-0.3.0 → datasight-0.5.0}/tests/test_generate_extra.py +0 -0
  255. {datasight-0.3.0 → datasight-0.5.0}/tests/test_identifiers.py +0 -0
  256. {datasight-0.3.0 → datasight-0.5.0}/tests/test_integrity.py +0 -0
  257. {datasight-0.3.0 → datasight-0.5.0}/tests/test_prompts.py +0 -0
  258. {datasight-0.3.0 → datasight-0.5.0}/tests/test_query_log.py +0 -0
  259. {datasight-0.3.0 → datasight-0.5.0}/tests/test_recent_projects.py +0 -0
  260. {datasight-0.3.0 → datasight-0.5.0}/tests/test_reports.py +0 -0
  261. {datasight-0.3.0 → datasight-0.5.0}/tests/test_runner.py +0 -0
  262. {datasight-0.3.0 → datasight-0.5.0}/tests/test_runner_extra.py +0 -0
  263. {datasight-0.3.0 → datasight-0.5.0}/tests/test_schema.py +0 -0
  264. {datasight-0.3.0 → datasight-0.5.0}/tests/test_schema_config_load.py +0 -0
  265. {datasight-0.3.0 → datasight-0.5.0}/tests/test_schema_filter.py +0 -0
  266. {datasight-0.3.0 → datasight-0.5.0}/tests/test_settings.py +0 -0
  267. {datasight-0.3.0 → datasight-0.5.0}/tests/test_settings_extra.py +0 -0
  268. {datasight-0.3.0 → datasight-0.5.0}/tests/test_sql_validation.py +0 -0
  269. {datasight-0.3.0 → datasight-0.5.0}/tests/test_sql_validation_extra.py +0 -0
  270. {datasight-0.3.0 → datasight-0.5.0}/tests/test_time_series.py +0 -0
  271. {datasight-0.3.0 → datasight-0.5.0}/tests/test_validation.py +0 -0
  272. {datasight-0.3.0 → datasight-0.5.0}/tests/test_verify.py +0 -0
  273. {datasight-0.3.0 → datasight-0.5.0}/tests/test_web_app.py +0 -0
  274. {datasight-0.3.0 → datasight-0.5.0}/tests/test_web_app_extra.py +0 -0
  275. {datasight-0.3.0 → datasight-0.5.0}/tests/test_web_ui_smoke.py +0 -0
@@ -0,0 +1,34 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "uv"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ open-pull-requests-limit: 5
8
+ groups:
9
+ python-minor-patch:
10
+ update-types:
11
+ - "minor"
12
+ - "patch"
13
+
14
+ - package-ecosystem: "npm"
15
+ directory: "/frontend"
16
+ schedule:
17
+ interval: "weekly"
18
+ open-pull-requests-limit: 5
19
+ groups:
20
+ npm-minor-patch:
21
+ update-types:
22
+ - "minor"
23
+ - "patch"
24
+
25
+ - package-ecosystem: "github-actions"
26
+ directory: "/"
27
+ schedule:
28
+ interval: "weekly"
29
+ open-pull-requests-limit: 5
30
+ groups:
31
+ actions-minor-patch:
32
+ update-types:
33
+ - "minor"
34
+ - "patch"
@@ -109,3 +109,33 @@ jobs:
109
109
  name: datasight-tests
110
110
  fail_ci_if_error: false
111
111
  verbose: true
112
+
113
+ security:
114
+ runs-on: ubuntu-latest
115
+ steps:
116
+ - uses: actions/checkout@v4
117
+
118
+ - name: Install uv
119
+ uses: astral-sh/setup-uv@v4
120
+ with:
121
+ python-version: "3.13"
122
+ enable-cache: false
123
+
124
+ - name: Set up Node
125
+ uses: actions/setup-node@v4
126
+ with:
127
+ node-version: "22"
128
+ cache: npm
129
+ cache-dependency-path: frontend/package-lock.json
130
+
131
+ - name: Export Python dependencies
132
+ run: uv export --frozen --no-dev --no-emit-project --format requirements-txt -o requirements.txt
133
+
134
+ - name: Run pip-audit
135
+ uses: pypa/gh-action-pip-audit@v1.1.0
136
+ with:
137
+ inputs: requirements.txt
138
+
139
+ - name: Run npm audit
140
+ run: npm audit --omit=dev --audit-level=high
141
+ working-directory: frontend
@@ -0,0 +1,42 @@
1
+ name: CodeQL
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+ schedule:
9
+ - cron: "21 6 * * 1"
10
+
11
+ jobs:
12
+ analyze:
13
+ name: Analyze (${{ matrix.language }})
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ actions: read
17
+ contents: read
18
+ security-events: write
19
+
20
+ strategy:
21
+ fail-fast: false
22
+ matrix:
23
+ include:
24
+ - language: python
25
+ build-mode: none
26
+ - language: javascript-typescript
27
+ build-mode: none
28
+
29
+ steps:
30
+ - uses: actions/checkout@v4
31
+
32
+ - name: Initialize CodeQL
33
+ uses: github/codeql-action/init@v3
34
+ with:
35
+ languages: ${{ matrix.language }}
36
+ build-mode: ${{ matrix.build-mode }}
37
+ queries: security-and-quality
38
+
39
+ - name: Perform CodeQL Analysis
40
+ uses: github/codeql-action/analyze@v3
41
+ with:
42
+ category: "/language:${{ matrix.language }}"
@@ -134,7 +134,7 @@ Docs use **Zensical**. Key details:
134
134
  ## Testing
135
135
 
136
136
  - **pytest + pytest-asyncio** with `asyncio_mode = "auto"`
137
- - **Integration marker**: tests marked `integration` require a running local Ollama instance with `qwen3:8b` available and are excluded in CI with `pytest -m "not integration"`. New tests that call a live LLM provider must be marked `integration`; prefer fake/stub LLM clients for deterministic unit tests.
137
+ - **Integration marker**: tests marked `integration` require a running local Ollama instance with `qwen2.5:7b` available and are excluded in CI with `pytest -m "not integration"`. New tests that call a live LLM provider must be marked `integration`; prefer fake/stub LLM clients for deterministic unit tests.
138
138
  - **Vitest** for frontend unit tests (`frontend/tests/`). Run with `cd frontend && npm test`.
139
139
  - **Playwright** for frontend E2E tests (`frontend/e2e/`). Requires `datasight run` to be running. Run with `cd frontend && npm run test:e2e`.
140
140
  - **Web UI smoke tests** live in `tests/test_web_ui_smoke.py` and exercise the rendered FastAPI app without a browser build step
@@ -140,7 +140,7 @@ artifacts, so do not commit bundled frontend output.
140
140
  ## Testing
141
141
 
142
142
  - **pytest + pytest-asyncio** with `asyncio_mode = "auto"`
143
- - **Integration marker**: tests marked `integration` require a running local Ollama instance with `qwen3:8b` available and are excluded in CI with `pytest -m "not integration"`. New tests that call a live LLM provider must be marked `integration`; prefer fake/stub LLM clients for deterministic unit tests.
143
+ - **Integration marker**: tests marked `integration` require a running local Ollama instance with `qwen2.5:7b` available and are excluded in CI with `pytest -m "not integration"`. New tests that call a live LLM provider must be marked `integration`; prefer fake/stub LLM clients for deterministic unit tests.
144
144
  - **Vitest** for frontend unit tests (`frontend/tests/`). Run with `cd frontend && npm test`.
145
145
  - **Playwright** for frontend E2E tests (`frontend/e2e/`). Requires `datasight run` to be running. Run with `cd frontend && npm run test:e2e`.
146
146
  - **Web UI smoke tests** live in `tests/test_web_ui_smoke.py` and exercise the rendered FastAPI app without a browser build step
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datasight
3
- Version: 0.3.0
3
+ Version: 0.5.0
4
4
  Summary: AI-powered data exploration with natural language
5
5
  Project-URL: Repository, https://github.com/dsgrid/datasight
6
6
  Project-URL: Documentation, https://dsgrid.github.io/datasight/
@@ -15,6 +15,7 @@ Requires-Dist: chevron<1,>=0.14
15
15
  Requires-Dist: click<9,>=8.0
16
16
  Requires-Dist: duckdb<2,>=1.0
17
17
  Requires-Dist: fastapi<1,>=0.110
18
+ Requires-Dist: httpx<1,>=0.27
18
19
  Requires-Dist: loguru<1,>=0.7
19
20
  Requires-Dist: openai<3,>=2
20
21
  Requires-Dist: pandas<4,>=2.0
@@ -38,6 +39,8 @@ Requires-Dist: ty>=0.0.26; extra == 'dev'
38
39
  Requires-Dist: zensical>=0.0.31; extra == 'dev'
39
40
  Provides-Extra: export
40
41
  Requires-Dist: kaleido<1,>=0.2; extra == 'export'
42
+ Provides-Extra: spark
43
+ Requires-Dist: pyspark[connect]<5,>=4.0; extra == 'spark'
41
44
  Description-Content-Type: text/markdown
42
45
 
43
46
  # datasight
@@ -54,13 +57,14 @@ where you can ask questions in natural language. The agent writes SQL, runs
54
57
  queries, and generates interactive Plotly visualizations.
55
58
 
56
59
  Supports **DuckDB**, **PostgreSQL**, **SQLite**, and **Flight SQL** databases.
57
- Supports **Anthropic Claude** (default), **GitHub Models** (open source),
58
- and **Ollama** (local) as LLM backends.
60
+ Also queries local **CSV** and **Parquet** files directly — no database setup
61
+ required. Supports **Anthropic Claude** (default), **GitHub Models** (open
62
+ source), and **Ollama** (local) as LLM backends.
59
63
 
60
64
  ## Quick start
61
65
 
62
66
  ```bash
63
- uv tool install "datasight @ git+https://github.com/dsgrid/datasight.git"
67
+ uv tool install datasight
64
68
 
65
69
  # Create a new project
66
70
  mkdir my-project && cd my-project
@@ -76,6 +80,20 @@ datasight run
76
80
 
77
81
  Open http://localhost:8084 and start asking questions.
78
82
 
83
+ ### Explore CSV or Parquet files with no setup
84
+
85
+ ```bash
86
+ # Launch the web UI with no project, then paste a file or directory path
87
+ # into "Explore Files" to create views automatically
88
+ datasight run
89
+
90
+ # Or inspect a file from the command line (schema, row count, column stats)
91
+ datasight inspect generation.parquet
92
+
93
+ # Or build a persistent project from CSV/Parquet inputs
94
+ datasight generate generation.csv plants.csv --db-path grid.duckdb
95
+ ```
96
+
79
97
  Or ask from the command line without starting a server:
80
98
 
81
99
  ```bash
@@ -91,6 +109,7 @@ datasight ask --file questions.txt --output-dir batch-output
91
109
  - **Natural language queries** — ask questions in English, get SQL + results
92
110
  - **Interactive charts** — Plotly visualizations with chart-type switching
93
111
  - **Multiple databases** — DuckDB, PostgreSQL, SQLite, and Flight SQL
112
+ - **Query files directly** — point at a local CSV or Parquet file (or directory) and start asking questions; datasight creates DuckDB views on the fly
94
113
  - **Headless CLI** — `datasight ask` runs queries without a web server
95
114
  - **Deterministic CLI workflows** — profile, quality, dimension, trend, and recipe commands that do not require an LLM
96
115
  - **Schema browser** — sidebar with tables, columns, and example queries
@@ -112,7 +131,7 @@ frontend built with Vite. It supports multiple LLM backends — Anthropic
112
131
  ```
113
132
  datasight run / datasight ask / datasight profile / datasight quality
114
133
  → LLM provider (Anthropic / OpenAI / GitHub Models / Ollama)
115
- → DuckDB / PostgreSQL / SQLite / Flight SQL
134
+ → DuckDB / PostgreSQL / SQLite / Flight SQL (or CSV/Parquet via DuckDB views)
116
135
  → Plotly chart generator
117
136
  → Web UI (SSE streaming) or CLI output
118
137
  ```
@@ -155,7 +174,7 @@ Generated web assets under `src/datasight/web/static/` and
155
174
  checkout when you want FastAPI to serve the production UI.
156
175
 
157
176
  Ollama-backed CLI tests are marked `integration` because they require a running
158
- local Ollama server with the `qwen3:8b` model available. CI runs `pytest -m "not
177
+ local Ollama server with the `qwen2.5:7b` model available. CI runs `pytest -m "not
159
178
  integration"`; run `pytest -m integration` locally when you want to exercise the
160
179
  live LLM path.
161
180
 
@@ -12,13 +12,14 @@ where you can ask questions in natural language. The agent writes SQL, runs
12
12
  queries, and generates interactive Plotly visualizations.
13
13
 
14
14
  Supports **DuckDB**, **PostgreSQL**, **SQLite**, and **Flight SQL** databases.
15
- Supports **Anthropic Claude** (default), **GitHub Models** (open source),
16
- and **Ollama** (local) as LLM backends.
15
+ Also queries local **CSV** and **Parquet** files directly — no database setup
16
+ required. Supports **Anthropic Claude** (default), **GitHub Models** (open
17
+ source), and **Ollama** (local) as LLM backends.
17
18
 
18
19
  ## Quick start
19
20
 
20
21
  ```bash
21
- uv tool install "datasight @ git+https://github.com/dsgrid/datasight.git"
22
+ uv tool install datasight
22
23
 
23
24
  # Create a new project
24
25
  mkdir my-project && cd my-project
@@ -34,6 +35,20 @@ datasight run
34
35
 
35
36
  Open http://localhost:8084 and start asking questions.
36
37
 
38
+ ### Explore CSV or Parquet files with no setup
39
+
40
+ ```bash
41
+ # Launch the web UI with no project, then paste a file or directory path
42
+ # into "Explore Files" to create views automatically
43
+ datasight run
44
+
45
+ # Or inspect a file from the command line (schema, row count, column stats)
46
+ datasight inspect generation.parquet
47
+
48
+ # Or build a persistent project from CSV/Parquet inputs
49
+ datasight generate generation.csv plants.csv --db-path grid.duckdb
50
+ ```
51
+
37
52
  Or ask from the command line without starting a server:
38
53
 
39
54
  ```bash
@@ -49,6 +64,7 @@ datasight ask --file questions.txt --output-dir batch-output
49
64
  - **Natural language queries** — ask questions in English, get SQL + results
50
65
  - **Interactive charts** — Plotly visualizations with chart-type switching
51
66
  - **Multiple databases** — DuckDB, PostgreSQL, SQLite, and Flight SQL
67
+ - **Query files directly** — point at a local CSV or Parquet file (or directory) and start asking questions; datasight creates DuckDB views on the fly
52
68
  - **Headless CLI** — `datasight ask` runs queries without a web server
53
69
  - **Deterministic CLI workflows** — profile, quality, dimension, trend, and recipe commands that do not require an LLM
54
70
  - **Schema browser** — sidebar with tables, columns, and example queries
@@ -70,7 +86,7 @@ frontend built with Vite. It supports multiple LLM backends — Anthropic
70
86
  ```
71
87
  datasight run / datasight ask / datasight profile / datasight quality
72
88
  → LLM provider (Anthropic / OpenAI / GitHub Models / Ollama)
73
- → DuckDB / PostgreSQL / SQLite / Flight SQL
89
+ → DuckDB / PostgreSQL / SQLite / Flight SQL (or CSV/Parquet via DuckDB views)
74
90
  → Plotly chart generator
75
91
  → Web UI (SSE streaming) or CLI output
76
92
  ```
@@ -113,7 +129,7 @@ Generated web assets under `src/datasight/web/static/` and
113
129
  checkout when you want FastAPI to serve the production UI.
114
130
 
115
131
  Ollama-backed CLI tests are marked `integration` because they require a running
116
- local Ollama server with the `qwen3:8b` model available. CI runs `pytest -m "not
132
+ local Ollama server with the `qwen2.5:7b` model available. CI runs `pytest -m "not
117
133
  integration"`; run `pytest -m integration` locally when you want to exercise the
118
134
  live LLM path.
119
135
 
@@ -9,7 +9,7 @@ This page helps you pick one without reading every provider's pricing page.
9
9
  | Your situation | Start with |
10
10
  |---|---|
11
11
  | Trying datasight for the first time, non-sensitive data | **Anthropic Claude Haiku** or **OpenAI GPT-4o-mini** |
12
- | Want zero cost, don't mind rate limits | **GitHub Models** (free tier) |
12
+ | Want zero cost, don't mind rate limits | **GitHub Models** (free tier, recommended over Ollama for most users) |
13
13
  | Already have an OpenAI key | **OpenAI** (`gpt-4o-mini` or `gpt-4.1-mini`) |
14
14
  | Data is sensitive and must not leave your network | **Local Ollama** (laptop or HPC GPU node) |
15
15
  | Data is sensitive but you have a secure hosted endpoint | **Anthropic on Bedrock** or **Azure OpenAI** (custom `base_url`) |
@@ -93,9 +93,11 @@ So a Llama 3.1 8B model fits in ~5 GB VRAM at 4-bit, a 70B model needs
93
93
  | NVIDIA laptop GPU, 8 GB VRAM | 7–8B at 4-bit |
94
94
  | NVIDIA laptop GPU, 16 GB VRAM | 13B at 4-bit |
95
95
 
96
- For datasight's SQL-generation workload, an 8B model (e.g. Llama 3.1 8B
97
- or Qwen 2.5 Coder 7B) is a reasonable floor. Smaller models often
98
- struggle with realistic schemas.
96
+ For datasight's SQL-generation workload, `qwen2.5:7b` is the recommended
97
+ starting point for CLI queries (`datasight ask`). For the web UI with
98
+ visualizations, step up to `qwen2.5:14b` — the 7B model struggles with
99
+ the more complex multi-step agent interactions required for chart
100
+ generation. Smaller models often struggle with realistic schemas.
99
101
 
100
102
  ### On an HPC GPU node
101
103
 
@@ -120,7 +122,9 @@ your laptop browser).
120
122
  ### When hosted beats local
121
123
 
122
124
  A hosted cheap-tier call (Haiku or GPT-4o-mini) often produces better
123
- SQL than a locally-run 8B model, at a fraction of a cent. Don't reach
125
+ SQL than a locally-run 8B model, at a fraction of a cent. GitHub Models
126
+ offers a free tier that handles the full datasight feature set —
127
+ including visualizations — better than most local models. Don't reach
124
128
  for local models just to avoid hosted costs — reach for them when data
125
129
  sensitivity or offline use requires it.
126
130
 
@@ -161,9 +165,9 @@ OPENAI_API_KEY=sk-...
161
165
  LLM_PROVIDER=github
162
166
  GITHUB_TOKEN=ghp-...
163
167
 
164
- # Ollama (local)
168
+ # Ollama (local — use for cost/data-security reasons)
165
169
  LLM_PROVIDER=ollama
166
- OLLAMA_MODEL=llama3.1:8b
170
+ OLLAMA_MODEL=qwen2.5:7b # CLI queries; use qwen2.5:14b for web UI with viz
167
171
  ```
168
172
 
169
173
  A secure hosted endpoint (Bedrock, Azure OpenAI, corporate proxy) is