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
- Host: GitHub
- URL: https://github.com/loadlab/python
- Owner: loadlab
- License: mit
- Created: 2018-09-06T00:56:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-16T22:52:50.000Z (over 7 years ago)
- Last Synced: 2025-01-22T05:41:15.059Z (about 1 year ago)
- Topics: cli, http, http-client, loadtesting, performance, performance-testing, python, sdk-python
- Language: Python
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
## LoadLab Python
[](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