nvclocktop 1.0.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.
Files changed (33) hide show
  1. nvclocktop-1.0.0/.github/workflows/publish-pypi.yml +62 -0
  2. nvclocktop-1.0.0/.gitignore +21 -0
  3. nvclocktop-1.0.0/LICENSE +21 -0
  4. nvclocktop-1.0.0/PKG-INFO +178 -0
  5. nvclocktop-1.0.0/README.md +148 -0
  6. nvclocktop-1.0.0/docs/RELEASE_NOTES.md +48 -0
  7. nvclocktop-1.0.0/docs/assets/hero-macos-apple-silicon.png +0 -0
  8. nvclocktop-1.0.0/docs/assets/presets/preset-big-ocean-nvidia.png +0 -0
  9. nvclocktop-1.0.0/docs/assets/presets/preset-slant-mono-nvidia.png +0 -0
  10. nvclocktop-1.0.0/docs/assets/presets/preset-standard-amber-nvidia.png +0 -0
  11. nvclocktop-1.0.0/docs/assets/presets/preset-terrace-cyber-nvidia.png +0 -0
  12. nvclocktop-1.0.0/docs/assets/presets/preset-terrace-rainbow-nvidia.png +0 -0
  13. nvclocktop-1.0.0/pyproject.toml +67 -0
  14. nvclocktop-1.0.0/scripts/configure_github_repo.sh +13 -0
  15. nvclocktop-1.0.0/scripts/render_readme_assets.py +250 -0
  16. nvclocktop-1.0.0/scripts/set_pypi_github_secret.sh +21 -0
  17. nvclocktop-1.0.0/src/gpu_clock/__init__.py +5 -0
  18. nvclocktop-1.0.0/src/gpu_clock/__main__.py +5 -0
  19. nvclocktop-1.0.0/src/gpu_clock/app.py +130 -0
  20. nvclocktop-1.0.0/src/gpu_clock/cli.py +55 -0
  21. nvclocktop-1.0.0/src/gpu_clock/cpu.py +91 -0
  22. nvclocktop-1.0.0/src/gpu_clock/figlet.py +64 -0
  23. nvclocktop-1.0.0/src/gpu_clock/fonts/README.md +7 -0
  24. nvclocktop-1.0.0/src/gpu_clock/gpu.py +258 -0
  25. nvclocktop-1.0.0/src/gpu_clock/layout.py +346 -0
  26. nvclocktop-1.0.0/src/gpu_clock/theme.py +66 -0
  27. nvclocktop-1.0.0/tests/test_app.py +19 -0
  28. nvclocktop-1.0.0/tests/test_cli.py +27 -0
  29. nvclocktop-1.0.0/tests/test_cpu.py +14 -0
  30. nvclocktop-1.0.0/tests/test_figlet.py +12 -0
  31. nvclocktop-1.0.0/tests/test_gpu.py +24 -0
  32. nvclocktop-1.0.0/tests/test_layout.py +14 -0
  33. nvclocktop-1.0.0/tests/test_theme.py +12 -0
@@ -0,0 +1,62 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ build:
14
+ name: Build package
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - name: Check out repository
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: "3.12"
25
+
26
+ - name: Install build tools
27
+ run: python -m pip install --upgrade build ".[dev]"
28
+
29
+ - name: Run tests
30
+ run: python -m pytest
31
+
32
+ - name: Build distributions
33
+ run: python -m build
34
+
35
+ - name: Upload distributions
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: python-distributions
39
+ path: dist/
40
+
41
+ publish:
42
+ name: Publish package to PyPI
43
+ needs: build
44
+ runs-on: ubuntu-latest
45
+ environment:
46
+ name: pypi
47
+ url: https://pypi.org/p/nvclocktop
48
+ permissions:
49
+ contents: read
50
+
51
+ steps:
52
+ - name: Download distributions
53
+ uses: actions/download-artifact@v4
54
+ with:
55
+ name: python-distributions
56
+ path: dist/
57
+
58
+ - name: Publish distributions
59
+ uses: pypa/gh-action-pypi-publish@release/v1
60
+ with:
61
+ user: __token__
62
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,21 @@
1
+ .DS_Store
2
+ .venv/
3
+ .claude/
4
+ .omx/
5
+ __pycache__/
6
+ *.py[cod]
7
+ *.egg-info/
8
+ .pytest_cache/
9
+ .ruff_cache/
10
+ dist/
11
+ build/
12
+
13
+ # Local planning and agent context
14
+ AGENTS.md
15
+ Agents.md
16
+ PRD.md
17
+ docs/PRD.md
18
+ PyPi_token
19
+
20
+ # Local archive of design iterations and generated build artifacts
21
+ docs/archive/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 gpu-clock contributors
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,178 @@
1
+ Metadata-Version: 2.4
2
+ Name: nvclocktop
3
+ Version: 1.0.0
4
+ Summary: A fullscreen terminal clock and GPU dashboard for NVIDIA Linux workstations and Apple Silicon Macs.
5
+ Author: nvclocktop contributors
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Keywords: apple-silicon,clock,dashboard,gpu,linux,macos,monitoring,nvidia,nvidia-smi,terminal,tui
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: POSIX :: Linux
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: System :: Monitoring
19
+ Classifier: Topic :: Terminals
20
+ Requires-Python: >=3.10
21
+ Requires-Dist: psutil>=5.9
22
+ Requires-Dist: pyfiglet>=1.0
23
+ Requires-Dist: rich>=13.7
24
+ Provides-Extra: dev
25
+ Requires-Dist: cairosvg>=2.7; extra == 'dev'
26
+ Requires-Dist: pillow>=10.0; extra == 'dev'
27
+ Requires-Dist: pytest>=8.0; extra == 'dev'
28
+ Requires-Dist: ruff>=0.5; extra == 'dev'
29
+ Description-Content-Type: text/markdown
30
+
31
+ <div align="center">
32
+
33
+ <h1>nvclocktop</h1>
34
+
35
+ <p>
36
+ <strong>A fullscreen terminal clock and GPU dashboard for NVIDIA Linux workstations and Apple Silicon Macs.</strong>
37
+ </p>
38
+
39
+ <p>
40
+ Turn any terminal into a live status screen for AI workstations, local model machines, homelab servers, and SSH sessions.
41
+ </p>
42
+
43
+ <img src="docs/assets/hero-macos-apple-silicon.png" alt="nvclocktop running on an Apple Silicon Mac">
44
+
45
+ </div>
46
+
47
+ ---
48
+
49
+ `nvclocktop` combines a large readable clock, CPU activity, memory usage, and GPU metrics in one colorful terminal dashboard.
50
+
51
+ ## Preset Gallery
52
+
53
+ <table>
54
+ <tr>
55
+ <th><code>--font terrace --theme rainbow</code></th>
56
+ <th><code>--font terrace --theme cyber</code></th>
57
+ </tr>
58
+ <tr>
59
+ <td><img src="docs/assets/presets/preset-terrace-rainbow-nvidia.png" alt="terrace font with rainbow theme on NVIDIA Linux" width="420"></td>
60
+ <td><img src="docs/assets/presets/preset-terrace-cyber-nvidia.png" alt="terrace font with cyber theme on NVIDIA Linux" width="420"></td>
61
+ </tr>
62
+ <tr>
63
+ <th><code>--font big --theme ocean</code></th>
64
+ <th><code>--font standard --theme amber</code></th>
65
+ </tr>
66
+ <tr>
67
+ <td><img src="docs/assets/presets/preset-big-ocean-nvidia.png" alt="big font with ocean theme on NVIDIA Linux" width="420"></td>
68
+ <td><img src="docs/assets/presets/preset-standard-amber-nvidia.png" alt="standard font with amber theme on NVIDIA Linux" width="420"></td>
69
+ </tr>
70
+ <tr>
71
+ <th><code>--font slant --theme mono</code></th>
72
+ <th></th>
73
+ </tr>
74
+ <tr>
75
+ <td><img src="docs/assets/presets/preset-slant-mono-nvidia.png" alt="slant font with mono theme on NVIDIA Linux" width="420"></td>
76
+ <td></td>
77
+ </tr>
78
+ </table>
79
+
80
+ ## Installation
81
+
82
+ ```bash
83
+ pip install nvclocktop
84
+ ```
85
+
86
+ Or with `pipx`:
87
+
88
+ ```bash
89
+ pipx install nvclocktop
90
+ ```
91
+
92
+ ## Usage
93
+
94
+ ```bash
95
+ nvclocktop
96
+ ```
97
+
98
+ Useful options:
99
+
100
+ ```bash
101
+ nvclocktop --refresh 1
102
+ nvclocktop --once
103
+ nvclocktop --font big
104
+ nvclocktop --theme cyber
105
+ ```
106
+
107
+ ## Features
108
+
109
+ - Large fixed-position terminal clock with seconds
110
+ - CPU usage, memory, load average, and per-thread activity
111
+ - NVIDIA GPU usage, memory, temperature, power, fan, and driver info on Linux
112
+ - Apple Silicon GPU and unified memory display on macOS
113
+ - Adaptive layout for wide and compact terminals
114
+ - Keyboard controls: `Q` to quit, `H` for help
115
+ - Works well over SSH
116
+
117
+ ## Style Presets
118
+
119
+ `nvclocktop` ships with official clock font and color presets. Invalid preset names are rejected by the CLI, so saved scripts and dashboard setups fail fast instead of silently falling back to an unexpected style.
120
+
121
+ Available font presets:
122
+
123
+ ```bash
124
+ nvclocktop --font terrace
125
+ nvclocktop --font big
126
+ nvclocktop --font standard
127
+ nvclocktop --font slant
128
+ nvclocktop --font chunky
129
+ ```
130
+
131
+ Available color themes:
132
+
133
+ ```bash
134
+ nvclocktop --theme rainbow
135
+ nvclocktop --theme cyber
136
+ nvclocktop --theme ocean
137
+ nvclocktop --theme amber
138
+ nvclocktop --theme mono
139
+ ```
140
+
141
+ ## Platform Support
142
+
143
+ Currently supported:
144
+
145
+ | Platform | GPU support | Notes |
146
+ | --- | --- | --- |
147
+ | Linux | NVIDIA GPUs via `nvidia-smi` | Best supported path |
148
+ | macOS | Apple Silicon GPU display | Includes unified memory display |
149
+ | CPU | Intel and AMD CPUs | Uses standard system metrics |
150
+
151
+ Not currently supported:
152
+
153
+ - AMD GPUs
154
+ - Intel GPUs
155
+ - Windows native terminal
156
+
157
+ ## Keyboard Shortcuts
158
+
159
+ | Key | Action |
160
+ | --- | --- |
161
+ | `Q` | Quit |
162
+ | `H` | Show or hide help |
163
+ | `Ctrl+C` | Quit immediately |
164
+
165
+ ## Development
166
+
167
+ ```bash
168
+ git clone https://github.com/YOUR_USERNAME/nvclocktop.git
169
+ cd nvclocktop
170
+ python3 -m venv .venv
171
+ . .venv/bin/activate
172
+ pip install -e ".[dev]"
173
+ pytest
174
+ ```
175
+
176
+ ## License
177
+
178
+ MIT
@@ -0,0 +1,148 @@
1
+ <div align="center">
2
+
3
+ <h1>nvclocktop</h1>
4
+
5
+ <p>
6
+ <strong>A fullscreen terminal clock and GPU dashboard for NVIDIA Linux workstations and Apple Silicon Macs.</strong>
7
+ </p>
8
+
9
+ <p>
10
+ Turn any terminal into a live status screen for AI workstations, local model machines, homelab servers, and SSH sessions.
11
+ </p>
12
+
13
+ <img src="docs/assets/hero-macos-apple-silicon.png" alt="nvclocktop running on an Apple Silicon Mac">
14
+
15
+ </div>
16
+
17
+ ---
18
+
19
+ `nvclocktop` combines a large readable clock, CPU activity, memory usage, and GPU metrics in one colorful terminal dashboard.
20
+
21
+ ## Preset Gallery
22
+
23
+ <table>
24
+ <tr>
25
+ <th><code>--font terrace --theme rainbow</code></th>
26
+ <th><code>--font terrace --theme cyber</code></th>
27
+ </tr>
28
+ <tr>
29
+ <td><img src="docs/assets/presets/preset-terrace-rainbow-nvidia.png" alt="terrace font with rainbow theme on NVIDIA Linux" width="420"></td>
30
+ <td><img src="docs/assets/presets/preset-terrace-cyber-nvidia.png" alt="terrace font with cyber theme on NVIDIA Linux" width="420"></td>
31
+ </tr>
32
+ <tr>
33
+ <th><code>--font big --theme ocean</code></th>
34
+ <th><code>--font standard --theme amber</code></th>
35
+ </tr>
36
+ <tr>
37
+ <td><img src="docs/assets/presets/preset-big-ocean-nvidia.png" alt="big font with ocean theme on NVIDIA Linux" width="420"></td>
38
+ <td><img src="docs/assets/presets/preset-standard-amber-nvidia.png" alt="standard font with amber theme on NVIDIA Linux" width="420"></td>
39
+ </tr>
40
+ <tr>
41
+ <th><code>--font slant --theme mono</code></th>
42
+ <th></th>
43
+ </tr>
44
+ <tr>
45
+ <td><img src="docs/assets/presets/preset-slant-mono-nvidia.png" alt="slant font with mono theme on NVIDIA Linux" width="420"></td>
46
+ <td></td>
47
+ </tr>
48
+ </table>
49
+
50
+ ## Installation
51
+
52
+ ```bash
53
+ pip install nvclocktop
54
+ ```
55
+
56
+ Or with `pipx`:
57
+
58
+ ```bash
59
+ pipx install nvclocktop
60
+ ```
61
+
62
+ ## Usage
63
+
64
+ ```bash
65
+ nvclocktop
66
+ ```
67
+
68
+ Useful options:
69
+
70
+ ```bash
71
+ nvclocktop --refresh 1
72
+ nvclocktop --once
73
+ nvclocktop --font big
74
+ nvclocktop --theme cyber
75
+ ```
76
+
77
+ ## Features
78
+
79
+ - Large fixed-position terminal clock with seconds
80
+ - CPU usage, memory, load average, and per-thread activity
81
+ - NVIDIA GPU usage, memory, temperature, power, fan, and driver info on Linux
82
+ - Apple Silicon GPU and unified memory display on macOS
83
+ - Adaptive layout for wide and compact terminals
84
+ - Keyboard controls: `Q` to quit, `H` for help
85
+ - Works well over SSH
86
+
87
+ ## Style Presets
88
+
89
+ `nvclocktop` ships with official clock font and color presets. Invalid preset names are rejected by the CLI, so saved scripts and dashboard setups fail fast instead of silently falling back to an unexpected style.
90
+
91
+ Available font presets:
92
+
93
+ ```bash
94
+ nvclocktop --font terrace
95
+ nvclocktop --font big
96
+ nvclocktop --font standard
97
+ nvclocktop --font slant
98
+ nvclocktop --font chunky
99
+ ```
100
+
101
+ Available color themes:
102
+
103
+ ```bash
104
+ nvclocktop --theme rainbow
105
+ nvclocktop --theme cyber
106
+ nvclocktop --theme ocean
107
+ nvclocktop --theme amber
108
+ nvclocktop --theme mono
109
+ ```
110
+
111
+ ## Platform Support
112
+
113
+ Currently supported:
114
+
115
+ | Platform | GPU support | Notes |
116
+ | --- | --- | --- |
117
+ | Linux | NVIDIA GPUs via `nvidia-smi` | Best supported path |
118
+ | macOS | Apple Silicon GPU display | Includes unified memory display |
119
+ | CPU | Intel and AMD CPUs | Uses standard system metrics |
120
+
121
+ Not currently supported:
122
+
123
+ - AMD GPUs
124
+ - Intel GPUs
125
+ - Windows native terminal
126
+
127
+ ## Keyboard Shortcuts
128
+
129
+ | Key | Action |
130
+ | --- | --- |
131
+ | `Q` | Quit |
132
+ | `H` | Show or hide help |
133
+ | `Ctrl+C` | Quit immediately |
134
+
135
+ ## Development
136
+
137
+ ```bash
138
+ git clone https://github.com/YOUR_USERNAME/nvclocktop.git
139
+ cd nvclocktop
140
+ python3 -m venv .venv
141
+ . .venv/bin/activate
142
+ pip install -e ".[dev]"
143
+ pytest
144
+ ```
145
+
146
+ ## License
147
+
148
+ MIT
@@ -0,0 +1,48 @@
1
+ # Release Notes
2
+
3
+ ## v1.0.0
4
+
5
+ Initial stable release of `nvclocktop`, a fullscreen terminal clock and GPU dashboard for NVIDIA Linux workstations and Apple Silicon Macs.
6
+
7
+ ### Highlights
8
+
9
+ - Large fullscreen terminal clock with selectable FIGlet-style font presets.
10
+ - Color theme presets for terminal dashboards, including rainbow, cyber, ocean, amber, and mono.
11
+ - NVIDIA GPU monitoring through `nvidia-smi`, including utilization, memory, temperature, power, fan, driver, and process information.
12
+ - Apple Silicon GPU summary with Metal support and unified memory display.
13
+ - CPU panel with usage, memory, load average, frequency, temperature, and per-thread activity.
14
+ - Adaptive layout for compact and wide terminals.
15
+ - Keyboard controls for quitting and toggling help.
16
+ - One-shot render mode for screenshots, testing, and documentation assets.
17
+
18
+ ### Installation
19
+
20
+ ```bash
21
+ pip install nvclocktop
22
+ ```
23
+
24
+ ### Usage
25
+
26
+ ```bash
27
+ nvclocktop
28
+ ```
29
+
30
+ Useful options:
31
+
32
+ ```bash
33
+ nvclocktop --theme cyber
34
+ nvclocktop --font big
35
+ nvclocktop --refresh 1
36
+ nvclocktop --once
37
+ ```
38
+
39
+ ### Supported Platforms
40
+
41
+ - Linux with NVIDIA GPUs and `nvidia-smi`
42
+ - macOS on Apple Silicon
43
+ - CPU-only display on other supported Python environments
44
+
45
+ ### Notes
46
+
47
+ - The package name and command are both `nvclocktop`.
48
+ - This release is published as version `1.0.0`.
@@ -0,0 +1,67 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.25"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "nvclocktop"
7
+ version = "1.0.0"
8
+ description = "A fullscreen terminal clock and GPU dashboard for NVIDIA Linux workstations and Apple Silicon Macs."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = "MIT"
12
+ authors = [
13
+ { name = "nvclocktop contributors" }
14
+ ]
15
+ keywords = [
16
+ "gpu",
17
+ "nvidia",
18
+ "nvidia-smi",
19
+ "terminal",
20
+ "tui",
21
+ "dashboard",
22
+ "monitoring",
23
+ "clock",
24
+ "macos",
25
+ "apple-silicon",
26
+ "linux",
27
+ ]
28
+ classifiers = [
29
+ "Development Status :: 5 - Production/Stable",
30
+ "Environment :: Console",
31
+ "Intended Audience :: Developers",
32
+ "License :: OSI Approved :: MIT License",
33
+ "Operating System :: POSIX :: Linux",
34
+ "Programming Language :: Python :: 3",
35
+ "Programming Language :: Python :: 3.10",
36
+ "Programming Language :: Python :: 3.11",
37
+ "Programming Language :: Python :: 3.12",
38
+ "Topic :: System :: Monitoring",
39
+ "Topic :: Terminals",
40
+ ]
41
+ dependencies = [
42
+ "psutil>=5.9",
43
+ "pyfiglet>=1.0",
44
+ "rich>=13.7",
45
+ ]
46
+
47
+ [project.optional-dependencies]
48
+ dev = [
49
+ "cairosvg>=2.7",
50
+ "pillow>=10.0",
51
+ "pytest>=8.0",
52
+ "ruff>=0.5",
53
+ ]
54
+
55
+ [project.scripts]
56
+ nvclocktop = "gpu_clock.cli:main"
57
+
58
+ [tool.hatch.build.targets.wheel]
59
+ packages = ["src/gpu_clock"]
60
+
61
+
62
+ [tool.ruff]
63
+ line-length = 100
64
+ target-version = "py310"
65
+
66
+ [tool.pytest.ini_options]
67
+ testpaths = ["tests"]
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ description="A fullscreen terminal clock and GPU dashboard for NVIDIA Linux workstations and Apple Silicon Macs."
5
+ topics="gpu,nvidia,nvidia-smi,terminal,tui,dashboard,monitoring,clock,python,rich,macos,apple-silicon,linux,ai-workstation,homelab"
6
+
7
+ if ! command -v gh >/dev/null 2>&1; then
8
+ echo "GitHub CLI (gh) is required to configure the repository." >&2
9
+ exit 1
10
+ fi
11
+
12
+ gh repo edit --description "$description" --add-topic "$topics"
13
+ echo "GitHub repository description and topics have been configured."