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


Release history Release notifications

Download files

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

Files for pyronos, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pyronos-0.0.1.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page