cpu-loader 0.0.2__tar.gz → 0.0.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cpu-loader
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: A tool to generate CPU load on a system with runtime configuration through a WebUI and REST API
5
5
  Author-email: the78mole <the78mole@users.noreply.github.com>
6
6
  License: MIT
@@ -42,28 +42,49 @@ Dynamic: license-file
42
42
  [![Python Version](https://img.shields.io/pypi/pyversions/cpu-loader)](https://pypi.org/project/cpu-loader/)
43
43
  [![License](https://img.shields.io/github/license/the78mole/cpu-loader)](https://github.com/the78mole/cpu-loader/blob/main/LICENSE)
44
44
 
45
- A tool to generate CPU load on a system with runtime configuration through a WebUI and REST API.
46
-
47
- ## Features
48
-
49
- - 🔥 **Controllable CPU Load**: Generate precise CPU load per thread
50
- - 🎛️ **Per-Thread Control**: Individual sliders for each CPU thread
51
- - 🚀 **REST API**: Full programmatic control via HTTP endpoints
52
- - 🌐 **Modern WebUI**: Beautiful, responsive interface for real-time control
53
- - ⚡ **Instant Response**: Changes take effect immediately
54
- - 📊 **Live Monitoring**: View active threads and average load in real-time
55
-
56
- ## Screenshots
57
-
58
- ### WebUI Interface
59
- ![CPU Loader Control - 25% Load](https://github.com/user-attachments/assets/94f5a1a1-4328-46af-9155-e7d50cc8ba0e)
60
- *Individual thread control with sliders and preset buttons*
61
-
62
- ![CPU Loader Control - 50% Load](https://github.com/user-attachments/assets/bcab1f61-03a6-48ea-83b7-4402ec0d1389)
63
- *Setting all threads to 50% load*
64
-
65
- ![CPU Loader Control - 100% Load](https://github.com/user-attachments/assets/542afa1c-16da-4aff-a021-1e905e6f3372)
66
- *Maximum load across all threads*
45
+ A high-performance CPU load generator with **per-thread control** through an intuitive WebUI and REST API. Built with a native C extension using pthreads for accurate, nanosecond-precision load generation.
46
+
47
+ ## ✨ Key Features
48
+
49
+ - **🎯 Precise Per-Thread Control**: Set individual CPU load (0-100%) for each core independently
50
+ - **⚡ High Performance**: Native C implementation with pthreads ensures accurate load generation
51
+ - **📊 Real-Time Monitoring**: Live WebSocket updates showing actual CPU usage via `psutil`
52
+ - **🎛️ Interactive WebUI**: Beautiful gradient interface with sliders and visual feedback
53
+ - **🚀 REST API**: Complete programmatic control for automation and testing
54
+ - **📱 Responsive Design**: Works seamlessly on desktop and mobile devices
55
+ - **🔄 Instant Updates**: Changes take effect immediately with sub-second response time
56
+
57
+ ## 🖼️ Screenshots
58
+
59
+ ### Desktop Interface
60
+ <table>
61
+ <tr>
62
+ <td width="50%">
63
+ <img src="screenshots/01-initial-view.png" alt="Initial view with zero load">
64
+ <p align="center"><em>Clean interface showing all CPU threads at idle</em></p>
65
+ </td>
66
+ <td width="50%">
67
+ <img src="screenshots/02-with-load.png" alt="Mixed load across threads">
68
+ <p align="center"><em>Different load levels: 50%, 75%, and 25% on individual threads</em></p>
69
+ </td>
70
+ </tr>
71
+ <tr>
72
+ <td width="50%">
73
+ <img src="screenshots/03-live-metrics.png" alt="Live CPU metrics updating">
74
+ <p align="center"><em>Real-time metrics showing actual CPU usage with color-coded bars</em></p>
75
+ </td>
76
+ <td width="50%">
77
+ <img src="screenshots/04-mobile-view.png" alt="Mobile responsive view">
78
+ <p align="center"><em>Fully responsive mobile interface</em></p>
79
+ </td>
80
+ </tr>
81
+ </table>
82
+
83
+ ### Features Shown
84
+ - **Visual Load Bars**: Green progress bars show target load, blue bars display actual CPU usage
85
+ - **Real-Time Updates**: WebSocket connection provides live metrics every second
86
+ - **Preset Buttons**: Quick-set options (0%, 25%, 50%, 75%, 100%) for all threads
87
+ - **Smooth Gradients**: Modern UI with purple-to-blue gradient design
67
88
 
68
89
  ## Installation
69
90
 
@@ -5,28 +5,49 @@
5
5
  [![Python Version](https://img.shields.io/pypi/pyversions/cpu-loader)](https://pypi.org/project/cpu-loader/)
6
6
  [![License](https://img.shields.io/github/license/the78mole/cpu-loader)](https://github.com/the78mole/cpu-loader/blob/main/LICENSE)
7
7
 
8
- A tool to generate CPU load on a system with runtime configuration through a WebUI and REST API.
9
-
10
- ## Features
11
-
12
- - 🔥 **Controllable CPU Load**: Generate precise CPU load per thread
13
- - 🎛️ **Per-Thread Control**: Individual sliders for each CPU thread
14
- - 🚀 **REST API**: Full programmatic control via HTTP endpoints
15
- - 🌐 **Modern WebUI**: Beautiful, responsive interface for real-time control
16
- - ⚡ **Instant Response**: Changes take effect immediately
17
- - 📊 **Live Monitoring**: View active threads and average load in real-time
18
-
19
- ## Screenshots
20
-
21
- ### WebUI Interface
22
- ![CPU Loader Control - 25% Load](https://github.com/user-attachments/assets/94f5a1a1-4328-46af-9155-e7d50cc8ba0e)
23
- *Individual thread control with sliders and preset buttons*
24
-
25
- ![CPU Loader Control - 50% Load](https://github.com/user-attachments/assets/bcab1f61-03a6-48ea-83b7-4402ec0d1389)
26
- *Setting all threads to 50% load*
27
-
28
- ![CPU Loader Control - 100% Load](https://github.com/user-attachments/assets/542afa1c-16da-4aff-a021-1e905e6f3372)
29
- *Maximum load across all threads*
8
+ A high-performance CPU load generator with **per-thread control** through an intuitive WebUI and REST API. Built with a native C extension using pthreads for accurate, nanosecond-precision load generation.
9
+
10
+ ## ✨ Key Features
11
+
12
+ - **🎯 Precise Per-Thread Control**: Set individual CPU load (0-100%) for each core independently
13
+ - **⚡ High Performance**: Native C implementation with pthreads ensures accurate load generation
14
+ - **📊 Real-Time Monitoring**: Live WebSocket updates showing actual CPU usage via `psutil`
15
+ - **🎛️ Interactive WebUI**: Beautiful gradient interface with sliders and visual feedback
16
+ - **🚀 REST API**: Complete programmatic control for automation and testing
17
+ - **📱 Responsive Design**: Works seamlessly on desktop and mobile devices
18
+ - **🔄 Instant Updates**: Changes take effect immediately with sub-second response time
19
+
20
+ ## 🖼️ Screenshots
21
+
22
+ ### Desktop Interface
23
+ <table>
24
+ <tr>
25
+ <td width="50%">
26
+ <img src="screenshots/01-initial-view.png" alt="Initial view with zero load">
27
+ <p align="center"><em>Clean interface showing all CPU threads at idle</em></p>
28
+ </td>
29
+ <td width="50%">
30
+ <img src="screenshots/02-with-load.png" alt="Mixed load across threads">
31
+ <p align="center"><em>Different load levels: 50%, 75%, and 25% on individual threads</em></p>
32
+ </td>
33
+ </tr>
34
+ <tr>
35
+ <td width="50%">
36
+ <img src="screenshots/03-live-metrics.png" alt="Live CPU metrics updating">
37
+ <p align="center"><em>Real-time metrics showing actual CPU usage with color-coded bars</em></p>
38
+ </td>
39
+ <td width="50%">
40
+ <img src="screenshots/04-mobile-view.png" alt="Mobile responsive view">
41
+ <p align="center"><em>Fully responsive mobile interface</em></p>
42
+ </td>
43
+ </tr>
44
+ </table>
45
+
46
+ ### Features Shown
47
+ - **Visual Load Bars**: Green progress bars show target load, blue bars display actual CPU usage
48
+ - **Real-Time Updates**: WebSocket connection provides live metrics every second
49
+ - **Preset Buttons**: Quick-set options (0%, 25%, 50%, 75%, 100%) for all threads
50
+ - **Smooth Gradients**: Modern UI with purple-to-blue gradient design
30
51
 
31
52
  ## Installation
32
53
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cpu-loader"
3
- version = "0.0.2"
3
+ version = "0.0.3"
4
4
  description = "A tool to generate CPU load on a system with runtime configuration through a WebUI and REST API"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.8"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cpu-loader
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: A tool to generate CPU load on a system with runtime configuration through a WebUI and REST API
5
5
  Author-email: the78mole <the78mole@users.noreply.github.com>
6
6
  License: MIT
@@ -42,28 +42,49 @@ Dynamic: license-file
42
42
  [![Python Version](https://img.shields.io/pypi/pyversions/cpu-loader)](https://pypi.org/project/cpu-loader/)
43
43
  [![License](https://img.shields.io/github/license/the78mole/cpu-loader)](https://github.com/the78mole/cpu-loader/blob/main/LICENSE)
44
44
 
45
- A tool to generate CPU load on a system with runtime configuration through a WebUI and REST API.
46
-
47
- ## Features
48
-
49
- - 🔥 **Controllable CPU Load**: Generate precise CPU load per thread
50
- - 🎛️ **Per-Thread Control**: Individual sliders for each CPU thread
51
- - 🚀 **REST API**: Full programmatic control via HTTP endpoints
52
- - 🌐 **Modern WebUI**: Beautiful, responsive interface for real-time control
53
- - ⚡ **Instant Response**: Changes take effect immediately
54
- - 📊 **Live Monitoring**: View active threads and average load in real-time
55
-
56
- ## Screenshots
57
-
58
- ### WebUI Interface
59
- ![CPU Loader Control - 25% Load](https://github.com/user-attachments/assets/94f5a1a1-4328-46af-9155-e7d50cc8ba0e)
60
- *Individual thread control with sliders and preset buttons*
61
-
62
- ![CPU Loader Control - 50% Load](https://github.com/user-attachments/assets/bcab1f61-03a6-48ea-83b7-4402ec0d1389)
63
- *Setting all threads to 50% load*
64
-
65
- ![CPU Loader Control - 100% Load](https://github.com/user-attachments/assets/542afa1c-16da-4aff-a021-1e905e6f3372)
66
- *Maximum load across all threads*
45
+ A high-performance CPU load generator with **per-thread control** through an intuitive WebUI and REST API. Built with a native C extension using pthreads for accurate, nanosecond-precision load generation.
46
+
47
+ ## ✨ Key Features
48
+
49
+ - **🎯 Precise Per-Thread Control**: Set individual CPU load (0-100%) for each core independently
50
+ - **⚡ High Performance**: Native C implementation with pthreads ensures accurate load generation
51
+ - **📊 Real-Time Monitoring**: Live WebSocket updates showing actual CPU usage via `psutil`
52
+ - **🎛️ Interactive WebUI**: Beautiful gradient interface with sliders and visual feedback
53
+ - **🚀 REST API**: Complete programmatic control for automation and testing
54
+ - **📱 Responsive Design**: Works seamlessly on desktop and mobile devices
55
+ - **🔄 Instant Updates**: Changes take effect immediately with sub-second response time
56
+
57
+ ## 🖼️ Screenshots
58
+
59
+ ### Desktop Interface
60
+ <table>
61
+ <tr>
62
+ <td width="50%">
63
+ <img src="screenshots/01-initial-view.png" alt="Initial view with zero load">
64
+ <p align="center"><em>Clean interface showing all CPU threads at idle</em></p>
65
+ </td>
66
+ <td width="50%">
67
+ <img src="screenshots/02-with-load.png" alt="Mixed load across threads">
68
+ <p align="center"><em>Different load levels: 50%, 75%, and 25% on individual threads</em></p>
69
+ </td>
70
+ </tr>
71
+ <tr>
72
+ <td width="50%">
73
+ <img src="screenshots/03-live-metrics.png" alt="Live CPU metrics updating">
74
+ <p align="center"><em>Real-time metrics showing actual CPU usage with color-coded bars</em></p>
75
+ </td>
76
+ <td width="50%">
77
+ <img src="screenshots/04-mobile-view.png" alt="Mobile responsive view">
78
+ <p align="center"><em>Fully responsive mobile interface</em></p>
79
+ </td>
80
+ </tr>
81
+ </table>
82
+
83
+ ### Features Shown
84
+ - **Visual Load Bars**: Green progress bars show target load, blue bars display actual CPU usage
85
+ - **Real-Time Updates**: WebSocket connection provides live metrics every second
86
+ - **Preset Buttons**: Quick-set options (0%, 25%, 50%, 75%, 100%) for all threads
87
+ - **Smooth Gradients**: Modern UI with purple-to-blue gradient design
67
88
 
68
89
  ## Installation
69
90
 
@@ -311,7 +311,7 @@ async def get_webui():
311
311
  </head>
312
312
  <body>
313
313
  <div class="container">
314
- <h1>🔥 CPU Loader Control</h1>
314
+ <h1>&#x1F525; CPU Loader Control</h1>
315
315
  <p class="subtitle">Control CPU load per thread in real-time</p>
316
316
 
317
317
  <div class="status">
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes