decant-cli 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.4
2
+ Name: decant-cli
3
+ Version: 0.1.0
4
+ Summary: Convert semantic HTML to dyslexia-friendly readable HTML
5
+ Author: Dave Zack
6
+ License: MIT
7
+ Requires-Python: >=3.12
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: beautifulsoup4>=4.12.0
11
+ Requires-Dist: lxml>=5.0.0
12
+ Requires-Dist: nh3>=0.2.0
13
+ Requires-Dist: trafilatura>=1.8.0
14
+ Provides-Extra: dev
15
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
16
+ Requires-Dist: flask>=3.0.0; extra == "dev"
17
+ Requires-Dist: requests>=2.31.0; extra == "dev"
18
+ Dynamic: license-file
19
+
20
+ # Flowdoc
21
+
22
+ Flowdoc is a free, open-source CLI tool that converts web articles into clean, accessible, self-contained HTML files styled for readers with dyslexia and related conditions. It strips site chrome, extracts article content, and produces a single portable document with BDA-recommended typography -- printable, offline-readable, and ready to hand to a student or email to a teacher.
23
+
24
+ Many documents are technically "readable" but visually fatiguing for readers with dyslexia due to cramped line length, poor spacing, and layout choices that prioritize appearance over readability. Browser Reader Mode helps but is ephemeral -- you cannot save it, print it with controlled typography, or share it reliably. Flowdoc produces actual documents.
25
+
26
+ ## v1 scope (summary)
27
+
28
+ - Input: HTML with semantic structure (headings, paragraphs, lists)
29
+ - Output: a single, self-contained HTML file (no external CSS/fonts/scripts/images)
30
+ - Readability over fidelity: no attempt to preserve original styling or branding
31
+ - Optional font toggle: `--font opendyslexic` (not default)
32
+
33
+ Full boundaries: see [SCOPE.md](SCOPE.md).
34
+
35
+ ## Status
36
+
37
+ Phase 2 complete. Core pipeline built and tested against 11 real-world fixtures (8 clean passes, 1 marginal, 2 known limitations). Preparing for v1 open-source release.
38
+
39
+ ## Planned CLI
40
+
41
+ ```bash
42
+ flowdoc convert input.html
43
+ flowdoc convert input.html -o output.html
44
+ flowdoc convert input.html --font opendyslexic
45
+ ```
46
+
47
+ Print to PDF: open the output in a browser and use print-to-PDF.
48
+
49
+ ## Documentation
50
+
51
+ - [SCOPE.md](SCOPE.md) - frozen v1 product boundaries and success criteria
52
+ - [docs/decisions.md](docs/decisions.md) - authoritative implementation/test spec (contracts + invariants)
53
+ - [docs/architecture.md](docs/architecture.md) - locked v1 implementation choices (runtime, libraries, module structure, pipeline, testing)
54
+ - [docs/flowdoc-v1-plan.md](docs/flowdoc-v1-plan.md) - execution checklist for v1
55
+ - [docs/flowdoc-v1-success-contract.md](docs/flowdoc-v1-success-contract.md) - locked v1 success contract (takes precedence over all other docs where conflicts exist)
56
+ - [docs/research_typography_guidelines.md](docs/research_typography_guidelines.md) - typography research/reference
57
+ - [flowdoc-elevator-pitch.md](flowdoc-elevator-pitch.md) - what Flowdoc is in 60 seconds
58
+ - [docs/flowdoc-project-summary.md](docs/flowdoc-project-summary.md) - project history and context
59
+ - [ABOUT.md](ABOUT.md) - project origin story and motivation
60
+
61
+ ## License
62
+
63
+ [MIT](LICENSE)
@@ -0,0 +1,20 @@
1
+ decant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ decant/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ decant/cli/main.py,sha256=EABG8oab3yioZepqacfk2R5AAMEPznP4eOmcecWZtH4,4539
4
+ decant/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ decant/core/constants.py,sha256=Cl3aZRA-Syp4oXYoCoT_pBdmqbkJQZqmgeKewk3cDDo,283692
6
+ decant/core/content_selector.py,sha256=UBMtZrhJVyvFRyl0xuIjx8WCPZPX3ZrVzzbOiQRVkfg,2002
7
+ decant/core/degradation.py,sha256=1vUKMEmQRmmErOZJswVYYwdGT0IQY4-GQL29TvMR1oU,4022
8
+ decant/core/model.py,sha256=1-Sx7wZkPS4TVThq7Vv1XEuaYGPGAGpyNwfX1n69Na8,2706
9
+ decant/core/parser.py,sha256=OfKKZFiW67cPA_VeeR4Zt2U4hbx5RsjCOyLwuvMwgA8,37329
10
+ decant/core/renderer.py,sha256=aCHKcRI_Ptj85-roJrPSJuOrijAS8gAplVEu3y8nBsA,14099
11
+ decant/core/sanitizer.py,sha256=3pGyoKdUpYEZj9axOtTQ1xbge-2fx7eZBWhG2gy9FS0,1630
12
+ decant/io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
+ decant/io/reader.py,sha256=0bKdmyd9btYdPzhR6Nrl3LFEWpDFZbXr2747GVs2moI,689
14
+ decant/io/writer.py,sha256=hH_HNuzDox3sGQTpFd3Dxamo_t1FE75B6q5PFdXRHJE,552
15
+ decant_cli-0.1.0.dist-info/licenses/LICENSE,sha256=1FYm9Vr4GG9q9V0O2mSjA-NffONcpzNGRtEdqI6fnoY,1086
16
+ decant_cli-0.1.0.dist-info/METADATA,sha256=vNeHkZNmmnx7tgPtfDm9xT1_UbXg9pRVIgbE8yqTCSo,3090
17
+ decant_cli-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
18
+ decant_cli-0.1.0.dist-info/entry_points.txt,sha256=zyzNZElxsd9jsn8LvGNsGP9hmopONCuNoptY8wJRRXo,48
19
+ decant_cli-0.1.0.dist-info/top_level.txt,sha256=FngyfE_yssSQ9QWlsNqyazGq8CLkTyBetCcJxjN4awY,7
20
+ decant_cli-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ decant = decant.cli.main:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 David Zack
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.
@@ -0,0 +1 @@
1
+ decant