Skip to main content

Load testing tool

Project description

loadtest

Load tester and benchmark tool for Python programmers.

Installation:

pip install loadtest

Basic usage

def request_func():
    import requests
    response = requests.get("https://jsonplaceholder.typicode.com/todos/1")

    if response.status_code != 200:
        print(response.status_code)
    else:
        sample = {
          "userId": 1,
          "id": 1,
          "title": "delectus aut autem",
          "completed": False
        }
        if response.json() != sample:
            print(response.json())
    return response

from loadtest import LoadTester
load_tester = LoadTester(n_jobs=10, worker=request_func, count=100)
load_tester.start()

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

loadtest-0.0.2.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

loadtest-0.0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file loadtest-0.0.2.tar.gz.

File metadata

  • Download URL: loadtest-0.0.2.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.6.8

File hashes

Hashes for loadtest-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3226be43bad78374445486459d9c8e177ad3246d7bd9110c24d90c1a4990f3de
MD5 caf94605e88472f8c5e9a743f184708e
BLAKE2b-256 610e3d37589b0998a9e9c07ff08047a9703c59d78e4f9230b36264d1bbd5f083

See more details on using hashes here.

File details

Details for the file loadtest-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: loadtest-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.6.8

File hashes

Hashes for loadtest-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 157cc34f43864e6c363e1859ecc29085209a1193f9484b3749fa40ea47ae9c39
MD5 a34eddce6d1c887ad442ff5808edd42b
BLAKE2b-256 ce79680a10ba18bc4bbee9feb1bbd0d6950c6085b573fdfb303a891192cb4778

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