ekagu 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.
- ekagu-0.1.0/.gitignore +27 -0
- ekagu-0.1.0/CHANGELOG.md +12 -0
- ekagu-0.1.0/CLAUDE.md +33 -0
- ekagu-0.1.0/LICENSE +21 -0
- ekagu-0.1.0/PKG-INFO +55 -0
- ekagu-0.1.0/README.md +36 -0
- ekagu-0.1.0/pyproject.toml +54 -0
- ekagu-0.1.0/src/ekagu/__init__.py +8 -0
- ekagu-0.1.0/src/ekagu/__main__.py +18 -0
- ekagu-0.1.0/src/ekagu/app.py +16 -0
- ekagu-0.1.0/tests/test_app.py +12 -0
- ekagu-0.1.0/uv.lock +856 -0
ekagu-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Python-generated files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[oc]
|
|
4
|
+
build/
|
|
5
|
+
dist/
|
|
6
|
+
wheels/
|
|
7
|
+
site/
|
|
8
|
+
*.egg-info
|
|
9
|
+
|
|
10
|
+
# Virtual environments
|
|
11
|
+
.venv
|
|
12
|
+
.python-version
|
|
13
|
+
|
|
14
|
+
# Tooling caches
|
|
15
|
+
.pytest_cache/
|
|
16
|
+
.ruff_cache/
|
|
17
|
+
|
|
18
|
+
# OS / IDE files
|
|
19
|
+
.DS_Store
|
|
20
|
+
.vscode/
|
|
21
|
+
.idea/
|
|
22
|
+
|
|
23
|
+
# environment files
|
|
24
|
+
.env
|
|
25
|
+
|
|
26
|
+
# Scratch area
|
|
27
|
+
scratch/
|
ekagu-0.1.0/CHANGELOG.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Project skeleton: a Textual app started with the `ekagu` command (or `python -m ekagu`), with `--version`.
|
ekagu-0.1.0/CLAUDE.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
|
4
|
+
|
|
5
|
+
## Project Overview
|
|
6
|
+
|
|
7
|
+
ekagu is a simple todo list app, starting out as a Textual TUI. It must run on Linux, macOS and iOS. Guiding idea:
|
|
8
|
+
the app helps the user get going instead of working against them — keep friction low.
|
|
9
|
+
|
|
10
|
+
The name is Esperanto for "take action!".
|
|
11
|
+
|
|
12
|
+
Layout (single package, `src` layout, built with hatchling):
|
|
13
|
+
|
|
14
|
+
- `src/ekagu/__main__.py` — the `ekagu` console script (`ekagu.__main__:main`): argument parsing, then runs the app
|
|
15
|
+
- `src/ekagu/app.py` — `EkaguApp`, the Textual application
|
|
16
|
+
- `tests/` — pytest suite; async tests (pytest-asyncio, `asyncio_mode = "auto"`) drive the app with `App.run_test()`
|
|
17
|
+
|
|
18
|
+
## Development Commands
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
uv sync # runtime + dev group
|
|
22
|
+
uv run ekagu # run the app
|
|
23
|
+
uv run pytest # tests
|
|
24
|
+
uv run ruff check && uv run ruff format # lint + format (line length 120)
|
|
25
|
+
uv run textual console # dev console (terminal 1)
|
|
26
|
+
uv run textual run --dev ekagu.app:EkaguApp # app connected to the console (terminal 2)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Conventions
|
|
30
|
+
|
|
31
|
+
- Python 3.14+; use modern syntax (ruff `UP` rules enforce it).
|
|
32
|
+
- Quit is Textual's default `ctrl+q`; don't add a `q` binding to quit.
|
|
33
|
+
- Every user-visible change gets an entry under `## [Unreleased]` in `CHANGELOG.md`.
|
ekagu-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Rik Huygen
|
|
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.
|
ekagu-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: ekagu
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A todo list that helps you get going instead of working against you.
|
|
5
|
+
Author-email: Rik Huygen <rik.huygen@me.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: tasks,textual,todo,tui
|
|
9
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Operating System :: MacOS
|
|
12
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
|
+
Classifier: Topic :: Office/Business :: Scheduling
|
|
16
|
+
Requires-Python: >=3.14
|
|
17
|
+
Requires-Dist: textual>=8.2
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# ekagu
|
|
21
|
+
|
|
22
|
+
*ekagu* (Esperanto, pronounced ek-**A**-gu): "take action!" — from *ek-* (start to) + *agi* (to act) + *-u*
|
|
23
|
+
(imperative).
|
|
24
|
+
|
|
25
|
+
A simple todo list that helps you get going instead of working against you. It starts out as a terminal UI built
|
|
26
|
+
with [Textual](https://textual.textualize.io/), and is meant to run on Linux, macOS and iOS.
|
|
27
|
+
|
|
28
|
+
> Status: early development — there is nothing to manage yet but a placeholder screen.
|
|
29
|
+
|
|
30
|
+
## Requirements
|
|
31
|
+
|
|
32
|
+
- Python 3.14 or newer
|
|
33
|
+
- [uv](https://docs.astral.sh/uv/) for development
|
|
34
|
+
|
|
35
|
+
## Getting started
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
uv sync # create .venv with the app and the dev tools
|
|
39
|
+
uv run ekagu # start the app; quit with ctrl+q
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Development
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
uv run pytest # run the tests
|
|
46
|
+
uv run ruff check # lint
|
|
47
|
+
uv run ruff format # format
|
|
48
|
+
|
|
49
|
+
uv run textual console # terminal 1: Textual dev console
|
|
50
|
+
uv run textual run --dev ekagu.app:EkaguApp # terminal 2: the app, connected to the console
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
MIT — see [LICENSE](LICENSE).
|
ekagu-0.1.0/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# ekagu
|
|
2
|
+
|
|
3
|
+
*ekagu* (Esperanto, pronounced ek-**A**-gu): "take action!" — from *ek-* (start to) + *agi* (to act) + *-u*
|
|
4
|
+
(imperative).
|
|
5
|
+
|
|
6
|
+
A simple todo list that helps you get going instead of working against you. It starts out as a terminal UI built
|
|
7
|
+
with [Textual](https://textual.textualize.io/), and is meant to run on Linux, macOS and iOS.
|
|
8
|
+
|
|
9
|
+
> Status: early development — there is nothing to manage yet but a placeholder screen.
|
|
10
|
+
|
|
11
|
+
## Requirements
|
|
12
|
+
|
|
13
|
+
- Python 3.14 or newer
|
|
14
|
+
- [uv](https://docs.astral.sh/uv/) for development
|
|
15
|
+
|
|
16
|
+
## Getting started
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
uv sync # create .venv with the app and the dev tools
|
|
20
|
+
uv run ekagu # start the app; quit with ctrl+q
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Development
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
uv run pytest # run the tests
|
|
27
|
+
uv run ruff check # lint
|
|
28
|
+
uv run ruff format # format
|
|
29
|
+
|
|
30
|
+
uv run textual console # terminal 1: Textual dev console
|
|
31
|
+
uv run textual run --dev ekagu.app:EkaguApp # terminal 2: the app, connected to the console
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
MIT — see [LICENSE](LICENSE).
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "ekagu"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "A todo list that helps you get going instead of working against you."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.14"
|
|
7
|
+
license = "MIT"
|
|
8
|
+
license-files = ["LICENSE"]
|
|
9
|
+
authors = [
|
|
10
|
+
{ name = "Rik Huygen", email = "rik.huygen@me.com" }
|
|
11
|
+
]
|
|
12
|
+
keywords = ["todo", "tasks", "tui", "textual"]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Development Status :: 2 - Pre-Alpha",
|
|
15
|
+
"Environment :: Console",
|
|
16
|
+
"Operating System :: MacOS",
|
|
17
|
+
"Operating System :: POSIX :: Linux",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3.14",
|
|
20
|
+
"Topic :: Office/Business :: Scheduling",
|
|
21
|
+
]
|
|
22
|
+
dependencies = [
|
|
23
|
+
"textual>=8.2",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[project.scripts]
|
|
27
|
+
ekagu = "ekagu.__main__:main"
|
|
28
|
+
|
|
29
|
+
[dependency-groups]
|
|
30
|
+
dev = [
|
|
31
|
+
"pytest>=8.4",
|
|
32
|
+
"pytest-asyncio>=1.0",
|
|
33
|
+
"ruff>=0.13",
|
|
34
|
+
"textual-dev>=1.8",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[build-system]
|
|
38
|
+
requires = ["hatchling"]
|
|
39
|
+
build-backend = "hatchling.build"
|
|
40
|
+
|
|
41
|
+
[tool.hatch.build.targets.wheel]
|
|
42
|
+
packages = ["src/ekagu"]
|
|
43
|
+
|
|
44
|
+
[tool.pytest.ini_options]
|
|
45
|
+
testpaths = ["tests"]
|
|
46
|
+
asyncio_mode = "auto"
|
|
47
|
+
asyncio_default_fixture_loop_scope = "function"
|
|
48
|
+
|
|
49
|
+
[tool.ruff]
|
|
50
|
+
line-length = 120
|
|
51
|
+
target-version = "py314"
|
|
52
|
+
|
|
53
|
+
[tool.ruff.lint]
|
|
54
|
+
select = ["E", "F", "W", "I", "UP", "B", "SIM"]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Entry point for the `ekagu` command and `python -m ekagu`."""
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
|
|
5
|
+
from ekagu import __version__
|
|
6
|
+
from ekagu.app import EkaguApp
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def main() -> None:
|
|
10
|
+
parser = argparse.ArgumentParser(prog="ekagu", description="A todo list that helps you get going.")
|
|
11
|
+
parser.add_argument("--version", action="version", version=f"%(prog)s {__version__}")
|
|
12
|
+
parser.parse_args()
|
|
13
|
+
|
|
14
|
+
EkaguApp().run()
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
if __name__ == "__main__":
|
|
18
|
+
main()
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""The Textual application."""
|
|
2
|
+
|
|
3
|
+
from textual.app import App, ComposeResult
|
|
4
|
+
from textual.widgets import Footer, Header, Static
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class EkaguApp(App):
|
|
8
|
+
"""ekagu — take action!"""
|
|
9
|
+
|
|
10
|
+
TITLE = "ekagu"
|
|
11
|
+
SUB_TITLE = "take action!"
|
|
12
|
+
|
|
13
|
+
def compose(self) -> ComposeResult:
|
|
14
|
+
yield Header()
|
|
15
|
+
yield Static("Nothing here yet. Ek al la laboro!", id="placeholder")
|
|
16
|
+
yield Footer()
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from textual.widgets import Static
|
|
2
|
+
|
|
3
|
+
from ekagu.app import EkaguApp
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
async def test_app_starts_and_shows_placeholder():
|
|
7
|
+
app = EkaguApp()
|
|
8
|
+
async with app.run_test() as pilot:
|
|
9
|
+
placeholder = app.query_one("#placeholder", Static)
|
|
10
|
+
assert "Ek al la laboro" in str(placeholder.render())
|
|
11
|
+
await pilot.press("ctrl+q")
|
|
12
|
+
assert app.return_code == 0
|