sieve-notes 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,122 @@
1
+ Metadata-Version: 2.4
2
+ Name: sieve-notes
3
+ Version: 0.1.0
4
+ Summary: Deterministic observation and conversion for Markdown note vaults: note relations, block trees, and document-outline round trips
5
+ Author: Kai IWASAKI
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/neguseatama/sieve-notes
8
+ Project-URL: Repository, https://github.com/neguseatama/sieve-notes.git
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Intended Audience :: End Users/Desktop
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Text Processing :: Markup :: Markdown
18
+ Requires-Python: >=3.10
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Dynamic: license-file
22
+
23
+ # Sieve Notes v0.1.0
24
+
25
+ A command-line tool that reads a folder of Markdown notes (the vault of a
26
+ note-taking app, called a vault below) and deterministically produces:
27
+
28
+ 1. **Note relation observation** — the list of notes, links, backlinks,
29
+ broken links, and orphan notes.
30
+ 2. **The block tree** — headings, paragraphs, lists, code, tables and more,
31
+ lowered into one closed vocabulary (no note bodies are emitted).
32
+ 3. **Document ⇄ outline conversion** — a pure conversion through the tree.
33
+ The original file is never modified; the result goes to a new file.
34
+
35
+ It runs on the standard library alone (no runtime dependencies).
36
+ Python 3.10 or later. It works offline and sends no telemetry.
37
+
38
+ ## What it does
39
+
40
+ ```console
41
+ $ sieve-notes index ./vault
42
+ notes 3
43
+ links wikilink=4 embed=1 markdown_link=1 block_ref=1
44
+ link_states resolved=5 broken=1 ambiguous=0 fragment_missing=1
45
+ orphan_notes 1
46
+ excluded_dirs 2
47
+ skipped symlink_skipped=0 too_large=0 unreadable=0 unsupported_encoding=0 file_limit=0
48
+ note a.md resolved=2 broken=1 ambiguous=0 fragment_missing=0 backlinks=1 collapsed=1 comments=2
49
+ broken a.md:7 wikilink broken ghost
50
+ ```
51
+
52
+ `index` observes the relations of the whole vault. For machines use
53
+ `--format json` (the `notes_version: 1` contract).
54
+
55
+ ```console
56
+ $ sieve-notes blocks ./vault/notes/plan.md
57
+ dialect document
58
+ block frontmatter depth=0 lines=1-3
59
+ block heading depth=0 lines=4-4
60
+ block paragraph depth=1 lines=6-7
61
+ block list_item depth=2 lines=9-9
62
+ ...
63
+ ```
64
+
65
+ `blocks` prints the structure of one note as type, depth and line range.
66
+ Note bodies are never emitted.
67
+
68
+ ```console
69
+ $ sieve-notes convert ./vault/notes/plan.md --to outline -o plan-outline.md
70
+ kept_as_text_fold_state 0
71
+ kept_as_text_block_id 0
72
+ kept_as_text_properties 0
73
+ kept_as_text_frontmatter 0
74
+ kept_as_text_unsupported 0
75
+ list_became_paragraphs 0
76
+ ordered_list_became_bullets 0
77
+ lists_merged 0
78
+ output plan-outline.md
79
+ ```
80
+
81
+ `convert` converts between the document form and the outline form.
82
+ It never overwrites an existing output file (exit code 2).
83
+
84
+ ## Examples
85
+
86
+ - `sieve-notes index PATH` — observe the vault relations.
87
+ `--strict` exits 1 when a broken link, an ambiguous resolution or a
88
+ missing fragment is present. `--no-names` omits the link target names.
89
+ - `sieve-notes blocks FILE` — the block tree of one note.
90
+ `--dialect auto|document|outline` selects the dialect.
91
+ - `sieve-notes convert FILE --to outline|document -o OUT` — conversion.
92
+ `--indent tab|2|4` selects the item indentation (the default is two spaces).
93
+ - `sieve-notes --self-check` — verifies the bundled small sample
94
+ (exit codes 0 / 1 / 2).
95
+
96
+ From Python, the three functions `index_vault` / `block_tree` /
97
+ `convert_text` return the same shape (`notes_version: 1`).
98
+
99
+ ## Supported formats
100
+
101
+ - Internal links (aliases, headings, block IDs, embeds)
102
+ - Markdown-form relative-path links
103
+ - Block references (the `((id))` form)
104
+ - Comments (`%%…%%` and HTML comments)
105
+ - Properties (frontmatter and `key:: value` lines)
106
+ - Callouts (including folded `> [!x]-`)
107
+ - Tags
108
+ - File placement and folder layout (default exclusions:
109
+ `.obsidian/`, `.trash/`, `logseq/`, `.git/`)
110
+ - Indentation characters (one tab or two spaces per level)
111
+
112
+ The sources per format and the rules of this version live in docs:
113
+ `docs/formats.md` (supported formats and their official sources),
114
+ `docs/vocabulary.md` (the closed vocabulary and the output contract),
115
+ `docs/resolution.md` (the link resolution rules) and
116
+ `docs/convert.md` (the conversion rules and properties).
117
+
118
+ ## License
119
+
120
+ MIT License. See [LICENSE](https://github.com/neguseatama/sieve-notes/blob/main/LICENSE).
121
+
122
+ Copyright (c) 2026 Kai IWASAKI
@@ -0,0 +1,7 @@
1
+ sieve_notes.py,sha256=SU2qv0TDtEw9iQ2DhPL33tuf9Va72VGyshbHsG0XiII,63924
2
+ sieve_notes-0.1.0.dist-info/licenses/LICENSE,sha256=elLpPoGcCA_Tr2ln2abEvan7pEj_LoC4Q0-z5cudib8,1068
3
+ sieve_notes-0.1.0.dist-info/METADATA,sha256=eZp-POur33I7DcIP-Y4e3aJfB_AWM8nooq8qOcFgv50,4558
4
+ sieve_notes-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
5
+ sieve_notes-0.1.0.dist-info/entry_points.txt,sha256=Q1jq9i_zorEyMqi1Lldr3suF1fFg17F4LT3JTc2GF2Q,49
6
+ sieve_notes-0.1.0.dist-info/top_level.txt,sha256=IurfbsZuyR9L1BNpY27NVsqQw8EZUuMbckeGiAOsRNc,12
7
+ sieve_notes-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ sieve-notes = sieve_notes:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kai IWASAKI
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
+ sieve_notes