A Cmdline tools to show PyTorch/CUDA/Nvidia GPU info
Project description
torchfetch
[English | 中文说明见下方]
A modern, neofetch-style CLI tool to display detailed information about your PyTorch, CUDA, cuDNN, Python, and NVIDIA driver environment. Beautifully formatted with rich, supports both system and Python package checks, and is especially useful for debugging deep learning environments.
Features
- Neofetch-inspired, colorful CLI output with ASCII logo
- Detects PyTorch, CUDA, cuDNN, Python versions and their compatibility
- Checks if PyTorch is built with CUDA, and if
pytorch-cudais available - Lists system and Python package CUDA/cuDNN
.sofiles - Detects NVIDIA driver (
libcuda.so,libnvidia-ml.so) - Shows GPU details (name, memory, compute capability)
- Detects and displays virtual environment (venv/conda) info
- Bilingual output (English/Chinese) planned for future
Quick Start
pip install torchfetch # (if available on PyPI)
# or clone and run
python -m torchfetch
Example Output
Usage
python -m torchfetch [--venv /path/to/venv]
--venv: Manually specify a virtual/conda environment path (overrides autodetect)
Requirements
- Python 3.8+
- rich
- torch (optional, for full features)
Project Structure
main.py: CLI entrysrc/torchfetch/: Core logic, display, utilstests/: Test cases
License
MIT
torchfetch
一个现代化、neofetch 风格的命令行工具,优雅展示你的 PyTorch、CUDA、cuDNN、Python 及 NVIDIA 驱动环境信息。基于 rich 美化输出,支持系统与 Python 包多重检测,深度学习环境调试利器。
功能特性
- neofetch 风格彩色 CLI 输出,带 ASCII logo
- 检测 PyTorch、CUDA、cuDNN、Python 版本及兼容性
- 检查 PyTorch 是否自带 CUDA,
pytorch-cuda是否可用 - 列出系统和 Python 包内 CUDA/cuDNN
.so文件 - 检测 NVIDIA 驱动(
libcuda.so,libnvidia-ml.so) - 展示 GPU 详情(型号、显存、算力)
- 检测并展示虚拟环境(venv/conda)信息
- 未来计划支持中英文双语输出
快速开始
pip install torchfetch # (如已上传 PyPI)
# 或源码运行
python -m torchfetch
示例输出
用法
python -m torchfetch [--venv /path/to/venv]
--venv:手动指定虚拟/conda 环境路径(优先生效)
依赖要求
- Python 3.8+
- rich
- torch(可选,启用全部功能)
项目结构
main.py:命令行入口src/torchfetch/:核心逻辑、显示、美化、工具tests/:测试用例
许可证
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file torchfetch-0.1.1.tar.gz.
File metadata
- Download URL: torchfetch-0.1.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d20867f1343d91b452ff3a95dd619c6983a6399b89c6102d46d6cc91080872da
|
|
| MD5 |
1f46dadfbeae931342d59c35ee7d21e7
|
|
| BLAKE2b-256 |
fb32f715bcfd4a0044689b75270a2a16e40c3952ccf7bd9c122f5d5136310736
|
File details
Details for the file torchfetch-0.1.1-py3-none-any.whl.
File metadata
- Download URL: torchfetch-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4944c1771e399f4615fbaadf86d372b12824e100d4a3dbad20b44fcb98ab2750
|
|
| MD5 |
60b2f6d7fedf0a71cebb57e3e4965f78
|
|
| BLAKE2b-256 |
c54eae27cda7e16d61356159b21cfdb3684837ed71312a5338315c20243f2a43
|