pgntui 0.1.2__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 (79) hide show
  1. pgntui-0.1.2/.github/workflows/ci.yml +23 -0
  2. pgntui-0.1.2/.github/workflows/release.yml +62 -0
  3. pgntui-0.1.2/.gitignore +14 -0
  4. pgntui-0.1.2/LICENSE +21 -0
  5. pgntui-0.1.2/PKG-INFO +66 -0
  6. pgntui-0.1.2/README.md +15 -0
  7. pgntui-0.1.2/docs/superpowers/plans/2026-06-04-pgntui-implementation.md +3598 -0
  8. pgntui-0.1.2/docs/superpowers/specs/2026-06-04-pgntui-design.md +415 -0
  9. pgntui-0.1.2/packaging/homebrew/pgntui.rb +19 -0
  10. pgntui-0.1.2/packaging/winget/phobic.pgntui.yaml +21 -0
  11. pgntui-0.1.2/pyproject.toml +77 -0
  12. pgntui-0.1.2/src/pgntui/__init__.py +3 -0
  13. pgntui-0.1.2/src/pgntui/__main__.py +55 -0
  14. pgntui-0.1.2/src/pgntui/app.py +67 -0
  15. pgntui-0.1.2/src/pgntui/config.py +42 -0
  16. pgntui-0.1.2/src/pgntui/containers/__init__.py +0 -0
  17. pgntui-0.1.2/src/pgntui/containers/loader.py +59 -0
  18. pgntui-0.1.2/src/pgntui/containers/screen.py +60 -0
  19. pgntui-0.1.2/src/pgntui/debug/__init__.py +0 -0
  20. pgntui-0.1.2/src/pgntui/debug/tab.py +46 -0
  21. pgntui-0.1.2/src/pgntui/decode/__init__.py +0 -0
  22. pgntui-0.1.2/src/pgntui/decode/canboat.py +111 -0
  23. pgntui-0.1.2/src/pgntui/decode/pgns.json +67732 -0
  24. pgntui-0.1.2/src/pgntui/decode/router.py +52 -0
  25. pgntui-0.1.2/src/pgntui/drivers/__init__.py +0 -0
  26. pgntui-0.1.2/src/pgntui/drivers/actisense.py +136 -0
  27. pgntui-0.1.2/src/pgntui/drivers/base.py +33 -0
  28. pgntui-0.1.2/src/pgntui/drivers/replay.py +55 -0
  29. pgntui-0.1.2/src/pgntui/logging/__init__.py +0 -0
  30. pgntui-0.1.2/src/pgntui/logging/csv.py +42 -0
  31. pgntui-0.1.2/src/pgntui/recording/__init__.py +0 -0
  32. pgntui-0.1.2/src/pgntui/recording/reader.py +37 -0
  33. pgntui-0.1.2/src/pgntui/recording/writer.py +46 -0
  34. pgntui-0.1.2/src/pgntui/replay_mode.py +42 -0
  35. pgntui-0.1.2/src/pgntui/signals/__init__.py +0 -0
  36. pgntui-0.1.2/src/pgntui/signals/base.py +158 -0
  37. pgntui-0.1.2/src/pgntui/signals/widgets.py +140 -0
  38. pgntui-0.1.2/src/pgntui/themes/__init__.py +0 -0
  39. pgntui-0.1.2/src/pgntui/themes/builtin/__init__.py +0 -0
  40. pgntui-0.1.2/src/pgntui/themes/builtin/amber-crt.json +13 -0
  41. pgntui-0.1.2/src/pgntui/themes/builtin/dark.json +16 -0
  42. pgntui-0.1.2/src/pgntui/themes/builtin/green-phosphor.json +13 -0
  43. pgntui-0.1.2/src/pgntui/themes/builtin/light.json +13 -0
  44. pgntui-0.1.2/src/pgntui/themes/builtin/mono-ascii.json +13 -0
  45. pgntui-0.1.2/src/pgntui/themes/builtin/rainbow-disco.json +20 -0
  46. pgntui-0.1.2/src/pgntui/themes/loader.py +125 -0
  47. pgntui-0.1.2/tests/__init__.py +0 -0
  48. pgntui-0.1.2/tests/fixtures/__init__.py +0 -0
  49. pgntui-0.1.2/tests/fixtures/e2e_containers/engine.json +2 -0
  50. pgntui-0.1.2/tests/fixtures/e2e_containers/nav.json +2 -0
  51. pgntui-0.1.2/tests/fixtures/e2e_session.pgnlog +4 -0
  52. pgntui-0.1.2/tests/fixtures/e2e_signals/engine_rpm.json +3 -0
  53. pgntui-0.1.2/tests/fixtures/e2e_signals/wind_speed.json +3 -0
  54. pgntui-0.1.2/tests/fixtures/frames.py +17 -0
  55. pgntui-0.1.2/tests/fixtures/sample.pgnlog +3 -0
  56. pgntui-0.1.2/tests/test_actisense_driver.py +47 -0
  57. pgntui-0.1.2/tests/test_app_shell.py +22 -0
  58. pgntui-0.1.2/tests/test_builtin_themes.py +30 -0
  59. pgntui-0.1.2/tests/test_canboat.py +26 -0
  60. pgntui-0.1.2/tests/test_cli.py +22 -0
  61. pgntui-0.1.2/tests/test_config.py +23 -0
  62. pgntui-0.1.2/tests/test_container_screen.py +52 -0
  63. pgntui-0.1.2/tests/test_containers_loader.py +81 -0
  64. pgntui-0.1.2/tests/test_csv_logger.py +31 -0
  65. pgntui-0.1.2/tests/test_debug_tab.py +43 -0
  66. pgntui-0.1.2/tests/test_drivers_base.py +41 -0
  67. pgntui-0.1.2/tests/test_e2e_replay.py +52 -0
  68. pgntui-0.1.2/tests/test_packaging.py +39 -0
  69. pgntui-0.1.2/tests/test_recording_writer.py +29 -0
  70. pgntui-0.1.2/tests/test_replay_driver.py +36 -0
  71. pgntui-0.1.2/tests/test_replay_mode.py +38 -0
  72. pgntui-0.1.2/tests/test_router.py +46 -0
  73. pgntui-0.1.2/tests/test_signals_base.py +166 -0
  74. pgntui-0.1.2/tests/test_smoke.py +11 -0
  75. pgntui-0.1.2/tests/test_themes_loader.py +75 -0
  76. pgntui-0.1.2/tests/test_widgets_analog_in.py +51 -0
  77. pgntui-0.1.2/tests/test_widgets_analog_out.py +41 -0
  78. pgntui-0.1.2/tests/test_widgets_digital_in.py +28 -0
  79. pgntui-0.1.2/tests/test_widgets_digital_out.py +41 -0
@@ -0,0 +1,23 @@
1
+ name: ci
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ pull_request:
6
+ jobs:
7
+ test:
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ os: [ubuntu-latest, macos-latest, windows-latest]
12
+ python: ["3.11", "3.12", "3.13"]
13
+ runs-on: ${{ matrix.os }}
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-python@v5
17
+ with:
18
+ python-version: ${{ matrix.python }}
19
+ - run: pip install -e ".[dev]"
20
+ - run: ruff check .
21
+ - run: ruff format --check .
22
+ - run: mypy src/pgntui
23
+ - run: pytest -q
@@ -0,0 +1,62 @@
1
+ name: release
2
+ # Repository: phobicdotno/pgntui
3
+ # PyPI Trusted Publisher binding: account `phobic`, repo `phobicdotno/pgntui`, workflow `release.yml`
4
+ on:
5
+ push:
6
+ tags: ["v*"]
7
+
8
+ jobs:
9
+ pypi:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ id-token: write
13
+ contents: read
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-python@v5
17
+ with: { python-version: "3.12" }
18
+ - run: pip install build
19
+ - run: python -m build
20
+ - name: Publish to PyPI (Trusted Publisher)
21
+ uses: pypa/gh-action-pypi-publish@release/v1
22
+
23
+ binaries:
24
+ strategy:
25
+ fail-fast: false
26
+ matrix:
27
+ include:
28
+ - os: macos-14
29
+ arch: arm64
30
+ asset: pgntui-macos-arm64
31
+ - os: macos-13
32
+ arch: x86_64
33
+ asset: pgntui-macos-x86_64
34
+ - os: ubuntu-latest
35
+ arch: x86_64
36
+ asset: pgntui-linux-x86_64
37
+ - os: windows-latest
38
+ arch: x86_64
39
+ asset: pgntui-windows-x86_64.exe
40
+ runs-on: ${{ matrix.os }}
41
+ permissions:
42
+ contents: write
43
+ steps:
44
+ - uses: actions/checkout@v4
45
+ - uses: actions/setup-python@v5
46
+ with: { python-version: "3.12" }
47
+ - run: pip install -e ".[dev,dist]"
48
+ - run: pyinstaller pgntui.spec
49
+ - name: Upload binary
50
+ uses: softprops/action-gh-release@v2
51
+ with:
52
+ files: dist/${{ matrix.asset }}
53
+
54
+ homebrew_winget:
55
+ needs: [pypi, binaries]
56
+ runs-on: ubuntu-latest
57
+ steps:
58
+ - uses: actions/checkout@v4
59
+ - name: Update homebrew tap stub (manual follow-up to phobicdotno/homebrew-tap)
60
+ run: echo "Bump packaging/homebrew/pgntui.rb in phobicdotno/homebrew-tap for ${GITHUB_REF_NAME}"
61
+ - name: Update winget manifest stub (manual follow-up to microsoft/winget-pkgs)
62
+ run: echo "Bump packaging/winget/phobic.pgntui.yaml PR to microsoft/winget-pkgs for ${GITHUB_REF_NAME}"
@@ -0,0 +1,14 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv/
4
+ .pytest_cache/
5
+ .mypy_cache/
6
+ .ruff_cache/
7
+ dist/
8
+ build/
9
+ *.egg-info/
10
+ .coverage
11
+ htmlcov/
12
+ .DS_Store
13
+ *.spec
14
+ pgntui.bin/
pgntui-0.1.2/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 phobicdotno
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.
pgntui-0.1.2/PKG-INFO ADDED
@@ -0,0 +1,66 @@
1
+ Metadata-Version: 2.4
2
+ Name: pgntui
3
+ Version: 0.1.2
4
+ Summary: Cross-platform TUI for NMEA 2000 with canboat decoding and pluggable drivers
5
+ Author: phobicdotno
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 phobicdotno
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+ License-File: LICENSE
28
+ Keywords: canboat,marine,n2k,nmea2000,tui
29
+ Classifier: Development Status :: 3 - Alpha
30
+ Classifier: Environment :: Console :: Curses
31
+ Classifier: License :: OSI Approved :: MIT License
32
+ Classifier: Operating System :: MacOS
33
+ Classifier: Operating System :: Microsoft :: Windows
34
+ Classifier: Operating System :: POSIX :: Linux
35
+ Classifier: Programming Language :: Python :: 3.11
36
+ Classifier: Programming Language :: Python :: 3.12
37
+ Classifier: Programming Language :: Python :: 3.13
38
+ Classifier: Topic :: Terminals
39
+ Requires-Python: >=3.11
40
+ Requires-Dist: pyserial>=3.5
41
+ Requires-Dist: textual>=0.80
42
+ Provides-Extra: dev
43
+ Requires-Dist: mypy>=1.10; extra == 'dev'
44
+ Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
45
+ Requires-Dist: pytest-textual-snapshot>=1.0; extra == 'dev'
46
+ Requires-Dist: pytest>=8; extra == 'dev'
47
+ Requires-Dist: ruff>=0.6; extra == 'dev'
48
+ Provides-Extra: dist
49
+ Requires-Dist: pyinstaller>=6.6; extra == 'dist'
50
+ Description-Content-Type: text/markdown
51
+
52
+ # pgntui
53
+
54
+ Cross-platform terminal UI for NMEA 2000. Pluggable drivers, canboat decoding,
55
+ JSON-configured dashboards, record/replay.
56
+
57
+ ## Install
58
+
59
+ pipx install pgntui
60
+
61
+ ## Run
62
+
63
+ pgntui
64
+ pgntui replay path/to/session.pgnlog
65
+
66
+ See `docs/superpowers/specs/2026-06-04-pgntui-design.md` for the design.
pgntui-0.1.2/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # pgntui
2
+
3
+ Cross-platform terminal UI for NMEA 2000. Pluggable drivers, canboat decoding,
4
+ JSON-configured dashboards, record/replay.
5
+
6
+ ## Install
7
+
8
+ pipx install pgntui
9
+
10
+ ## Run
11
+
12
+ pgntui
13
+ pgntui replay path/to/session.pgnlog
14
+
15
+ See `docs/superpowers/specs/2026-06-04-pgntui-design.md` for the design.