You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is a Python-based hardware resource monitoring tool that provides real-time information about the system's hardware specifications and resource usage. It uses the `psutil` and `pynvml` libraries to gather data about the CPU, RAM, disk space, and GPU.
6
+
7
+
## Features
8
+
9
+
- Detects and displays GPU specifications, including:
10
+
- GPU name
11
+
- Total memory (in GB)
12
+
- Used memory (in GB)
13
+
- Detects and displays system specifications, including:
14
+
- Total and used RAM (in GB)
15
+
- Available disk space (in GB)
16
+
- Number of CPU cores
17
+
- CPU usage percentage
18
+
- Continuously monitors hardware resources with a customizable update interval.
19
+
- Displays data in a clean and user-friendly format in the console.
20
+
21
+
## Requirements
22
+
23
+
The following Python libraries are required to run the project:
24
+
25
+
-`psutil`
26
+
-`pynvml`
27
+
-`typing` (built-in for Python 3.5+)
28
+
29
+
You can install the required dependencies using the following command:
30
+
31
+
```bash
32
+
pip install -r requirements.txt
33
+
```
34
+
35
+
## Usage
36
+
37
+
1. Clone the repository or download the project files.
38
+
2. Install the required dependencies using the `requirements.txt` file.
39
+
3. Run the `hardware_detector.py` script to start monitoring hardware resources:
40
+
41
+
```bash
42
+
python hardware_detector.py
43
+
```
44
+
45
+
4. Press `Ctrl+C` to stop the monitoring process.
46
+
47
+
## Notes
48
+
49
+
- Ensure that your system has a CUDA-enabled GPU with the correct drivers installed to retrieve GPU information.
50
+
- The script clears the console output on each update for a clean display. This behavior may vary depending on the operating system.
51
+
52
+
## License
53
+
54
+
This project is licensed under the MIT License. See the `LICENSE` file for more details.
0 commit comments