Description of the project
pyStressTest
pyStressTest is a simple module for stress testing web resources.
from pyStressTest.stress_test import StressTest
from pyStressTest.monitor import ChartMonitor
stress = StressTest('http://127.0.0.1:8000')
stress.timeout = 0.5
stress.max_execution_time = 10
stress.max_thread_count = 100
monitor = ChartMonitor(stress)
monitor.start()
monitor.build_graph()
pyStressTest allows you to easily test your web resources with just a few lines of code. The project works with the help of threads, you can set their maximum number
stress.max_thread_count = 100
otherwise, they will be constantly created.
You can specify timeout, this variable affects the speed of sending requests and the speed of creating threads.
stress.timeout = 0.5
You can specify a maximum resource testing time.
stress.max_execution_time = 10
pyStressTest can automatically display test statistics, for this you can use two classes:
- CMDMonitor - statistics will be displayed in the terminal;
- ChartMonitor - statistics will be displayed as two graphs (using matplotlib).
You can read more in the class documentation.
pyStressTest, if the response code from the resource is != 200, it will consider this an error and display a message about this in the terminal and display it in the statistics.
Metadata
Release files for pyStressTest 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyStressTest-1.2.2.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyStressTest-1.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.7 kB
Release files / pyStressTest-1.2.2.tar.gz
| Download URL | pyStressTest-1.2.2.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4b735de7cf96b0f9be2471096b3c380af2f135e9a0ea65c1d497eb3f7ab748f
|
|
BLAKE2b-256 checksum How to use checksums |
1c24ddcd7228b4c5805c64bf4af2599048b8cde9b66dbfb81d0d6d27828ca7df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.5
|
Release files / pyStressTest-1.2.2-py3-none-any.whl
| Download URL | pyStressTest-1.2.2-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fbbf92067d46cec98db37980391da3d4504a0fb43f17d0ddc08e30559b9239f
|
|
BLAKE2b-256 checksum How to use checksums |
5e403fc310e94432fdde7d93b9f8abcef10aaeff8f64de9084aedbe028c23dcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.5
|