briefing 0.7.0__tar.gz → 0.8.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 (323) hide show
  1. {briefing-0.7.0 → briefing-0.8.0}/CHANGELOG.md +111 -1
  2. briefing-0.8.0/PKG-INFO +215 -0
  3. briefing-0.8.0/README.md +152 -0
  4. {briefing-0.7.0 → briefing-0.8.0}/pyproject.toml +4 -2
  5. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/__init__.py +4 -1
  6. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/_cli.py +7 -0
  7. briefing-0.8.0/src/briefing/_digest.py +171 -0
  8. briefing-0.8.0/src/briefing/_experimental.py +39 -0
  9. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/_run.py +12 -2
  10. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/_scaffold.py +14 -16
  11. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/_version.py +1 -1
  12. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/blocks/base.py +2 -0
  13. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/blocks/layout.py +8 -4
  14. briefing-0.8.0/src/briefing/datasets.py +464 -0
  15. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/deck/__init__.py +2 -1
  16. briefing-0.8.0/src/briefing/deck/_convert.py +178 -0
  17. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/email.py +4 -1
  18. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/export/_render.py +1 -4
  19. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/lab/_blocks.py +139 -51
  20. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/lab/_render_calendar.py +0 -20
  21. briefing-0.8.0/src/briefing/lab/_render_datadive.py +207 -0
  22. briefing-0.8.0/src/briefing/lab/static/lab.js +1271 -0
  23. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/reference.md +10 -4
  24. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/html.py +14 -6
  25. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/pack.py +7 -3
  26. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/registry.py +10 -1
  27. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/schema/v1.json +73 -36
  28. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/spec/_model.py +3 -0
  29. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/spec/_reference.py +2 -0
  30. briefing-0.8.0/src/briefing/static/copy-embed.css +89 -0
  31. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/static/copy-embed.js +16 -2
  32. briefing-0.8.0/src/briefing/static/export.js +197 -0
  33. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/static/report.css +220 -7
  34. {briefing-0.7.0 → briefing-0.8.0}/tests/golden.py +2 -1
  35. {briefing-0.7.0 → briefing-0.8.0}/tests/scenarios.py +11 -0
  36. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/alert.html +1 -1
  37. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/attachment.html +1 -1
  38. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/banner.html +1 -1
  39. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/bignumber.html +1 -1
  40. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/calendar-diverging.html +1 -1
  41. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/calendar.html +1 -1
  42. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/card.html +1 -1
  43. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/chips.html +1 -1
  44. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/code.html +1 -1
  45. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/copy-embed.html +4 -4
  46. briefing-0.8.0/tests/snapshots/golden/datadive-df_all_null.html +47 -0
  47. briefing-0.8.0/tests/snapshots/golden/datadive-df_constant.html +47 -0
  48. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/datadive-df_empty.html +3 -2
  49. briefing-0.8.0/tests/snapshots/golden/datadive-df_mixed.html +47 -0
  50. briefing-0.8.0/tests/snapshots/golden/datadive-df_single_row.html +47 -0
  51. briefing-0.8.0/tests/snapshots/golden/datadive-infinite.html +47 -0
  52. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/dataprofile-df_all_null.html +1 -1
  53. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/dataprofile-df_constant.html +1 -1
  54. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/dataprofile-df_empty.html +1 -1
  55. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/dataprofile-df_mixed.html +1 -1
  56. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/dataprofile-df_single_row.html +1 -1
  57. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/dataprofile-infinite.html +1 -1
  58. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/datatable-big.html +1 -1
  59. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/datatable-df_all_null.html +1 -1
  60. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/datatable-df_constant.html +1 -1
  61. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/datatable-df_empty.html +1 -1
  62. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/datatable-df_mixed.html +1 -1
  63. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/datatable-df_single_row.html +1 -1
  64. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/datatable-formats.html +1 -1
  65. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/datatable-infinite.html +1 -1
  66. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/everything.html +4 -3
  67. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/export-menu.html +2 -2
  68. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/formula.html +1 -1
  69. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/group-fit.html +1 -1
  70. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/group-widths.html +1 -1
  71. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/header.html +1 -1
  72. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/html.html +1 -1
  73. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/image.html +1 -1
  74. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/legend.html +1 -1
  75. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/links.html +1 -1
  76. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/nested-layout.html +1 -1
  77. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/pages.html +1 -1
  78. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/plot-altair.html +1 -1
  79. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/plot-matplotlib.html +1 -1
  80. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/plot-plotly.html +1 -1
  81. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/select-dropdown.html +1 -1
  82. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/select-tabs.html +1 -1
  83. briefing-0.8.0/tests/snapshots/golden/snapshot.html +434 -0
  84. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/tab-style.html +1 -1
  85. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/table-df_all_null.html +1 -1
  86. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/table-df_constant.html +1 -1
  87. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/table-df_empty.html +1 -1
  88. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/table-df_mixed.html +1 -1
  89. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/table-df_single_row.html +1 -1
  90. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/table-infinite.html +1 -1
  91. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/table-styler.html +1 -1
  92. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/text-markdown-table.html +1 -1
  93. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/text.html +1 -1
  94. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/time-heatmap-months.html +1 -1
  95. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/time-heatmap.html +1 -1
  96. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/toggle.html +1 -1
  97. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/two-matplotlib-plots.html +1 -1
  98. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden/two-table-stylers.html +1 -1
  99. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden_deck/basic.html +1 -1
  100. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden_deck/dark-theme.html +1 -1
  101. briefing-0.8.0/tests/snapshots/golden_deck/from-report.html +58 -0
  102. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden_deck/plotly.html +1 -1
  103. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/golden_deck/tabs.html +1 -1
  104. briefing-0.8.0/tests/snapshots/golden_email/from-report.html +4 -0
  105. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/conftest.py +10 -1
  106. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_big_tables.py +2 -2
  107. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_copy_embed.py +3 -3
  108. briefing-0.8.0/tests/test_browser/test_datadive.py +545 -0
  109. briefing-0.8.0/tests/test_browser/test_docs_examples.py +48 -0
  110. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_export_image.py +1 -1
  111. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_roots.py +2 -1
  112. briefing-0.8.0/tests/test_browser/test_snapshot.py +215 -0
  113. {briefing-0.7.0 → briefing-0.8.0}/tests/test_cli.py +17 -0
  114. {briefing-0.7.0 → briefing-0.8.0}/tests/test_copy_embed.py +2 -1
  115. briefing-0.8.0/tests/test_datasets.py +206 -0
  116. briefing-0.8.0/tests/test_deck/test_from_report.py +138 -0
  117. {briefing-0.7.0 → briefing-0.8.0}/tests/test_deck/test_golden.py +16 -0
  118. {briefing-0.7.0 → briefing-0.8.0}/tests/test_deprecations.py +9 -5
  119. briefing-0.8.0/tests/test_email_from_report.py +170 -0
  120. briefing-0.8.0/tests/test_experimental.py +38 -0
  121. {briefing-0.7.0 → briefing-0.8.0}/tests/test_lab/test_calendar.py +5 -7
  122. briefing-0.8.0/tests/test_lab/test_datadive.py +415 -0
  123. {briefing-0.7.0 → briefing-0.8.0}/tests/test_lab/test_timeheatmap.py +1 -2
  124. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_export_menu.py +47 -0
  125. {briefing-0.7.0 → briefing-0.8.0}/tests/test_run_and_scaffold.py +14 -0
  126. {briefing-0.7.0 → briefing-0.8.0}/tests/test_scale.py +3 -3
  127. briefing-0.7.0/PKG-INFO +0 -146
  128. briefing-0.7.0/README.md +0 -84
  129. briefing-0.7.0/src/briefing/lab/_render_datadive.py +0 -160
  130. briefing-0.7.0/src/briefing/lab/static/lab.js +0 -380
  131. briefing-0.7.0/src/briefing/static/copy-embed.css +0 -72
  132. briefing-0.7.0/src/briefing/static/export.js +0 -87
  133. briefing-0.7.0/tests/snapshots/golden/datadive-df_all_null.html +0 -46
  134. briefing-0.7.0/tests/snapshots/golden/datadive-df_constant.html +0 -46
  135. briefing-0.7.0/tests/snapshots/golden/datadive-df_mixed.html +0 -46
  136. briefing-0.7.0/tests/snapshots/golden/datadive-df_single_row.html +0 -46
  137. briefing-0.7.0/tests/snapshots/golden/datadive-infinite.html +0 -46
  138. briefing-0.7.0/tests/test_browser/test_datadive.py +0 -19
  139. briefing-0.7.0/tests/test_lab/test_datadive.py +0 -266
  140. {briefing-0.7.0 → briefing-0.8.0}/.gitignore +0 -0
  141. {briefing-0.7.0 → briefing-0.8.0}/LICENSE +0 -0
  142. {briefing-0.7.0 → briefing-0.8.0}/noxfile.py +0 -0
  143. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/__main__.py +0 -0
  144. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/_colors.py +0 -0
  145. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/_error.py +0 -0
  146. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/_frames.py +0 -0
  147. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/_markdown_first.py +0 -0
  148. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/_preview.py +0 -0
  149. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/_prose.py +0 -0
  150. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/blocks/__init__.py +0 -0
  151. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/blocks/_pictures.py +0 -0
  152. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/blocks/asset.py +0 -0
  153. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/blocks/banner.py +0 -0
  154. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/blocks/chips.py +0 -0
  155. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/blocks/files.py +0 -0
  156. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/blocks/header.py +0 -0
  157. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/blocks/text.py +0 -0
  158. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/color.py +0 -0
  159. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/deck/_blocks.py +0 -0
  160. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/deck/_export.py +0 -0
  161. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/deck/_render.py +0 -0
  162. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/diff.py +0 -0
  163. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/export/__init__.py +0 -0
  164. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/export/_image.py +0 -0
  165. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/export/_pdf.py +0 -0
  166. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/fmt.py +0 -0
  167. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/lab/__init__.py +0 -0
  168. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/lab/_render_profile.py +0 -0
  169. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/lab/_render_timeheatmap.py +0 -0
  170. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/lab/static/calendar.js +0 -0
  171. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/py.typed +0 -0
  172. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/__init__.py +0 -0
  173. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/copy_embed.py +0 -0
  174. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/css_scope.py +0 -0
  175. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/formatting.py +0 -0
  176. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/formula.py +0 -0
  177. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/fragment.py +0 -0
  178. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/header.py +0 -0
  179. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/inline.py +0 -0
  180. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/links.py +0 -0
  181. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/markup.py +0 -0
  182. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/normalize.py +0 -0
  183. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/plot.py +0 -0
  184. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/script_json.py +0 -0
  185. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/size.py +0 -0
  186. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/renderers/table.py +0 -0
  187. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/scale.py +0 -0
  188. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/spec/__init__.py +0 -0
  189. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/spec/__main__.py +0 -0
  190. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/spec/_check.py +0 -0
  191. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/spec/_convert.py +0 -0
  192. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/spec/_data.py +0 -0
  193. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/spec/_diagnostic.py +0 -0
  194. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/spec/_validate.py +0 -0
  195. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/static/deck.css +0 -0
  196. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/static/deck.js +0 -0
  197. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/static/embed-reset.css +0 -0
  198. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/static/embed.css +0 -0
  199. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/static/export.css +0 -0
  200. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/static/report.js +0 -0
  201. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/static/unpack.js +0 -0
  202. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/templates/deck.html.j2 +0 -0
  203. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/templates/fragment.html.j2 +0 -0
  204. {briefing-0.7.0 → briefing-0.8.0}/src/briefing/templates/report.html.j2 +0 -0
  205. {briefing-0.7.0 → briefing-0.8.0}/tests/__init__.py +0 -0
  206. {briefing-0.7.0 → briefing-0.8.0}/tests/banner_images.py +0 -0
  207. {briefing-0.7.0 → briefing-0.8.0}/tests/compat_reports.py +0 -0
  208. {briefing-0.7.0 → briefing-0.8.0}/tests/conftest.py +0 -0
  209. {briefing-0.7.0 → briefing-0.8.0}/tests/contract.py +0 -0
  210. {briefing-0.7.0 → briefing-0.8.0}/tests/html_helpers.py +0 -0
  211. {briefing-0.7.0 → briefing-0.8.0}/tests/image_helpers.py +0 -0
  212. {briefing-0.7.0 → briefing-0.8.0}/tests/pdf_reader.py +0 -0
  213. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/compat_0_1_2/blocks.body.html +0 -0
  214. {briefing-0.7.0 → briefing-0.8.0}/tests/snapshots/compat_0_1_2/pages.body.html +0 -0
  215. {briefing-0.7.0 → briefing-0.8.0}/tests/strategies.py +0 -0
  216. {briefing-0.7.0 → briefing-0.8.0}/tests/test_blocks/__init__.py +0 -0
  217. {briefing-0.7.0 → briefing-0.8.0}/tests/test_blocks/test_banner.py +0 -0
  218. {briefing-0.7.0 → briefing-0.8.0}/tests/test_blocks/test_base.py +0 -0
  219. {briefing-0.7.0 → briefing-0.8.0}/tests/test_blocks/test_bignumber_trend.py +0 -0
  220. {briefing-0.7.0 → briefing-0.8.0}/tests/test_blocks/test_card.py +0 -0
  221. {briefing-0.7.0 → briefing-0.8.0}/tests/test_blocks/test_chips.py +0 -0
  222. {briefing-0.7.0 → briefing-0.8.0}/tests/test_blocks/test_files.py +0 -0
  223. {briefing-0.7.0 → briefing-0.8.0}/tests/test_blocks/test_header.py +0 -0
  224. {briefing-0.7.0 → briefing-0.8.0}/tests/test_blocks/test_layout.py +0 -0
  225. {briefing-0.7.0 → briefing-0.8.0}/tests/test_blocks/test_lighter_images.py +0 -0
  226. {briefing-0.7.0 → briefing-0.8.0}/tests/test_blocks/test_tab_style.py +0 -0
  227. {briefing-0.7.0 → briefing-0.8.0}/tests/test_blocks/test_text.py +0 -0
  228. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/__init__.py +0 -0
  229. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_alert_colours.py +0 -0
  230. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_banner.py +0 -0
  231. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_bignumber.py +0 -0
  232. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_calendar.py +0 -0
  233. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_card.py +0 -0
  234. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_chips.py +0 -0
  235. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_cli_export.py +0 -0
  236. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_code.py +0 -0
  237. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_datatable.py +0 -0
  238. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_deck.py +0 -0
  239. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_deck_export.py +0 -0
  240. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_dropdown_a11y.py +0 -0
  241. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_export_menu.py +0 -0
  242. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_export_pdf.py +0 -0
  243. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_files.py +0 -0
  244. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_formula.py +0 -0
  245. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_fragments.py +0 -0
  246. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_group_breakpoints.py +0 -0
  247. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_header.py +0 -0
  248. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_layout.py +0 -0
  249. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_links.py +0 -0
  250. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_notebook.py +0 -0
  251. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_overflow.py +0 -0
  252. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_packed_runtimes.py +0 -0
  253. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_plots.py +0 -0
  254. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_print.py +0 -0
  255. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_spacing.py +0 -0
  256. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_tab_style.py +0 -0
  257. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_table_cells.py +0 -0
  258. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_table_csv.py +0 -0
  259. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_table_wrap.py +0 -0
  260. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_text.py +0 -0
  261. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_theme_tables.py +0 -0
  262. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_timeheatmap.py +0 -0
  263. {briefing-0.7.0 → briefing-0.8.0}/tests/test_browser/test_toggle_theme.py +0 -0
  264. {briefing-0.7.0 → briefing-0.8.0}/tests/test_chart_themes.py +0 -0
  265. {briefing-0.7.0 → briefing-0.8.0}/tests/test_color_check.py +0 -0
  266. {briefing-0.7.0 → briefing-0.8.0}/tests/test_compat.py +0 -0
  267. {briefing-0.7.0 → briefing-0.8.0}/tests/test_contract.py +0 -0
  268. {briefing-0.7.0 → briefing-0.8.0}/tests/test_deck/__init__.py +0 -0
  269. {briefing-0.7.0 → briefing-0.8.0}/tests/test_deck/helpers.py +0 -0
  270. {briefing-0.7.0 → briefing-0.8.0}/tests/test_deck/test_contract.py +0 -0
  271. {briefing-0.7.0 → briefing-0.8.0}/tests/test_deck/test_objects.py +0 -0
  272. {briefing-0.7.0 → briefing-0.8.0}/tests/test_deck/test_render.py +0 -0
  273. {briefing-0.7.0 → briefing-0.8.0}/tests/test_deck/test_spec.py +0 -0
  274. {briefing-0.7.0 → briefing-0.8.0}/tests/test_diff.py +0 -0
  275. {briefing-0.7.0 → briefing-0.8.0}/tests/test_docs_gallery.py +0 -0
  276. {briefing-0.7.0 → briefing-0.8.0}/tests/test_docstrings.py +0 -0
  277. {briefing-0.7.0 → briefing-0.8.0}/tests/test_email.py +0 -0
  278. {briefing-0.7.0 → briefing-0.8.0}/tests/test_export.py +0 -0
  279. {briefing-0.7.0 → briefing-0.8.0}/tests/test_fragments.py +0 -0
  280. {briefing-0.7.0 → briefing-0.8.0}/tests/test_frames.py +0 -0
  281. {briefing-0.7.0 → briefing-0.8.0}/tests/test_golden.py +0 -0
  282. {briefing-0.7.0 → briefing-0.8.0}/tests/test_install.py +0 -0
  283. {briefing-0.7.0 → briefing-0.8.0}/tests/test_lab/__init__.py +0 -0
  284. {briefing-0.7.0 → briefing-0.8.0}/tests/test_lab/test_lab_boundary.py +0 -0
  285. {briefing-0.7.0 → briefing-0.8.0}/tests/test_lab/test_legend.py +0 -0
  286. {briefing-0.7.0 → briefing-0.8.0}/tests/test_lab/test_profile.py +0 -0
  287. {briefing-0.7.0 → briefing-0.8.0}/tests/test_markdown_first.py +0 -0
  288. {briefing-0.7.0 → briefing-0.8.0}/tests/test_no_viz_deps.py +0 -0
  289. {briefing-0.7.0 → briefing-0.8.0}/tests/test_pdf_reader.py +0 -0
  290. {briefing-0.7.0 → briefing-0.8.0}/tests/test_preview.py +0 -0
  291. {briefing-0.7.0 → briefing-0.8.0}/tests/test_properties.py +0 -0
  292. {briefing-0.7.0 → briefing-0.8.0}/tests/test_prose.py +0 -0
  293. {briefing-0.7.0 → briefing-0.8.0}/tests/test_readme.py +0 -0
  294. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/__init__.py +0 -0
  295. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_big_tables.py +0 -0
  296. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_css_scope.py +0 -0
  297. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_files.py +0 -0
  298. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_formatting.py +0 -0
  299. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_formula.py +0 -0
  300. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_html.py +0 -0
  301. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_inline.py +0 -0
  302. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_links.py +0 -0
  303. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_markup.py +0 -0
  304. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_normalize.py +0 -0
  305. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_plot.py +0 -0
  306. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_registry.py +0 -0
  307. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_reproducible.py +0 -0
  308. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_size.py +0 -0
  309. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_table.py +0 -0
  310. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_table_cells.py +0 -0
  311. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_table_csv.py +0 -0
  312. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_table_wrap.py +0 -0
  313. {briefing-0.7.0 → briefing-0.8.0}/tests/test_renderers/test_theme_colours.py +0 -0
  314. {briefing-0.7.0 → briefing-0.8.0}/tests/test_spec/__init__.py +0 -0
  315. {briefing-0.7.0 → briefing-0.8.0}/tests/test_spec/test_from_spec.py +0 -0
  316. {briefing-0.7.0 → briefing-0.8.0}/tests/test_spec/test_reference.py +0 -0
  317. {briefing-0.7.0 → briefing-0.8.0}/tests/test_spec/test_round_trip.py +0 -0
  318. {briefing-0.7.0 → briefing-0.8.0}/tests/test_spec/test_schema.py +0 -0
  319. {briefing-0.7.0 → briefing-0.8.0}/tests/test_spec/test_spec_properties.py +0 -0
  320. {briefing-0.7.0 → briefing-0.8.0}/tests/test_spec/test_to_spec.py +0 -0
  321. {briefing-0.7.0 → briefing-0.8.0}/tests/test_spec/test_validate.py +0 -0
  322. {briefing-0.7.0 → briefing-0.8.0}/tests/test_static_scripts.py +0 -0
  323. {briefing-0.7.0 → briefing-0.8.0}/tests/test_version.py +0 -0
@@ -10,6 +10,114 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [0.8.0] - 2026-11-25
14
+
15
+ ### Added
16
+
17
+ - `bf.datasets` (#46): sample data generated on your machine from a seed, the same rows for
18
+ the same name, size and seed everywhere, with no download or data file.
19
+ `bf.datasets.load(name, n=, seed=, engine=)` returns a pandas, polars or pyarrow table, or a
20
+ `bf.datasets.Tables` of several; `bf.datasets.names()` lists them: `sales`,
21
+ `collection_log`, `corpus`, `train_test`, `recsys` and `embeddings`. A new guide shows each
22
+ one with its columns. The project that `python -m briefing new` makes now starts from
23
+ `collection_log`.
24
+ - `bf.Briefing(..., export="snapshot")`: a camera button on each page, labelled group,
25
+ chart, table, text, number, alert, banner and lab block copies that block, as it is on
26
+ screen, as a PNG image at 2× to the clipboard, ready to paste into a slide or a message
27
+ (#215). When the clipboard is refused, the image downloads instead, named after the report
28
+ and the block. With `export="embed"` too, both buttons sit side by side in one toolbar.
29
+ Images, from the header's "Save as PNG" too, now leave out Plotly's own toolbar.
30
+
31
+ ### Changed
32
+
33
+ - `bf.lab.DataDive` draws its dots on a canvas, from data packed by column, and stays quick
34
+ up to 100,000 rows: the new `DataDive.MAX_ROWS` (was 10,000), measured at 0.3 s to open a
35
+ 100,000-row report and under 0.1 s to redraw (#16). Under its controls, a legend colours
36
+ the dots and filters them: a click hides or shows a category, Alt+click shows it alone.
37
+ New `colors=` takes a `bf.Scale`, categorical or numeric, so the dots match the report's
38
+ other charts; without it, categories take the theme's palette. Dates read as dates on an
39
+ axis, and categories spread their dots across their band. In prints and `save_pdf`, up to
40
+ 5,000 dots stay vector; more print as a picture.
41
+ - `bf.lab.DataDive` draws `facet_row=` and `facet_col=` (#16), which until now were accepted
42
+ with a warning (#6): small multiples, one panel per value, on scales shared by every panel,
43
+ in both layouts, and two more dropdowns to change them. New `buckets=` (5 by default, or
44
+ `{"age": 4}` per column) sets how many groups a column makes: a number is cut into bins
45
+ with round edges, and a category keeps its most frequent values plus an "other". It also
46
+ sets the cells of a `"tile"` layout.
47
+ - Clicking a dot in a `bf.lab.DataDive` opens a card with its whole row, under the chart, with
48
+ web addresses as links (#16). **Pin** keeps a card so two rows compare side by side; × or
49
+ Esc closes them, and the chart rings the dots whose cards are open. New `title=` names the
50
+ column that heads each card and tooltip; without it, a card is headed by its row number.
51
+ Four-digit numbers such as years no longer get a thousands separator.
52
+ - A `bf.lab.DataDive` has a search box and filters, all in the page (#16). The search finds
53
+ rows by any text in them and lists the first matches, which open their card; **+ Filter**
54
+ adds a filter on a column, with a category's values to untick or a range for a number or
55
+ a date. **Highlight** dims the rows that don't match, **Filter** hides them; with 100,000
56
+ rows, a search or a filter redraws in under 0.1 s. An embedding map (precomputed `x`,
57
+ `y` and a cluster column) is now one call: colour by cluster, search, click for the record.
58
+ - In a `bf.lab.DataDive`, changing an axis or a facet moves the dots to their new places in
59
+ about 300 ms (up to 30,000 dots; none with `prefers-reduced-motion`) (#16). Ctrl or ⌘ +
60
+ scroll, or a trackpad's pinch, zooms in around the pointer; dragging pans; a double-click,
61
+ or the **+ / − / Reset** buttons, zoom from the keyboard too. A plain scroll still scrolls
62
+ the page, with a hint on how to zoom. Zoom is shared by every panel, ticks follow it, and
63
+ close up the dots carry their `title=`.
64
+ - `bf.lab.DataDive(thumbnails=)` names a column of pictures: data URIs, paths to PNG, JPEG,
65
+ GIF, WebP or SVG files, or their bytes (#16). In the `"tile"` layout, dots become their
66
+ pictures when the cells have room, framed in their colour; the tooltip and the card show
67
+ them too. Each distinct picture is embedded once. Web addresses are refused, so the report
68
+ still works offline. Tiles now size their dots so the fullest cell fits whole.
69
+ - The copy-embed `</>` button (and the new camera button) moved to the bottom-right corner
70
+ of its block, clear of the toolbar Plotly draws at a chart's top right; a labelled group's
71
+ sits just below the group, and a page's just above it, under its tab (#215). While hidden,
72
+ the buttons no longer catch clicks meant for what is under them.
73
+
74
+ ### Removed
75
+
76
+ - `CalendarHeatmap(center=)` and `TimeHeatmap(center=)`, deprecated since 0.6.0 (#196).
77
+ Passing it raises a `BriefingError` that says what to use instead:
78
+ `colors=bf.Scale([below, at, above], center=...)`, the same diverging scale, which every
79
+ block can share. It is gone from the JSON schema too.
80
+
81
+ ### Fixed
82
+
83
+ - Documentation: the live examples with a calendar no longer make the whole page shake in
84
+ some browsers. A scrollbar coming and going inside an example changed its width, the
85
+ calendar re-fitted to a new height, and the example's frame resized, over and over; the
86
+ frames now never show a scrollbar.
87
+
88
+ ## [0.7.1] - 2026-11-22
89
+
90
+ ### Added
91
+
92
+ - `bf.deck.from_report(report, title=)` (experimental): a first draft of a deck from a
93
+ report, an ordinary `Deck` to adjust before saving (#199). Each page starts a slide; in a
94
+ `Text`, `# Heading` makes a section slide, `## Heading` starts a slide (its `{#name}`
95
+ names it) and a `---` line starts one that keeps the title; every other block stays whole.
96
+ A `Banner` that opens the report becomes the title slide.
97
+ - `bf.email.from_report(report, link=, page=)` (experimental): a first draft of an email
98
+ digest from one page of a report, an ordinary `Digest` (#199). Text, numbers, alerts and
99
+ charts stay; a `DataTable` becomes a `Table` of its first 30 rows with its formats, a
100
+ `Select` its first panel, a `Card`, `Banner` or `Chips` their text; toggles, images, files,
101
+ code, raw HTML and lab blocks are left out, named in one warning. Without `link=`, links
102
+ into the report keep only their words.
103
+ - `bf.run(..., argv=["--deck"])` also writes a first draft of a slide deck from the report
104
+ (`<out>-deck.html`), and `python -m briefing render report.json --deck deck.html` does the
105
+ same from JSON; both experimental (#199). The decks and email guides each gain a "From a
106
+ report" section, marked experimental.
107
+ - `bf.ExperimentalWarning`: experimental functions warn once per session that what they
108
+ return may change in any release, without a deprecation period (#199).
109
+
110
+ ### Changed
111
+
112
+ - The documentation is grouped into sections (Get started, Blocks, Reports, Slide decks,
113
+ Email digests, Ways to write it, Look, Examples, API reference). Its landing page shows the
114
+ three outputs side by side, and five pages are new: "How briefing works", "Links",
115
+ "Reports", "Coding agents" and "Colours and scales" (#206).
116
+ - The README presents briefing as one grammar with three outputs (report, slide deck, email
117
+ digest), with a quick start for each, the ways to write a report (Python, Markdown, a
118
+ project, JSON for agents) and what's new since 0.4; its screenshot shows the current look
119
+ (#200).
120
+
13
121
  ## [0.7.0] - 2026-11-22
14
122
 
15
123
  ### Added
@@ -589,7 +697,9 @@ First public release.
589
697
  inherits its base's renderer.
590
698
  - Ships inline type hints (`py.typed`). Python 3.11+.
591
699
 
592
- [Unreleased]: https://github.com/jeanmidevacc/briefing/compare/v0.7.0...HEAD
700
+ [Unreleased]: https://github.com/jeanmidevacc/briefing/compare/v0.8.0...HEAD
701
+ [0.8.0]: https://github.com/jeanmidevacc/briefing/compare/v0.7.1...v0.8.0
702
+ [0.7.1]: https://github.com/jeanmidevacc/briefing/compare/v0.7.0...v0.7.1
593
703
  [0.7.0]: https://github.com/jeanmidevacc/briefing/compare/v0.6.1...v0.7.0
594
704
  [0.6.1]: https://github.com/jeanmidevacc/briefing/compare/v0.6.0...v0.6.1
595
705
  [0.6.0]: https://github.com/jeanmidevacc/briefing/compare/v0.5.0...v0.6.0
@@ -0,0 +1,215 @@
1
+ Metadata-Version: 2.3
2
+ Name: briefing
3
+ Version: 0.8.0
4
+ Summary: Build beautiful self-contained HTML reports from Python analysis
5
+ Project-URL: Homepage, https://github.com/jeanmidevacc/briefing
6
+ Project-URL: Documentation, https://briefing.readthedocs.io
7
+ Project-URL: Repository, https://github.com/jeanmidevacc/briefing
8
+ Project-URL: Issues, https://github.com/jeanmidevacc/briefing/issues
9
+ Project-URL: Changelog, https://github.com/jeanmidevacc/briefing/blob/main/CHANGELOG.md
10
+ Author: jeanmidevacc
11
+ License: Apache-2.0
12
+ Keywords: data,html,pandas,polars,reporting,visualization
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Scientific/Engineering :: Visualization
21
+ Classifier: Typing :: Typed
22
+ Requires-Python: >=3.11
23
+ Requires-Dist: jinja2>=3.1
24
+ Requires-Dist: latex2mathml>=3.77
25
+ Requires-Dist: markdown-it-py>=3.0
26
+ Requires-Dist: pandas>=2.0
27
+ Requires-Dist: pygments>=2.15
28
+ Provides-Extra: altair
29
+ Requires-Dist: altair>=5.0; extra == 'altair'
30
+ Requires-Dist: vl-convert-python>=1.0; extra == 'altair'
31
+ Provides-Extra: dev
32
+ Requires-Dist: altair>=5.0; extra == 'dev'
33
+ Requires-Dist: beautifulsoup4>=4.14; extra == 'dev'
34
+ Requires-Dist: hypothesis>=6.100; extra == 'dev'
35
+ Requires-Dist: matplotlib>=3.7; extra == 'dev'
36
+ Requires-Dist: mypy>=1.10; extra == 'dev'
37
+ Requires-Dist: nox>=2024.4; extra == 'dev'
38
+ Requires-Dist: pandas-stubs>=2.0; extra == 'dev'
39
+ Requires-Dist: pandas>=2.0; extra == 'dev'
40
+ Requires-Dist: pillow>=10.0; extra == 'dev'
41
+ Requires-Dist: plotly>=5.0; extra == 'dev'
42
+ Requires-Dist: polars>=1.0; extra == 'dev'
43
+ Requires-Dist: pyarrow>=15.0; extra == 'dev'
44
+ Requires-Dist: pytest-cov>=5.0; extra == 'dev'
45
+ Requires-Dist: pytest-playwright>=0.5; extra == 'dev'
46
+ Requires-Dist: pytest-snapshot>=0.9; extra == 'dev'
47
+ Requires-Dist: pytest>=8.0; extra == 'dev'
48
+ Requires-Dist: ruff>=0.4; extra == 'dev'
49
+ Requires-Dist: vl-convert-python>=1.0; extra == 'dev'
50
+ Provides-Extra: docs
51
+ Requires-Dist: furo>=2024.1.29; extra == 'docs'
52
+ Requires-Dist: matplotlib>=3.7; extra == 'docs'
53
+ Requires-Dist: myst-parser>=2.0; extra == 'docs'
54
+ Requires-Dist: pandas>=2.0; extra == 'docs'
55
+ Requires-Dist: plotly>=5.0; extra == 'docs'
56
+ Requires-Dist: sphinx>=7.0; extra == 'docs'
57
+ Provides-Extra: image
58
+ Requires-Dist: playwright>=1.40; extra == 'image'
59
+ Provides-Extra: lab
60
+ Provides-Extra: pillow
61
+ Requires-Dist: pillow>=10.0; extra == 'pillow'
62
+ Description-Content-Type: text/markdown
63
+
64
+ # briefing
65
+
66
+ [![Documentation](https://readthedocs.org/projects/briefing/badge/?version=latest)](https://briefing.readthedocs.io)
67
+ [![PyPI](https://img.shields.io/pypi/v/briefing)](https://pypi.org/project/briefing/)
68
+
69
+ A Python framework for self-contained reports, slide decks and email digests, written by a
70
+ person, a coding agent, or both together.
71
+
72
+ Everything is built from one short grammar of blocks (`Text`, `BigNumber`, `Plot`, `DataTable`,
73
+ `Group`, `Select`, …) and saved as **one HTML file** with every script, style and image inside
74
+ it: no CDN, no server, no account. It opens offline, forever, and prints or exports to PNG and
75
+ PDF cleanly.
76
+
77
+ ![A briefing report: three KPIs above a line chart](https://raw.githubusercontent.com/jeanmidevacc/briefing/main/docs/_static/export/page.png)
78
+
79
+ ## Why briefing exists
80
+
81
+ Three things led me here:
82
+
83
+ - **Coding agents are good at making something to show you, not at making it consistently.**
84
+ A few months of building with coding agents surfaced the same gap every time: they're happy
85
+ to produce an artifact, but each one comes out with its own structure, and nothing tracks how
86
+ a piece of content evolved across a project. There was no shared grammar that a person and an
87
+ agent could both build reports from, and how a report came to be stayed opaque.
88
+ - **[datapane](https://github.com/datapane/datapane) was the cleanest report builder I'd used.**
89
+ Block-based, self-contained HTML output, a dead-simple API. I relied on it constantly to turn
90
+ Python analysis into reports for stakeholders and to monitor pipelines. It was decommissioned
91
+ in 2023 when the SaaS behind it shut down, and nothing since has replaced it. briefing is its
92
+ spiritual successor, with a few new turns.
93
+ - **No visualization tool covers everything, and the ones that push furthest often don't stick
94
+ around.** Years of building visualizations taught me that every tool, however good, eventually
95
+ falls short of the next thing you want to show. The niche packages that *do* push past that,
96
+ like [Facets](https://github.com/PAIR-code/facets) (PAIR / Google) and its Facets Dive
97
+ explorer, bring real value but rarely stay maintained. I wanted a place of my own to keep
98
+ building and sharing that kind of custom, interactive visualization, without depending on
99
+ someone else's side project staying alive.
100
+
101
+ briefing is built to close all three gaps at once: a block grammar solid enough for me *and* my
102
+ coding agents to build reports from consistently, with datapane's simplicity and a home for the
103
+ custom, interactive visualization that inspired it. All of it self-contained, offline, with no
104
+ cloud account required.
105
+
106
+ ## One grammar, three outputs
107
+
108
+ | | Report | Slide deck | Email digest |
109
+ | --- | --- | --- | --- |
110
+ | **For** | Exploring and reference | Presenting, or sending round as a PDF | A short summary in the inbox |
111
+ | **Holds** | Every block: pages, tabs, links | Every block, one slide at a time | Text, numbers, alerts, charts as images, short tables |
112
+ | **Interactive** | Yes | Yes in the browser, as it shows in a PDF | No: mail apps run no script |
113
+ | **Made with** | `bf.Briefing` → `bf.save` | `bf.deck.Deck` → `bf.deck.save` | `bf.email.Digest` → `bf.email.to_message` |
114
+ | **From a report** | — | `bf.deck.from_report` (experimental) | `bf.email.from_report` (experimental) |
115
+
116
+ ## Install
117
+
118
+ ```bash
119
+ pip install briefing # every block (lab included): reports, decks, email digests
120
+ pip install "briefing[altair]" # Altair charts: the Vega runtime they embed
121
+ pip install "briefing[pillow]" # lighter images: resize and re-encode them on the way in
122
+ pip install "briefing[image]" # PNG and PDF exports (then, once: playwright install chromium)
123
+ ```
124
+
125
+ briefing installs pandas, for tables, but no chart library: `Plot` takes a Plotly, Altair,
126
+ Matplotlib or Bokeh figure and imports only the library you pass, which you already have.
127
+ Python 3.11+, pandas 2 and 3; polars and pyarrow tables are converted for you.
128
+
129
+ ## Quick start
130
+
131
+ A report:
132
+
133
+ ```python
134
+ import briefing as bf
135
+
136
+ report = bf.Briefing(
137
+ bf.Text("# Sales, Q1 2026"),
138
+ bf.Group(
139
+ bf.BigNumber("Revenue", 4.2e6, prev_value=4.8e6, format="${:,.0f}"), # ▼ -12.5%, in red
140
+ bf.BigNumber("Margin", 0.31, prev_value=0.29, format="{:.0%}"),
141
+ columns=2,
142
+ ),
143
+ bf.Select(
144
+ bf.Plot(fig, label="Trend"),
145
+ bf.DataTable(df, label="Rows"),
146
+ bf.lab.DataProfile(df, label="Profile"),
147
+ ),
148
+ )
149
+ bf.save(report, "q1.html", name="Sales, Q1 2026")
150
+ ```
151
+
152
+ Here `df` is a dataframe and `fig` a chart from any supported library. In a notebook, any block
153
+ previews itself as the last expression of a cell.
154
+
155
+ The same blocks, as slides:
156
+
157
+ ```python
158
+ deck = bf.deck.Deck(
159
+ bf.deck.Slide(title="Sales, Q1 2026"),
160
+ bf.deck.Slide(bf.BigNumber("Revenue", 4.2e6, prev_value=4.8e6, format="${:,.0f}"), title="Summary"),
161
+ bf.deck.Slide(bf.Plot(fig), title="Revenue by month"),
162
+ )
163
+ bf.deck.save(deck, "q1-deck.html", name="Sales, Q1 2026") # bf.deck.save_pdf: one slide per page
164
+ ```
165
+
166
+ And as an email that points to the report:
167
+
168
+ ```python
169
+ digest = bf.email.Digest(
170
+ bf.Text("**Revenue is down 12.5%** on last quarter; the margin is up."),
171
+ bf.BigNumber("Revenue", 4.2e6, prev_value=4.8e6, format="${:,.0f}"),
172
+ link="https://example.com/q1.html",
173
+ )
174
+ message = bf.email.to_message(digest, subject="Sales, Q1 2026", to="team@example.com")
175
+ ```
176
+
177
+ Sending stays yours: `message` is a standard `EmailMessage` for SMTP, the Gmail API or any other.
178
+
179
+ ## More than one way to write it
180
+
181
+ - **In Python**, as above: each block is a class, each option a keyword argument.
182
+ - **In Markdown:** the prose lives in a `.md` file, with `{values}` and `::: block name` slots
183
+ that Python fills: `bf.from_markdown("report.md", values=facts, blocks={"kpis": kpis})`.
184
+ - **As a project:** `python -m briefing new my-report` writes a build script, its Markdown and
185
+ its theme, ready to run; `bf.run` gives the script `--open`, `--spec` and `--diff`.
186
+ - **As JSON, by an agent:** the same blocks and options as JSON. `python -m briefing reference`
187
+ prints the format at the installed version, `python -m briefing validate report.json` lists
188
+ every problem with its place, and `python -m briefing render report.json` builds it.
189
+ `python -m briefing skill --install` adds a Claude Code skill that points to the reference.
190
+
191
+ ## What else it does
192
+
193
+ - **Themes from one colour:** `bf.Formatting.from_accent("#0f766e")` gives a readable light (or
194
+ dark) theme, and charts follow it with `plotly_template()` and `mpl_style()`.
195
+ - **Colour that means something:** `bf.Scale` gives the same colour to the same value in every
196
+ block, `bf.Legend` draws it once, and `bf.color.check` flags palettes that colour-blind readers
197
+ can't tell apart.
198
+ - **Tables to work with:** `DataTable` sorts, searches and pages thousands of rows, formats
199
+ columns, links cells and downloads as CSV.
200
+ - **Lab blocks** for custom, interactive views: `DataProfile`, `DataDive`, `CalendarHeatmap`,
201
+ `TimeHeatmap`.
202
+ - **Embeds:** `bf.stringify(block, full_html=False)` gives one self-contained `<div>` for a docs
203
+ site, a notebook or a wiki, like Plotly's `to_html(full_html=False)`.
204
+ - **What changed since last time:** `bf.diff("yesterday.json", report)` is a report of the numbers,
205
+ rows and text that moved between two runs.
206
+ - **Exports:** `bf.save_pdf` and `bf.save_image` (with `briefing[image]`), offline in headless
207
+ Chromium; a social card with `size="og"`.
208
+
209
+ ## Documentation
210
+
211
+ **[briefing.readthedocs.io](https://briefing.readthedocs.io)** has a guide for every part, with
212
+ live examples, and the full API reference.
213
+
214
+ - [Changelog](CHANGELOG.md)
215
+ - [Issues](https://github.com/jeanmidevacc/briefing/issues): bugs, ideas and the roadmap
@@ -0,0 +1,152 @@
1
+ # briefing
2
+
3
+ [![Documentation](https://readthedocs.org/projects/briefing/badge/?version=latest)](https://briefing.readthedocs.io)
4
+ [![PyPI](https://img.shields.io/pypi/v/briefing)](https://pypi.org/project/briefing/)
5
+
6
+ A Python framework for self-contained reports, slide decks and email digests, written by a
7
+ person, a coding agent, or both together.
8
+
9
+ Everything is built from one short grammar of blocks (`Text`, `BigNumber`, `Plot`, `DataTable`,
10
+ `Group`, `Select`, …) and saved as **one HTML file** with every script, style and image inside
11
+ it: no CDN, no server, no account. It opens offline, forever, and prints or exports to PNG and
12
+ PDF cleanly.
13
+
14
+ ![A briefing report: three KPIs above a line chart](https://raw.githubusercontent.com/jeanmidevacc/briefing/main/docs/_static/export/page.png)
15
+
16
+ ## Why briefing exists
17
+
18
+ Three things led me here:
19
+
20
+ - **Coding agents are good at making something to show you, not at making it consistently.**
21
+ A few months of building with coding agents surfaced the same gap every time: they're happy
22
+ to produce an artifact, but each one comes out with its own structure, and nothing tracks how
23
+ a piece of content evolved across a project. There was no shared grammar that a person and an
24
+ agent could both build reports from, and how a report came to be stayed opaque.
25
+ - **[datapane](https://github.com/datapane/datapane) was the cleanest report builder I'd used.**
26
+ Block-based, self-contained HTML output, a dead-simple API. I relied on it constantly to turn
27
+ Python analysis into reports for stakeholders and to monitor pipelines. It was decommissioned
28
+ in 2023 when the SaaS behind it shut down, and nothing since has replaced it. briefing is its
29
+ spiritual successor, with a few new turns.
30
+ - **No visualization tool covers everything, and the ones that push furthest often don't stick
31
+ around.** Years of building visualizations taught me that every tool, however good, eventually
32
+ falls short of the next thing you want to show. The niche packages that *do* push past that,
33
+ like [Facets](https://github.com/PAIR-code/facets) (PAIR / Google) and its Facets Dive
34
+ explorer, bring real value but rarely stay maintained. I wanted a place of my own to keep
35
+ building and sharing that kind of custom, interactive visualization, without depending on
36
+ someone else's side project staying alive.
37
+
38
+ briefing is built to close all three gaps at once: a block grammar solid enough for me *and* my
39
+ coding agents to build reports from consistently, with datapane's simplicity and a home for the
40
+ custom, interactive visualization that inspired it. All of it self-contained, offline, with no
41
+ cloud account required.
42
+
43
+ ## One grammar, three outputs
44
+
45
+ | | Report | Slide deck | Email digest |
46
+ | --- | --- | --- | --- |
47
+ | **For** | Exploring and reference | Presenting, or sending round as a PDF | A short summary in the inbox |
48
+ | **Holds** | Every block: pages, tabs, links | Every block, one slide at a time | Text, numbers, alerts, charts as images, short tables |
49
+ | **Interactive** | Yes | Yes in the browser, as it shows in a PDF | No: mail apps run no script |
50
+ | **Made with** | `bf.Briefing` → `bf.save` | `bf.deck.Deck` → `bf.deck.save` | `bf.email.Digest` → `bf.email.to_message` |
51
+ | **From a report** | — | `bf.deck.from_report` (experimental) | `bf.email.from_report` (experimental) |
52
+
53
+ ## Install
54
+
55
+ ```bash
56
+ pip install briefing # every block (lab included): reports, decks, email digests
57
+ pip install "briefing[altair]" # Altair charts: the Vega runtime they embed
58
+ pip install "briefing[pillow]" # lighter images: resize and re-encode them on the way in
59
+ pip install "briefing[image]" # PNG and PDF exports (then, once: playwright install chromium)
60
+ ```
61
+
62
+ briefing installs pandas, for tables, but no chart library: `Plot` takes a Plotly, Altair,
63
+ Matplotlib or Bokeh figure and imports only the library you pass, which you already have.
64
+ Python 3.11+, pandas 2 and 3; polars and pyarrow tables are converted for you.
65
+
66
+ ## Quick start
67
+
68
+ A report:
69
+
70
+ ```python
71
+ import briefing as bf
72
+
73
+ report = bf.Briefing(
74
+ bf.Text("# Sales, Q1 2026"),
75
+ bf.Group(
76
+ bf.BigNumber("Revenue", 4.2e6, prev_value=4.8e6, format="${:,.0f}"), # ▼ -12.5%, in red
77
+ bf.BigNumber("Margin", 0.31, prev_value=0.29, format="{:.0%}"),
78
+ columns=2,
79
+ ),
80
+ bf.Select(
81
+ bf.Plot(fig, label="Trend"),
82
+ bf.DataTable(df, label="Rows"),
83
+ bf.lab.DataProfile(df, label="Profile"),
84
+ ),
85
+ )
86
+ bf.save(report, "q1.html", name="Sales, Q1 2026")
87
+ ```
88
+
89
+ Here `df` is a dataframe and `fig` a chart from any supported library. In a notebook, any block
90
+ previews itself as the last expression of a cell.
91
+
92
+ The same blocks, as slides:
93
+
94
+ ```python
95
+ deck = bf.deck.Deck(
96
+ bf.deck.Slide(title="Sales, Q1 2026"),
97
+ bf.deck.Slide(bf.BigNumber("Revenue", 4.2e6, prev_value=4.8e6, format="${:,.0f}"), title="Summary"),
98
+ bf.deck.Slide(bf.Plot(fig), title="Revenue by month"),
99
+ )
100
+ bf.deck.save(deck, "q1-deck.html", name="Sales, Q1 2026") # bf.deck.save_pdf: one slide per page
101
+ ```
102
+
103
+ And as an email that points to the report:
104
+
105
+ ```python
106
+ digest = bf.email.Digest(
107
+ bf.Text("**Revenue is down 12.5%** on last quarter; the margin is up."),
108
+ bf.BigNumber("Revenue", 4.2e6, prev_value=4.8e6, format="${:,.0f}"),
109
+ link="https://example.com/q1.html",
110
+ )
111
+ message = bf.email.to_message(digest, subject="Sales, Q1 2026", to="team@example.com")
112
+ ```
113
+
114
+ Sending stays yours: `message` is a standard `EmailMessage` for SMTP, the Gmail API or any other.
115
+
116
+ ## More than one way to write it
117
+
118
+ - **In Python**, as above: each block is a class, each option a keyword argument.
119
+ - **In Markdown:** the prose lives in a `.md` file, with `{values}` and `::: block name` slots
120
+ that Python fills: `bf.from_markdown("report.md", values=facts, blocks={"kpis": kpis})`.
121
+ - **As a project:** `python -m briefing new my-report` writes a build script, its Markdown and
122
+ its theme, ready to run; `bf.run` gives the script `--open`, `--spec` and `--diff`.
123
+ - **As JSON, by an agent:** the same blocks and options as JSON. `python -m briefing reference`
124
+ prints the format at the installed version, `python -m briefing validate report.json` lists
125
+ every problem with its place, and `python -m briefing render report.json` builds it.
126
+ `python -m briefing skill --install` adds a Claude Code skill that points to the reference.
127
+
128
+ ## What else it does
129
+
130
+ - **Themes from one colour:** `bf.Formatting.from_accent("#0f766e")` gives a readable light (or
131
+ dark) theme, and charts follow it with `plotly_template()` and `mpl_style()`.
132
+ - **Colour that means something:** `bf.Scale` gives the same colour to the same value in every
133
+ block, `bf.Legend` draws it once, and `bf.color.check` flags palettes that colour-blind readers
134
+ can't tell apart.
135
+ - **Tables to work with:** `DataTable` sorts, searches and pages thousands of rows, formats
136
+ columns, links cells and downloads as CSV.
137
+ - **Lab blocks** for custom, interactive views: `DataProfile`, `DataDive`, `CalendarHeatmap`,
138
+ `TimeHeatmap`.
139
+ - **Embeds:** `bf.stringify(block, full_html=False)` gives one self-contained `<div>` for a docs
140
+ site, a notebook or a wiki, like Plotly's `to_html(full_html=False)`.
141
+ - **What changed since last time:** `bf.diff("yesterday.json", report)` is a report of the numbers,
142
+ rows and text that moved between two runs.
143
+ - **Exports:** `bf.save_pdf` and `bf.save_image` (with `briefing[image]`), offline in headless
144
+ Chromium; a social card with `size="og"`.
145
+
146
+ ## Documentation
147
+
148
+ **[briefing.readthedocs.io](https://briefing.readthedocs.io)** has a guide for every part, with
149
+ live examples, and the full API reference.
150
+
151
+ - [Changelog](CHANGELOG.md)
152
+ - [Issues](https://github.com/jeanmidevacc/briefing/issues): bugs, ideas and the roadmap
@@ -105,6 +105,8 @@ dev = [
105
105
  "pandas>=2.0",
106
106
  "pandas-stubs>=2.0",
107
107
  "pyarrow>=15.0",
108
+ # bf.datasets.load(engine="polars") and polars intake (#46)
109
+ "polars>=1.0",
108
110
  # exercised by the Plot renderer and contract tests so the adapter branches are covered
109
111
  "plotly>=5.0",
110
112
  "matplotlib>=3.7",
@@ -147,11 +149,11 @@ strict = true
147
149
  warn_return_any = true
148
150
  warn_unused_configs = true
149
151
 
150
- # Optional plotting / markdown libraries ship no (or partial) type information.
152
+ # Optional plotting / markdown / dataframe libraries ship no (or partial) type information.
151
153
  [[tool.mypy.overrides]]
152
154
  module = [
153
155
  "plotly.*", "altair.*", "bokeh.*", "matplotlib.*", "seaborn.*", "plotnine.*",
154
- "markdown_it.*", "pygments.*",
156
+ "markdown_it.*", "pygments.*", "pyarrow.*",
155
157
  ]
156
158
  ignore_missing_imports = true
157
159
 
@@ -27,8 +27,9 @@ from pathlib import Path
27
27
  # ── lab: custom-visualisation blocks (briefing.lab.DataProfile / .DataDive) ───
28
28
  # Same wheel; importing it registers its renderers. `briefing[lab]` only adds
29
29
  # the pandas dependency those blocks need at render time.
30
- from briefing import color, deck, email, fmt, lab
30
+ from briefing import color, datasets, deck, email, fmt, lab
31
31
  from briefing._error import BriefingError
32
+ from briefing._experimental import ExperimentalWarning
32
33
  from briefing._markdown_first import from_markdown
33
34
  from briefing._preview import Preview, preview
34
35
  from briefing._prose import slug
@@ -245,6 +246,7 @@ def embed_assets(blocks: Briefing | list[t.Any] | object) -> str:
245
246
  __all__: list[str] = [
246
247
  # error
247
248
  "BriefingError",
249
+ "ExperimentalWarning",
248
250
  # blocks — text
249
251
  "Alert",
250
252
  "AlertLevel",
@@ -282,6 +284,7 @@ __all__: list[str] = [
282
284
  "Legend",
283
285
  "Scale",
284
286
  "color",
287
+ "datasets",
285
288
  "deck",
286
289
  "email",
287
290
  "fmt",
@@ -91,6 +91,8 @@ def _parser() -> argparse.ArgumentParser:
91
91
  render.add_argument("spec", help='the report\'s JSON file, or "-" to read it from standard input')
92
92
  render.add_argument("-o", "--output", type=Path, help="the HTML file to write (default: next to the JSON)")
93
93
  render.add_argument("--name", default=None, help="the report's title (default: Report, or Deck for a deck)")
94
+ render.add_argument("--deck", type=Path, default=None, metavar="DECK.html",
95
+ help="also write a first draft of a slide deck from the report (experimental)")
94
96
  render.add_argument("--data", action="append", default=[], metavar="NAME=FILE", help=data_help)
95
97
  render.add_argument("--max-size", type=_max_size, default=DEFAULT_MAX_SIZE, metavar="SIZE", help=size_help)
96
98
 
@@ -267,10 +269,15 @@ def _render(args: argparse.Namespace) -> int:
267
269
  raise BriefingError(f"{exc}\nPass referenced tables as --data name=file.csv.") from exc
268
270
  raise
269
271
  if isinstance(built, deck.Deck):
272
+ if args.deck is not None:
273
+ raise BriefingError("--deck drafts a deck from a report, and this JSON is already a deck: leave it out.")
270
274
  deck.save(built, output, name=args.name or "Deck", max_size=args.max_size)
271
275
  else:
272
276
  save(built, str(output), name=args.name or "Report", max_size=args.max_size)
273
277
  print(output)
278
+ if args.deck is not None and not isinstance(built, deck.Deck):
279
+ deck.save(deck.from_report(built), args.deck, name=args.name or "Report", max_size=args.max_size)
280
+ print(args.deck)
274
281
  return 0
275
282
 
276
283