Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 650 Bytes

README.md

File metadata and controls

39 lines (23 loc) · 650 Bytes

LoadLab Python

CircleCI

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

Installation

$ pip install loadlab

Python Usage

from loadlab import LoadLab

client = LoadLab(token='<YOUR TOKEN HERE>')

# 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=<YOUR_API_TOKEN>
$ loadlab --help