condash 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.
@@ -0,0 +1,40 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.egg
6
+ *.egg-info/
7
+ .eggs/
8
+ *.so
9
+
10
+ # Distribution / packaging
11
+ build/
12
+ dist/
13
+ wheels/
14
+ .wheels/
15
+
16
+ # Virtual environments
17
+ .venv/
18
+ venv/
19
+ env/
20
+
21
+ # uv
22
+ .uv/
23
+
24
+ # Testing / tooling caches
25
+ .pytest_cache/
26
+ .ruff_cache/
27
+ .mypy_cache/
28
+ .coverage
29
+ htmlcov/
30
+
31
+ # Editors / OS
32
+ .idea/
33
+ .vscode/
34
+ *.swp
35
+ .DS_Store
36
+
37
+ # Claude local scratch
38
+ .claude/*
39
+ !.claude/skills/
40
+ !.claude/scripts/
condash-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alice Voland
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.
condash-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,96 @@
1
+ Metadata-Version: 2.4
2
+ Name: condash
3
+ Version: 0.1.0
4
+ Summary: Standalone desktop dashboard for markdown-based conception projects, incidents, and documents.
5
+ Project-URL: Homepage, https://github.com/vcoeur/condash
6
+ Project-URL: Repository, https://github.com/vcoeur/condash
7
+ Project-URL: Issues, https://github.com/vcoeur/condash/issues
8
+ Author-email: Alice Voland <alice.voland@oomade.com>
9
+ License: MIT
10
+ License-File: LICENSE
11
+ Keywords: dashboard,kanban,markdown,nicegui,project-management
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Environment :: X11 Applications
14
+ Classifier: Intended Audience :: End Users/Desktop
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Office/Business
22
+ Classifier: Topic :: Software Development
23
+ Requires-Python: >=3.11
24
+ Requires-Dist: nicegui>=2.0
25
+ Requires-Dist: pywebview>=5.0
26
+ Requires-Dist: typer>=0.16
27
+ Provides-Extra: dev
28
+ Requires-Dist: pytest>=8.0; extra == 'dev'
29
+ Requires-Dist: ruff>=0.5; extra == 'dev'
30
+ Description-Content-Type: text/markdown
31
+
32
+ # condash
33
+
34
+ **Standalone desktop dashboard for markdown-based conception projects, incidents, and documents.**
35
+
36
+ `condash` is a single-user native-feeling application that renders a live dashboard of a directory tree of projects, incidents, and documents written as Markdown — originally the `conception` repo convention (`projects/YYYY-MM-DD-slug/README.md`, `incidents/…`, `documents/…`). It lets you browse them, track `## Steps` checklists, toggle item status, reorder steps, open files in your IDE, and tidy done items into monthly archive folders — all from one window backed by the same Markdown files you edit by hand.
37
+
38
+ ## Install
39
+
40
+ ```bash
41
+ pip install condash
42
+ ```
43
+
44
+ ### System prerequisite (Linux)
45
+
46
+ `condash` uses [pywebview](https://pywebview.flowrl.com/) to open a native window backed by the system's webview. On Ubuntu/Debian you need:
47
+
48
+ ```bash
49
+ sudo apt install libwebkit2gtk-4.1-0 # or libwebkit2gtk-4.0-37 on older releases
50
+ ```
51
+
52
+ `pip` cannot install this — it has to come from the distro package manager.
53
+
54
+ ### Development from a source checkout
55
+
56
+ ```bash
57
+ git clone https://github.com/vcoeur/condash.git
58
+ cd condash
59
+ uv sync --all-extras
60
+ uv run condash --version
61
+ uv run condash # launches the native window, reading ~/.config/condash/config.toml
62
+ ```
63
+
64
+ ## First launch
65
+
66
+ ```bash
67
+ condash
68
+ ```
69
+
70
+ On first start, `condash` writes a default config to `~/.config/condash/config.toml` and asks (on stdin) for the path of your conception directory. Edit the file afterwards if you want to change the path or repositories list:
71
+
72
+ ```toml
73
+ conception_path = "/home/alice/src/vcoeur/conception"
74
+
75
+ [repositories]
76
+ primary = ["vcoeur.com", "alicepeintures.com"]
77
+ secondary = ["conception", "ClaudeConfig"]
78
+ ```
79
+
80
+ ## CLI
81
+
82
+ ```
83
+ condash # open the dashboard window
84
+ condash --version # print version and exit
85
+ condash --tidy # move done items into YYYY-MM/ archive dirs and exit
86
+ condash --conception-path PATH # one-shot override (does not touch config file)
87
+ condash --config PATH # use a different config file
88
+ ```
89
+
90
+ ## Status
91
+
92
+ Version 0.1.0 — first standalone release. Ports the existing `conception/tools/dashboard.py` into a standalone PyPI package with configurable paths. Linux-first; other platforms untested.
93
+
94
+ ## License
95
+
96
+ MIT — see [LICENSE](LICENSE).
@@ -0,0 +1,65 @@
1
+ # condash
2
+
3
+ **Standalone desktop dashboard for markdown-based conception projects, incidents, and documents.**
4
+
5
+ `condash` is a single-user native-feeling application that renders a live dashboard of a directory tree of projects, incidents, and documents written as Markdown — originally the `conception` repo convention (`projects/YYYY-MM-DD-slug/README.md`, `incidents/…`, `documents/…`). It lets you browse them, track `## Steps` checklists, toggle item status, reorder steps, open files in your IDE, and tidy done items into monthly archive folders — all from one window backed by the same Markdown files you edit by hand.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ pip install condash
11
+ ```
12
+
13
+ ### System prerequisite (Linux)
14
+
15
+ `condash` uses [pywebview](https://pywebview.flowrl.com/) to open a native window backed by the system's webview. On Ubuntu/Debian you need:
16
+
17
+ ```bash
18
+ sudo apt install libwebkit2gtk-4.1-0 # or libwebkit2gtk-4.0-37 on older releases
19
+ ```
20
+
21
+ `pip` cannot install this — it has to come from the distro package manager.
22
+
23
+ ### Development from a source checkout
24
+
25
+ ```bash
26
+ git clone https://github.com/vcoeur/condash.git
27
+ cd condash
28
+ uv sync --all-extras
29
+ uv run condash --version
30
+ uv run condash # launches the native window, reading ~/.config/condash/config.toml
31
+ ```
32
+
33
+ ## First launch
34
+
35
+ ```bash
36
+ condash
37
+ ```
38
+
39
+ On first start, `condash` writes a default config to `~/.config/condash/config.toml` and asks (on stdin) for the path of your conception directory. Edit the file afterwards if you want to change the path or repositories list:
40
+
41
+ ```toml
42
+ conception_path = "/home/alice/src/vcoeur/conception"
43
+
44
+ [repositories]
45
+ primary = ["vcoeur.com", "alicepeintures.com"]
46
+ secondary = ["conception", "ClaudeConfig"]
47
+ ```
48
+
49
+ ## CLI
50
+
51
+ ```
52
+ condash # open the dashboard window
53
+ condash --version # print version and exit
54
+ condash --tidy # move done items into YYYY-MM/ archive dirs and exit
55
+ condash --conception-path PATH # one-shot override (does not touch config file)
56
+ condash --config PATH # use a different config file
57
+ ```
58
+
59
+ ## Status
60
+
61
+ Version 0.1.0 — first standalone release. Ports the existing `conception/tools/dashboard.py` into a standalone PyPI package with configurable paths. Linux-first; other platforms untested.
62
+
63
+ ## License
64
+
65
+ MIT — see [LICENSE](LICENSE).
@@ -0,0 +1,66 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "condash"
7
+ version = "0.1.0"
8
+ description = "Standalone desktop dashboard for markdown-based conception projects, incidents, and documents."
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = { text = "MIT" }
12
+ authors = [
13
+ { name = "Alice Voland", email = "alice.voland@oomade.com" },
14
+ ]
15
+ keywords = ["dashboard", "markdown", "project-management", "nicegui", "kanban"]
16
+ classifiers = [
17
+ "Development Status :: 3 - Alpha",
18
+ "Environment :: X11 Applications",
19
+ "Intended Audience :: End Users/Desktop",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Operating System :: POSIX :: Linux",
22
+ "Programming Language :: Python :: 3",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Programming Language :: Python :: 3.13",
26
+ "Topic :: Office/Business",
27
+ "Topic :: Software Development",
28
+ ]
29
+ dependencies = [
30
+ "nicegui>=2.0",
31
+ "pywebview>=5.0",
32
+ "typer>=0.16",
33
+ ]
34
+
35
+ [project.optional-dependencies]
36
+ dev = [
37
+ "pytest>=8.0",
38
+ "ruff>=0.5",
39
+ ]
40
+
41
+ [project.scripts]
42
+ condash = "condash.cli:main"
43
+
44
+ [project.urls]
45
+ Homepage = "https://github.com/vcoeur/condash"
46
+ Repository = "https://github.com/vcoeur/condash"
47
+ Issues = "https://github.com/vcoeur/condash/issues"
48
+
49
+ [tool.hatch.build.targets.wheel]
50
+ packages = ["src/condash"]
51
+
52
+ [tool.hatch.build.targets.sdist]
53
+ include = [
54
+ "src/condash",
55
+ "README.md",
56
+ "LICENSE",
57
+ "pyproject.toml",
58
+ ]
59
+
60
+ [tool.ruff]
61
+ line-length = 100
62
+ target-version = "py311"
63
+
64
+ [tool.ruff.lint]
65
+ select = ["E", "F", "W", "I", "UP"]
66
+ ignore = ["E501"]
@@ -0,0 +1,3 @@
1
+ """condash — standalone desktop dashboard for markdown-based conception items."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,4 @@
1
+ from .cli import main
2
+
3
+ if __name__ == "__main__":
4
+ main()
@@ -0,0 +1,189 @@
1
+ """NiceGUI-backed native window for condash.
2
+
3
+ The existing ``dashboard.html`` is served verbatim at ``/``; all the AJAX
4
+ endpoints the JS calls (``/toggle``, ``/add-step``, ``/tidy``, …) are
5
+ re-implemented here as FastAPI routes on top of NiceGUI's underlying
6
+ FastAPI instance.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ from fastapi import Request
12
+ from fastapi.responses import HTMLResponse, JSONResponse, Response
13
+ from nicegui import app as _ng_app
14
+ from nicegui import ui
15
+
16
+ from . import legacy
17
+ from .config import CondashConfig
18
+
19
+
20
+ def _error(status: int, message: str) -> JSONResponse:
21
+ return JSONResponse(status_code=status, content={"error": message})
22
+
23
+
24
+ def _register_routes() -> None:
25
+ """Attach all API routes to NiceGUI's FastAPI instance."""
26
+
27
+ @_ng_app.get("/", response_class=HTMLResponse)
28
+ def index():
29
+ items = legacy.collect_items()
30
+ return HTMLResponse(content=legacy.render_page(items))
31
+
32
+ @_ng_app.get("/favicon.svg")
33
+ def favicon_svg():
34
+ data = legacy._favicon_bytes()
35
+ if data is None:
36
+ return Response(status_code=404)
37
+ return Response(
38
+ content=data,
39
+ media_type="image/svg+xml",
40
+ headers={"Cache-Control": "public, max-age=86400"},
41
+ )
42
+
43
+ @_ng_app.get("/favicon.ico")
44
+ def favicon_ico():
45
+ data = legacy._favicon_bytes()
46
+ if data is None:
47
+ return Response(status_code=404)
48
+ return Response(content=data, media_type="image/svg+xml")
49
+
50
+ @_ng_app.get("/check-updates")
51
+ def check_updates():
52
+ items = legacy.collect_items()
53
+ return {
54
+ "fingerprint": legacy._compute_fingerprint(items),
55
+ "tidy_needed": legacy._tidy_needed(items),
56
+ "git_fingerprint": legacy._git_fingerprint(),
57
+ }
58
+
59
+ @_ng_app.get("/note")
60
+ def get_note(path: str = ""):
61
+ full = legacy.validate_note_path(path)
62
+ if full is None:
63
+ return Response(status_code=403)
64
+ return HTMLResponse(content=legacy._render_note(full))
65
+
66
+ @_ng_app.get("/download/{rel_path:path}")
67
+ def download(rel_path: str):
68
+ full = legacy.validate_download_path(rel_path)
69
+ if full is None:
70
+ return Response(status_code=403)
71
+ return Response(
72
+ content=full.read_bytes(),
73
+ media_type="application/pdf",
74
+ headers={"Content-Disposition": f'inline; filename="{full.name}"'},
75
+ )
76
+
77
+ @_ng_app.get("/asset/{rel_path:path}")
78
+ def asset(rel_path: str):
79
+ result = legacy.validate_asset_path(rel_path)
80
+ if result is None:
81
+ return Response(status_code=403)
82
+ full, ctype = result
83
+ return Response(
84
+ content=full.read_bytes(),
85
+ media_type=ctype,
86
+ headers={"Cache-Control": "public, max-age=300"},
87
+ )
88
+
89
+ @_ng_app.post("/toggle")
90
+ async def toggle(req: Request):
91
+ data = await req.json()
92
+ full = legacy._validate_path(data.get("file", ""))
93
+ if not full:
94
+ return _error(400, "invalid path")
95
+ status = legacy._toggle_checkbox(full, data.get("line", -1))
96
+ if status is None:
97
+ return _error(400, "not a checkbox line")
98
+ return {"ok": True, "status": status}
99
+
100
+ @_ng_app.post("/remove-step")
101
+ async def remove_step(req: Request):
102
+ data = await req.json()
103
+ full = legacy._validate_path(data.get("file", ""))
104
+ if not full:
105
+ return _error(400, "invalid path")
106
+ if legacy._remove_step(full, data.get("line", -1)):
107
+ return {"ok": True}
108
+ return _error(400, "cannot remove")
109
+
110
+ @_ng_app.post("/edit-step")
111
+ async def edit_step(req: Request):
112
+ data = await req.json()
113
+ text = (data.get("text") or "").strip()
114
+ if not text:
115
+ return _error(400, "empty text")
116
+ full = legacy._validate_path(data.get("file", ""))
117
+ if not full:
118
+ return _error(400, "invalid path")
119
+ if legacy._edit_step(full, data.get("line", -1), text):
120
+ return {"ok": True}
121
+ return _error(400, "cannot edit")
122
+
123
+ @_ng_app.post("/add-step")
124
+ async def add_step(req: Request):
125
+ data = await req.json()
126
+ text = (data.get("text") or "").strip()
127
+ if not text:
128
+ return _error(400, "empty text")
129
+ full = legacy._validate_path(data.get("file", ""))
130
+ if not full:
131
+ return _error(400, "invalid path")
132
+ line = legacy._add_step(full, text, data.get("section"))
133
+ return {"ok": True, "line": line}
134
+
135
+ @_ng_app.post("/set-priority")
136
+ async def set_priority(req: Request):
137
+ data = await req.json()
138
+ full = legacy._validate_path(data.get("file", ""))
139
+ if not full:
140
+ return _error(400, "invalid path")
141
+ priority = data.get("priority", "")
142
+ if legacy._set_priority(full, priority):
143
+ moves = legacy._tidy()
144
+ return {"ok": True, "priority": priority, "moved": bool(moves)}
145
+ return _error(400, "invalid priority")
146
+
147
+ @_ng_app.post("/reorder-all")
148
+ async def reorder_all(req: Request):
149
+ data = await req.json()
150
+ full = legacy._validate_path(data.get("file", ""))
151
+ if not full:
152
+ return _error(400, "invalid path")
153
+ order = data.get("order") or []
154
+ if legacy._reorder_all(full, order):
155
+ return {"ok": True}
156
+ return _error(400, "cannot reorder")
157
+
158
+ @_ng_app.post("/open")
159
+ async def open_path(req: Request):
160
+ data = await req.json()
161
+ resolved = legacy._validate_open_path(data.get("path", ""))
162
+ if not resolved:
163
+ return _error(400, "invalid path")
164
+ tool = data.get("tool", "")
165
+ if legacy._open_path(tool, resolved):
166
+ return {"ok": True}
167
+ return _error(500, f"could not launch {tool}")
168
+
169
+ @_ng_app.post("/tidy")
170
+ async def tidy(_req: Request):
171
+ moves = legacy._tidy()
172
+ return {
173
+ "ok": True,
174
+ "moves": [{"from": f, "to": t} for f, t in moves],
175
+ }
176
+
177
+
178
+ def run(cfg: CondashConfig) -> None:
179
+ """Launch the native condash window."""
180
+ legacy.init(cfg)
181
+ _register_routes()
182
+ ui.run(
183
+ native=True,
184
+ title="condash",
185
+ window_size=(1400, 900),
186
+ reload=False,
187
+ show=False,
188
+ port=0,
189
+ )