transcript.md 0.1.0__tar.gz → 0.2.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 (154) hide show
  1. {transcript_md-0.1.0 → transcript_md-0.2.0}/.github/workflows/ci.yml +14 -30
  2. {transcript_md-0.1.0 → transcript_md-0.2.0}/CHANGELOG.md +7 -0
  3. transcript_md-0.2.0/LICENSE +21 -0
  4. transcript_md-0.2.0/PKG-INFO +668 -0
  5. {transcript_md-0.1.0 → transcript_md-0.2.0}/README.md +56 -58
  6. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/compose_demo.py +2 -2
  7. transcript_md-0.2.0/examples/compose_demo.tmd.py +251 -0
  8. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/label_demo.py +6 -1
  9. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/label_demo.tmd.py +45 -59
  10. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/vegalite_demo.py +6 -8
  11. transcript_md-0.2.0/examples/vegalite_demo.tmd.py +158 -0
  12. {transcript_md-0.1.0 → transcript_md-0.2.0}/pixi.lock +10 -8
  13. {transcript_md-0.1.0 → transcript_md-0.2.0}/pyproject.toml +13 -9
  14. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/chrome/resources.ts +19 -7
  15. transcript_md-0.2.0/src/frontend/page/mermaid.ts +32 -0
  16. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/page/render.ts +12 -3
  17. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/types.d.ts +5 -0
  18. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/__init__.py +6 -0
  19. transcript_md-0.2.0/src/transcript/html/_assets/.frontend.sha256 +1 -0
  20. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/html/_assets/transcript.min.js +14 -14
  21. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/html/_resources.py +68 -50
  22. transcript_md-0.2.0/src/transcript/html/browser.py +54 -0
  23. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/output.py +12 -1
  24. transcript_md-0.2.0/src/transcript/renderers/_image_dump.py +39 -0
  25. transcript_md-0.2.0/src/transcript/renderers/graphviz.py +65 -0
  26. transcript_md-0.2.0/src/transcript/renderers/graphviz_runtime.js +19 -0
  27. transcript_md-0.2.0/src/transcript/renderers/mermaid.py +41 -0
  28. transcript_md-0.2.0/src/transcript/renderers/svg.py +40 -0
  29. transcript_md-0.2.0/src/transcript/renderers/vegalite.py +205 -0
  30. transcript_md-0.2.0/src/transcript/renderers/vegalite_runtime.js +40 -0
  31. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/tmd.py +4 -4
  32. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/html/test_browser_render.py +2 -0
  33. transcript_md-0.2.0/tests/renderers/test_graphviz.py +39 -0
  34. transcript_md-0.2.0/tests/renderers/test_mermaid.py +26 -0
  35. transcript_md-0.2.0/tests/renderers/test_svg.py +15 -0
  36. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/renderers/test_vegalite.py +42 -9
  37. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/test_workflow.py +2 -1
  38. transcript_md-0.1.0/PKG-INFO +0 -17
  39. transcript_md-0.1.0/examples/compose_demo.tmd.py +0 -277
  40. transcript_md-0.1.0/examples/vegalite_demo.tmd.py +0 -154
  41. transcript_md-0.1.0/src/transcript/html/_assets/.frontend.sha256 +0 -1
  42. transcript_md-0.1.0/src/transcript/renderers/vegalite.py +0 -250
  43. {transcript_md-0.1.0 → transcript_md-0.2.0}/.github/workflows/publish.yml +0 -0
  44. {transcript_md-0.1.0 → transcript_md-0.2.0}/.gitignore +0 -0
  45. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/data.json +0 -0
  46. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/datavzrd.yaml +0 -0
  47. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/demo.html +0 -0
  48. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/demo.py +0 -0
  49. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/demo.tmd.py +0 -0
  50. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/index.html +0 -0
  51. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/review_demo.py +0 -0
  52. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/review_demo.tmd.py +0 -0
  53. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/review_history.py +0 -0
  54. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/review_history.tmd.py +0 -0
  55. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/rule_demo-A-score.tmd.py +0 -0
  56. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/rule_demo-B-count.tmd.py +0 -0
  57. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/rule_demo.py +0 -0
  58. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/rule_demo.tmd.py +0 -0
  59. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/serve.py +0 -0
  60. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/table_demo.py +0 -0
  61. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/table_demo.tmd.py +0 -0
  62. {transcript_md-0.1.0 → transcript_md-0.2.0}/examples/vegalite.yaml +0 -0
  63. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/chrome/image.ts +0 -0
  64. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/chrome/island.ts +0 -0
  65. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/chrome/navigate.ts +0 -0
  66. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/index.ts +0 -0
  67. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/page/code.ts +0 -0
  68. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/page/outline.ts +0 -0
  69. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/annotation.ts +0 -0
  70. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/boxes.ts +0 -0
  71. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/history/history.ts +0 -0
  72. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/history/historyrender.ts +0 -0
  73. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/mapping.ts +0 -0
  74. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/model/block.ts +0 -0
  75. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/model/chain.ts +0 -0
  76. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/model/coords.ts +0 -0
  77. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/model/records.ts +0 -0
  78. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/model/span.ts +0 -0
  79. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/render/marks.ts +0 -0
  80. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/render/overlay.ts +0 -0
  81. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/review.ts +0 -0
  82. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/reviewstore.test.ts +0 -0
  83. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/reviewstore.ts +0 -0
  84. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/session.ts +0 -0
  85. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/source.ts +0 -0
  86. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/text/diff.ts +0 -0
  87. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/review/text/literal.ts +0 -0
  88. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/style.css +0 -0
  89. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/frontend/tsconfig.json +0 -0
  90. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/_rule/__init__.py +0 -0
  91. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/_rule/archive.py +0 -0
  92. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/_rule/conda.py +0 -0
  93. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/_rule/container.py +0 -0
  94. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/_rule/core.py +0 -0
  95. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/_rule/lambdas.py +0 -0
  96. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/_rule/registry.py +0 -0
  97. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/_rule/serialize.py +0 -0
  98. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/_rule/snakefile.py +0 -0
  99. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/_rule/wildcards.py +0 -0
  100. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/cli.py +0 -0
  101. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/document.py +0 -0
  102. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/execute.py +0 -0
  103. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/html/__init__.py +0 -0
  104. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/html/_assets/__init__.py +0 -0
  105. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/html/_assets/style.min.css +0 -0
  106. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/html/_island.py +0 -0
  107. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/html/_navigate.py +0 -0
  108. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/html/_output.py +0 -0
  109. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/html/_review.py +0 -0
  110. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/html/markup.py +0 -0
  111. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/html/page.py +0 -0
  112. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/parse.py +0 -0
  113. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/renderers/__init__.py +0 -0
  114. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/renderers/bitmap.py +0 -0
  115. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/renderers/compose.py +0 -0
  116. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/renderers/compose_runtime.js +0 -0
  117. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/renderers/datavzrd.py +0 -0
  118. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/renderers/datavzrd_runtime.js +0 -0
  119. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/renderers/label.py +0 -0
  120. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/renderers/markdown.py +0 -0
  121. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/renderers/table.py +0 -0
  122. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/review/__init__.py +0 -0
  123. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/review/_block.py +0 -0
  124. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/review/_migrate.py +0 -0
  125. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/review/_records.py +0 -0
  126. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/review/_span.py +0 -0
  127. {transcript_md-0.1.0 → transcript_md-0.2.0}/src/transcript/review/load.py +0 -0
  128. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/__init__.py +0 -0
  129. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/_rule/__init__.py +0 -0
  130. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/_rule/test_rule.py +0 -0
  131. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/conftest.py +0 -0
  132. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/html/__init__.py +0 -0
  133. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/html/test_island.py +0 -0
  134. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/html/test_navigate.py +0 -0
  135. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/renderers/__init__.py +0 -0
  136. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/renderers/test_bitmap.py +0 -0
  137. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/renderers/test_compose.py +0 -0
  138. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/renderers/test_datavzrd.py +0 -0
  139. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/renderers/test_datavzrd_workflow.py +0 -0
  140. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/renderers/test_label.py +0 -0
  141. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/renderers/test_table.py +0 -0
  142. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/review/__init__.py +0 -0
  143. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/review/test_review.py +0 -0
  144. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/test_document.py +0 -0
  145. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/test_escaped_newlines.py +0 -0
  146. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/test_execution_scope.py +0 -0
  147. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/test_imports.py +0 -0
  148. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/test_output.py +0 -0
  149. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/test_parse.py +0 -0
  150. {transcript_md-0.1.0 → transcript_md-0.2.0}/tests/test_v3_edges.py +0 -0
  151. {transcript_md-0.1.0 → transcript_md-0.2.0}/tools/build_frontend.py +0 -0
  152. {transcript_md-0.1.0 → transcript_md-0.2.0}/tools/build_review_demos.py +0 -0
  153. {transcript_md-0.1.0 → transcript_md-0.2.0}/tools/hatch_build.py +0 -0
  154. {transcript_md-0.1.0 → transcript_md-0.2.0}/tools/test_frontend.py +0 -0
@@ -1,10 +1,6 @@
1
1
  name: CI
2
2
 
3
3
  on:
4
- push:
5
- branches:
6
- - main
7
- tags: ["v*"]
8
4
  pull_request:
9
5
  workflow_dispatch:
10
6
 
@@ -16,16 +12,21 @@ permissions:
16
12
  contents: read
17
13
 
18
14
  jobs:
19
- lint:
15
+ check:
20
16
  runs-on: ubuntu-latest
21
17
  steps:
22
18
  - uses: actions/checkout@v4
23
19
 
20
+ # Steps in one job share the same working tree, PATH and Pixi
21
+ # environment, so the environment is installed only once.
24
22
  - name: Install Pixi
25
23
  uses: prefix-dev/setup-pixi@v0.10.0
26
24
  with:
27
25
  cache: true
28
26
 
27
+ - name: Build frontend
28
+ run: pixi run frontend-build
29
+
29
30
  - name: Check formatting
30
31
  run: pixi run ruff format --check .
31
32
 
@@ -38,31 +39,14 @@ jobs:
38
39
  - name: Typecheck frontend
39
40
  run: pixi run frontend-typecheck
40
41
 
41
- test:
42
- runs-on: ubuntu-latest
43
- steps:
44
- - uses: actions/checkout@v4
45
-
46
- - name: Install Pixi
47
- uses: prefix-dev/setup-pixi@v0.10.0
48
- with:
49
- cache: true
50
-
51
- - name: Run tests
52
- run: pixi run test
53
-
54
- - name: Run frontend tests
55
- run: pixi run frontend-test
56
-
57
- build:
58
- runs-on: ubuntu-latest
59
- steps:
60
- - uses: actions/checkout@v4
61
-
62
- - name: Install Pixi
63
- uses: prefix-dev/setup-pixi@v0.10.0
64
- with:
65
- cache: true
42
+ - name: Run Python and frontend tests concurrently
43
+ run: |
44
+ status=0
45
+ pixi run pytest & python_pid=$!
46
+ pixi run frontend-test & frontend_pid=$!
47
+ wait "$python_pid" || status=1
48
+ wait "$frontend_pid" || status=1
49
+ exit "$status"
66
50
 
67
51
  - name: Build sdist and wheel
68
52
  run: pixi run build
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.0](https://github.com/Hocnonsense/transcript/compare/v0.1.0...v0.2.0) (2026-11-30)
4
+
5
+
6
+ ### Features
7
+
8
+ * enhance visualization features ([#4](https://github.com/Hocnonsense/transcript/issues/4)) ([6098197](https://github.com/Hocnonsense/transcript/commit/609819793fd528f8ee1df6ccad36210c9b992962))
9
+
3
10
  ## 0.1.0 (2026-11-12)
4
11
 
5
12
 
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Aoran Hu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.