An open API service indexing awesome lists of open source software.

https://github.com/loadlab/python

Python Client & CLI for LoadLab
https://github.com/loadlab/python

cli http http-client loadtesting performance performance-testing python sdk-python

Last synced: 11 months ago
JSON representation

Python Client & CLI for LoadLab

Awesome Lists containing this project

README

          

## LoadLab Python
[![CircleCI](https://circleci.com/gh/loadlab/python.svg?style=svg)](https://circleci.com/gh/loadlab/python)

A CLI and wrapper over the Python Requests library to talk to the LoadLab REST API.

## Installation

$ pip install loadlab

## Python Usage

```python
from loadlab import LoadLab

client = LoadLab(token='')

# Get Jobs
client.jobs.get()

# Get Plans
client.plans.get()

# Get Sites
client.sites.get()

# Create new job
# Refer to REST API Docs for supported fields
data = {...}
client.jobs.create(**data)

```
## CLI Usage

$ export LOADLAB_API_TOKEN=
$ loadlab --help