[PR #54] [MERGED] refactor(api): compact and rename top-level module #139

Closed
opened 2026-05-05 03:26:34 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/XuehaiPan/nvitop/pull/54
Author: @XuehaiPan
Created: 1/4/2023
Status: Merged
Merged: 1/4/2023
Merged by: @XuehaiPan

Base: mainHead: api


📝 Commits (1)

  • d572653 refactor(api): compact and rename top-level module

📊 Changes

33 files changed (+85 additions, -67 deletions)

View changed files

📝 .pre-commit-config.yaml (+2 -2)
📝 README.md (+20 -17)
📝 docs/source/api/collector.rst (+0 -0)
📝 docs/source/api/device.rst (+0 -0)
📝 docs/source/api/host.rst (+0 -0)
📝 docs/source/api/libcuda.rst (+1 -1)
📝 docs/source/api/libcudart.rst (+1 -1)
📝 docs/source/api/libnvml.rst (+0 -0)
📝 docs/source/api/process.rst (+0 -0)
📝 docs/source/api/utils.rst (+1 -1)
📝 docs/source/index.rst (+8 -8)
📝 docs/source/spelling_wordlist.txt (+3 -0)
📝 nvitop/__init__.py (+16 -4)
📝 nvitop/api/LICENSE (+0 -0)
📝 nvitop/api/__init__.py (+6 -6)
📝 nvitop/api/collector.py (+4 -4)
📝 nvitop/api/device.py (+3 -3)
📝 nvitop/api/host.py (+0 -0)
📝 nvitop/api/libcuda.py (+0 -0)
📝 nvitop/api/libcudart.py (+0 -0)

...and 13 more files

📄 Description

Issue Type

  • Breaking changes

Description

Compact and rename the top-level module.

Rename nvitop.core to nvitop.api.

The old top-level imports still work fine.

import nvitop
from nvitop import *

NEW: Support top-level imports:

import nvitop.device
import nvitop.host
import nvitop.process
...

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/XuehaiPan/nvitop/pull/54 **Author:** [@XuehaiPan](https://github.com/XuehaiPan) **Created:** 1/4/2023 **Status:** ✅ Merged **Merged:** 1/4/2023 **Merged by:** [@XuehaiPan](https://github.com/XuehaiPan) **Base:** `main` ← **Head:** `api` --- ### 📝 Commits (1) - [`d572653`](https://github.com/XuehaiPan/nvitop/commit/d57265307bbc5fcf0c448e0f488748136fe4c780) refactor(api): compact and rename top-level module ### 📊 Changes **33 files changed** (+85 additions, -67 deletions) <details> <summary>View changed files</summary> 📝 `.pre-commit-config.yaml` (+2 -2) 📝 `README.md` (+20 -17) 📝 `docs/source/api/collector.rst` (+0 -0) 📝 `docs/source/api/device.rst` (+0 -0) 📝 `docs/source/api/host.rst` (+0 -0) 📝 `docs/source/api/libcuda.rst` (+1 -1) 📝 `docs/source/api/libcudart.rst` (+1 -1) 📝 `docs/source/api/libnvml.rst` (+0 -0) 📝 `docs/source/api/process.rst` (+0 -0) 📝 `docs/source/api/utils.rst` (+1 -1) 📝 `docs/source/index.rst` (+8 -8) 📝 `docs/source/spelling_wordlist.txt` (+3 -0) 📝 `nvitop/__init__.py` (+16 -4) 📝 `nvitop/api/LICENSE` (+0 -0) 📝 `nvitop/api/__init__.py` (+6 -6) 📝 `nvitop/api/collector.py` (+4 -4) 📝 `nvitop/api/device.py` (+3 -3) 📝 `nvitop/api/host.py` (+0 -0) 📝 `nvitop/api/libcuda.py` (+0 -0) 📝 `nvitop/api/libcudart.py` (+0 -0) _...and 13 more files_ </details> ### 📄 Description #### Issue Type <!-- Pick relevant types and delete the rest --> - Breaking changes #### Description <!-- Describe the changes in detail --> Compact and rename the top-level module. Rename `nvitop.core` to `nvitop.api`. The old top-level imports still work fine. ```python import nvitop from nvitop import * ``` NEW: Support top-level imports: ```python import nvitop.device import nvitop.host import nvitop.process ... ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 03:26:34 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/nvitop#139
No description provided.