Skip to main content

Simple and sweet load testing module.

Project description

Pyronos

Pyronos PyPI Repository Size GitHub License

Simple and sweet load testing module.

Installation

pip3 install pyronos

Command Line Interpreter (CLI)

Creates a "results" folder in the current directory to store all of the load testings.

# Simple usage.
pyronos https://my.website get 25 simple

# Send head request.
pyronos https://my.website head 25 simple

# Dump logs.
pyronos https://my.website get 25 simple -d

# Send requests sequentially.
pyronos https://my.website get 25 simple -s

# Print progress of sequential requests.
pyronos https://my.website get 25 simple -s -p

Module

from pyronos import Pyronos


URL = 'https://my.website'
HTTP_METHOD = 'get'  # or 'head', 'options', 'delete', 'post', 'put'.
NUM_OF_REQS = 25
DATA = {}  # Add request body.
HEADERS = {}  # Add request headers.
FIGURE = 'simple'  # or 'stem', 'step'.
OUTPUT = 'csv'  # or 'json', 'yml'.
SEQUENTIAL = False
PRINT_PROGRESS = False
DUMP_LOGS = True

load_tester = Pyronos(URL, HTTP_METHOD,
                      num_requests=NUM_OF_REQS, figure=FIGURE,
                      output=OUTPUT, sequential=SEQUENTIAL,
                      print_progress=PRINT_PROGRESS, dump_log=DUMP_LOGS)
load_tester.dispatcher()  # Dispatch requests to start load testing.

Example Stem Figure

Example Stem Figure

Example JSON Output

{
    'starting_time': '30/12/2019 02:56:38',
    'finishing_time': '30/12/2019 02:56:42',
    'response_times': [0.314406, 0.268947, 0.286585, 0.303832, 0.30449, 0.276836, 0.294791, 0.308027, 0.270716, 0.289745, 0.304603, 0.276385, 0.303491, 0.29894, 0.275576], 'response_codes': [200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200],
    'num_of_failed_responses': 0,
    'q1': 0.2766105,
    'median': 0.294791,
    'q3': 0.304161,
    'std': 0.014522718628258128
}

PyPI

https://pypi.org/project/pyronos/

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

pyronos-0.0.1.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file pyronos-0.0.1.tar.gz.

File metadata

  • Download URL: pyronos-0.0.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.5

File hashes

Hashes for pyronos-0.0.1.tar.gz
Algorithm Hash digest
SHA256 55ecd2a9a7d618755b3a9fc73485c62c651ec027fa9aa826c250528d45ad9405
MD5 6db9bc6d624f651e36542aff658bcad1
BLAKE2b-256 3217311b65f3573ca0475252551565bf0286f07890211c14dd294d5a759f7317

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