[PR #147] [MERGED] deps(cachetools): remove third-party dependency cachetools #173

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

📋 Pull Request Information

Original PR: https://github.com/XuehaiPan/nvitop/pull/147
Author: @XuehaiPan
Created: 1/23/2025
Status: Merged
Merged: 1/24/2025
Merged by: @XuehaiPan

Base: mainHead: remove-cachetools


📝 Commits (5)

  • 7f7b512 chore(pre-commit): update pre-commit hooks
  • 72395a4 chore(gui): move cachetools imports
  • 0d56adb feat(api/cache): implement ttl_cache
  • e388b00 deps(cachetools): remove third-party dependency cachetools
  • 5dbd3b3 docs(CHANGELOG): update CHANGELOG.md

📊 Changes

18 files changed (+352 additions, -22 deletions)

View changed files

📝 .pre-commit-config.yaml (+2 -2)
📝 CHANGELOG.md (+1 -1)
📝 README.md (+0 -1)
docs/source/api/caching.rst (+10 -0)
📝 docs/source/index.rst (+1 -0)
📝 docs/source/spelling_wordlist.txt (+3 -0)
📝 nvitop/__init__.py (+12 -2)
📝 nvitop/api/__init__.py (+14 -1)
nvitop/api/caching.py (+279 -0)
📝 nvitop/gui/library/__init__.py (+1 -0)
📝 nvitop/gui/library/device.py (+1 -3)
📝 nvitop/gui/library/process.py (+0 -1)
📝 nvitop/gui/library/utils.py (+16 -1)
📝 nvitop/gui/screens/main/device.py (+10 -3)
📝 nvitop/gui/screens/main/process.py (+1 -2)
📝 nvitop/gui/screens/treeview.py (+1 -2)
📝 pyproject.toml (+0 -2)
📝 requirements.txt (+0 -1)

📄 Description

Issue Type

  • Improvement/feature implementation

Description

Implement ttl_cache and remove the cachetools dependency.

Motivation and Context

Eliminate third-party dependency cachetools.


🔄 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/147 **Author:** [@XuehaiPan](https://github.com/XuehaiPan) **Created:** 1/23/2025 **Status:** ✅ Merged **Merged:** 1/24/2025 **Merged by:** [@XuehaiPan](https://github.com/XuehaiPan) **Base:** `main` ← **Head:** `remove-cachetools` --- ### 📝 Commits (5) - [`7f7b512`](https://github.com/XuehaiPan/nvitop/commit/7f7b512d66b6cb08515ee54e5c2fb10818673999) chore(pre-commit): update pre-commit hooks - [`72395a4`](https://github.com/XuehaiPan/nvitop/commit/72395a4625654d515cf2fb78359e28e922c54faf) chore(gui): move `cachetools` imports - [`0d56adb`](https://github.com/XuehaiPan/nvitop/commit/0d56adb2e3d0eecea92a95c94625b0fa1d7b224f) feat(api/cache): implement `ttl_cache` - [`e388b00`](https://github.com/XuehaiPan/nvitop/commit/e388b00057da733c6c52a27881d8e50c4ab284b5) deps(cachetools): remove third-party dependency `cachetools` - [`5dbd3b3`](https://github.com/XuehaiPan/nvitop/commit/5dbd3b304b54540f2814614d6fba5cd8e21c0693) docs(CHANGELOG): update CHANGELOG.md ### 📊 Changes **18 files changed** (+352 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `.pre-commit-config.yaml` (+2 -2) 📝 `CHANGELOG.md` (+1 -1) 📝 `README.md` (+0 -1) ➕ `docs/source/api/caching.rst` (+10 -0) 📝 `docs/source/index.rst` (+1 -0) 📝 `docs/source/spelling_wordlist.txt` (+3 -0) 📝 `nvitop/__init__.py` (+12 -2) 📝 `nvitop/api/__init__.py` (+14 -1) ➕ `nvitop/api/caching.py` (+279 -0) 📝 `nvitop/gui/library/__init__.py` (+1 -0) 📝 `nvitop/gui/library/device.py` (+1 -3) 📝 `nvitop/gui/library/process.py` (+0 -1) 📝 `nvitop/gui/library/utils.py` (+16 -1) 📝 `nvitop/gui/screens/main/device.py` (+10 -3) 📝 `nvitop/gui/screens/main/process.py` (+1 -2) 📝 `nvitop/gui/screens/treeview.py` (+1 -2) 📝 `pyproject.toml` (+0 -2) 📝 `requirements.txt` (+0 -1) </details> ### 📄 Description <!-- Provide a descriptive summary of the changes in the title above --> #### Issue Type <!-- Pick relevant types and delete the rest --> - Improvement/feature implementation #### Description <!-- Describe the changes in detail --> Implement `ttl_cache` and remove the `cachetools` dependency. #### Motivation and Context <!-- Why are these changes required? --> <!-- What problems do these changes solve? --> <!-- Link to relevant issues --> Eliminate third-party dependency `cachetools`. --- <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:27:13 -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#173
No description provided.