octavo-kit 0.1.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 (93) hide show
  1. octavo_kit-0.1.0/.gitignore +6 -0
  2. octavo_kit-0.1.0/CONTRIBUTING.md +43 -0
  3. octavo_kit-0.1.0/LICENSE +21 -0
  4. octavo_kit-0.1.0/PKG-INFO +1322 -0
  5. octavo_kit-0.1.0/README.ja.md +1197 -0
  6. octavo_kit-0.1.0/README.md +1275 -0
  7. octavo_kit-0.1.0/bin/octavo +20 -0
  8. octavo_kit-0.1.0/config.example.ja.py +203 -0
  9. octavo_kit-0.1.0/config.example.py +216 -0
  10. octavo_kit-0.1.0/octavo/__init__.py +11 -0
  11. octavo_kit-0.1.0/octavo/analysis.py +323 -0
  12. octavo_kit-0.1.0/octavo/audit.py +327 -0
  13. octavo_kit-0.1.0/octavo/backends/__init__.py +55 -0
  14. octavo_kit-0.1.0/octavo/backends/base.py +321 -0
  15. octavo_kit-0.1.0/octavo/backends/beamer.py +132 -0
  16. octavo_kit-0.1.0/octavo/backends/docx.py +98 -0
  17. octavo_kit-0.1.0/octavo/backends/latex.py +306 -0
  18. octavo_kit-0.1.0/octavo/backends/typst.py +237 -0
  19. octavo_kit-0.1.0/octavo/backends/typst_notes.py +79 -0
  20. octavo_kit-0.1.0/octavo/backends/typst_slides.py +178 -0
  21. octavo_kit-0.1.0/octavo/bib.py +223 -0
  22. octavo_kit-0.1.0/octavo/build.py +378 -0
  23. octavo_kit-0.1.0/octavo/bundle.py +356 -0
  24. octavo_kit-0.1.0/octavo/check.py +217 -0
  25. octavo_kit-0.1.0/octavo/cli.py +932 -0
  26. octavo_kit-0.1.0/octavo/confedit.py +192 -0
  27. octavo_kit-0.1.0/octavo/config.py +473 -0
  28. octavo_kit-0.1.0/octavo/csl.py +174 -0
  29. octavo_kit-0.1.0/octavo/dataset.py +163 -0
  30. octavo_kit-0.1.0/octavo/doctor.py +379 -0
  31. octavo_kit-0.1.0/octavo/ghrelease.py +196 -0
  32. octavo_kit-0.1.0/octavo/i18n.py +103 -0
  33. octavo_kit-0.1.0/octavo/lang_ja.py +680 -0
  34. octavo_kit-0.1.0/octavo/lint.py +223 -0
  35. octavo_kit-0.1.0/octavo/md.py +681 -0
  36. octavo_kit-0.1.0/octavo/pandocrun.py +139 -0
  37. octavo_kit-0.1.0/octavo/paths.py +57 -0
  38. octavo_kit-0.1.0/octavo/review.py +190 -0
  39. octavo_kit-0.1.0/octavo/scaffold.py +345 -0
  40. octavo_kit-0.1.0/octavo/selftest.py +258 -0
  41. octavo_kit-0.1.0/octavo/tmpl.py +124 -0
  42. octavo_kit-0.1.0/octavo/values.py +344 -0
  43. octavo_kit-0.1.0/octavo/zotero.py +229 -0
  44. octavo_kit-0.1.0/pyproject.toml +79 -0
  45. octavo_kit-0.1.0/setup.sh +334 -0
  46. octavo_kit-0.1.0/templates/README.md +50 -0
  47. octavo_kit-0.1.0/templates/handout/handout-header.tex +51 -0
  48. octavo_kit-0.1.0/templates/manuscripts/en/appendix.md +21 -0
  49. octavo_kit-0.1.0/templates/manuscripts/en/lecture.md +64 -0
  50. octavo_kit-0.1.0/templates/manuscripts/en/paper.md +62 -0
  51. octavo_kit-0.1.0/templates/manuscripts/en/slides.md +44 -0
  52. octavo_kit-0.1.0/templates/manuscripts/ja/appendix.md +21 -0
  53. octavo_kit-0.1.0/templates/manuscripts/ja/lecture.md +63 -0
  54. octavo_kit-0.1.0/templates/manuscripts/ja/paper.md +63 -0
  55. octavo_kit-0.1.0/templates/manuscripts/ja/slides.md +44 -0
  56. octavo_kit-0.1.0/templates/paper/csl-preamble.tex +37 -0
  57. octavo_kit-0.1.0/templates/paper/en/main.tex +136 -0
  58. octavo_kit-0.1.0/templates/paper/en/main.typ +77 -0
  59. octavo_kit-0.1.0/templates/paper/ja/main.tex +139 -0
  60. octavo_kit-0.1.0/templates/paper/ja/main.typ +73 -0
  61. octavo_kit-0.1.0/templates/project/common/analysis/octavo.R +418 -0
  62. octavo_kit-0.1.0/templates/project/en/CLAUDE.md +427 -0
  63. octavo_kit-0.1.0/templates/project/en/README.md +141 -0
  64. octavo_kit-0.1.0/templates/project/en/analysis/analysis.qmd +95 -0
  65. octavo_kit-0.1.0/templates/project/en/data/raw/README.md +18 -0
  66. octavo_kit-0.1.0/templates/project/en/gitignore +45 -0
  67. octavo_kit-0.1.0/templates/project/en/literature.bib +24 -0
  68. octavo_kit-0.1.0/templates/project/en/notes/README.md +13 -0
  69. octavo_kit-0.1.0/templates/project/en/octavo.config.py.tmpl +45 -0
  70. octavo_kit-0.1.0/templates/project/en/refs/README.md +26 -0
  71. octavo_kit-0.1.0/templates/project/en/requirements.txt +12 -0
  72. octavo_kit-0.1.0/templates/project/en/results/analysis.json +8 -0
  73. octavo_kit-0.1.0/templates/project/ja/CLAUDE.md +406 -0
  74. octavo_kit-0.1.0/templates/project/ja/README.md +137 -0
  75. octavo_kit-0.1.0/templates/project/ja/analysis/analysis.qmd +93 -0
  76. octavo_kit-0.1.0/templates/project/ja/data/raw/README.md +18 -0
  77. octavo_kit-0.1.0/templates/project/ja/gitignore +43 -0
  78. octavo_kit-0.1.0/templates/project/ja/literature.bib +24 -0
  79. octavo_kit-0.1.0/templates/project/ja/notes/README.md +12 -0
  80. octavo_kit-0.1.0/templates/project/ja/octavo.config.py.tmpl +42 -0
  81. octavo_kit-0.1.0/templates/project/ja/refs/README.md +23 -0
  82. octavo_kit-0.1.0/templates/project/ja/requirements.txt +12 -0
  83. octavo_kit-0.1.0/templates/project/ja/results/analysis.json +8 -0
  84. octavo_kit-0.1.0/templates/replication/en/README.md +33 -0
  85. octavo_kit-0.1.0/templates/replication/ja/README.md +33 -0
  86. octavo_kit-0.1.0/templates/slides/beamer-header-en.tex +34 -0
  87. octavo_kit-0.1.0/templates/slides/beamer-header-ja.tex +45 -0
  88. octavo_kit-0.1.0/templates/slides/typst-notes.typ +139 -0
  89. octavo_kit-0.1.0/templates/slides/typst-slides.typ +178 -0
  90. octavo_kit-0.1.0/tests/test_octavo.py +3967 -0
  91. octavo_kit-0.1.0/vscode-extension/LICENSE +21 -0
  92. octavo_kit-0.1.0/vscode-extension/README.ja.md +162 -0
  93. octavo_kit-0.1.0/vscode-extension/README.md +178 -0
@@ -0,0 +1,6 @@
1
+ __pycache__/
2
+ *.pyc
3
+ csl/*.csl
4
+ .DS_Store
5
+ dist/
6
+ *.egg-info/
@@ -0,0 +1,43 @@
1
+ # Contributing
2
+
3
+ Issues and pull requests are welcome, in English or Japanese.
4
+
5
+ ## Setup
6
+
7
+ No install step beyond Python itself — `octavo` is intentionally
8
+ stdlib-only (see [README.md](README.md)). For the full toolchain
9
+ (pandoc/Typst) needed to actually build output, run `bash setup.sh`
10
+ (add `--with-tex` for LaTeX/Beamer).
11
+
12
+ ## Running tests
13
+
14
+ ```bash
15
+ python3 tests/test_octavo.py
16
+ ```
17
+
18
+ Tests run with citations off and skip anything that needs a pandoc/TeX/Typst
19
+ version newer than what's installed — a skip is expected in a minimal
20
+ environment, not a failure. CI (`.github/workflows/tests.yml`) runs the same
21
+ suite across Python 3.9–3.14 on every push and pull request.
22
+
23
+ ## Before opening a PR
24
+
25
+ - Keep new dependencies out of `octavo/` — the stdlib-only constraint is
26
+ deliberate (it's what keeps `setup.sh` simple on the WSL2/Ubuntu deploy
27
+ target this tool is built for).
28
+ - Adding a new output format? `octavo/backends/base.py` documents the
29
+ `Backend` interface; `build.py` and `cli.py` should never need to branch
30
+ on format name — add a new file under `backends/` and register it in
31
+ `backends/__init__.py::REGISTRY` instead. `octavo/config.py::BACKENDS`
32
+ needs the new name too.
33
+ - Run the test suite before pushing; a red CI run on a PR is expected to be
34
+ fixed before it's merged.
35
+ - Small, focused PRs are easier to review than large ones that mix
36
+ refactors with behavior changes.
37
+
38
+ ## Reporting a bug
39
+
40
+ Please include: the command you ran, the full error/output, `octavo doctor`
41
+ output, and your pandoc/TeX/Typst versions (`pandoc --version`, etc.) — §10
42
+ of the README ("What is tested, and what to check yourself") says which parts
43
+ are covered by the test suite and which aren't.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Takahiro Yoshida
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.