Skip to main content

Module for resource stress testing and automatic statistics generation

Project description

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:

  1. CMDMonitor - statistics will be displayed in the terminal;
  2. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyStressTest-1.2.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyStressTest-1.2.2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file pyStressTest-1.2.2.tar.gz.

File metadata

  • Download URL: pyStressTest-1.2.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pyStressTest-1.2.2.tar.gz
Algorithm Hash digest
SHA256 c4b735de7cf96b0f9be2471096b3c380af2f135e9a0ea65c1d497eb3f7ab748f
MD5 e05d4413ebf646958b50f55ed6a56632
BLAKE2b-256 1c24ddcd7228b4c5805c64bf4af2599048b8cde9b66dbfb81d0d6d27828ca7df

See more details on using hashes here.

File details

Details for the file pyStressTest-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: pyStressTest-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyStressTest-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2fbbf92067d46cec98db37980391da3d4504a0fb43f17d0ddc08e30559b9239f
MD5 36fc3a5c46e14fff966723d955367976
BLAKE2b-256 5e403fc310e94432fdde7d93b9f8abcef10aaeff8f64de9084aedbe028c23dcf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page