Hyperfoil python client
Project description
hyperfoil-python-client
This is a python client for Hyperfoil.
Right now it's a wrapper for Hyperfoil's REST API. In the future, I would like to add factories for easier benchmark creation in python.
Usage
from hyperfoil import HyperfoilClient
import yaml
# Initialize client
client = HyperfoilClient('http://hyperfoil_url.com')
# Create new benchmark
with open('tests/benchmarks/hello-world.yaml') as file:
data = file.read()
data = yaml.load(data, Loader=yaml.loader)
client.benchmark.create(params=data)
# Start benchmark
benchmark_run = client.benchmark.start('benchmark_name')
# Kill benchmark
benchmark_run.kill()
# All stats of run
stats = benchmark_run.all_stats()
# Accessing logs:
logs = client.log()
Run the tests
Before running the tests you need to export the HYPERFOIL_URL
environment variable.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hyperfoil-client-0.1.3.tar.gz
(9.8 kB
view hashes)
Built Distribution
Close
Hashes for hyperfoil_client-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69a1444eb9c59a1cd74bee92265e0b2778ade6c3f2c66abedf45b076e63313bb |
|
MD5 | 796db5468f5e0bf67136dd12d75f3cd0 |
|
BLAKE2b-256 | 749dd10260f3df1631fe37e1f0749bdf19b2f0b235b9966fa1f69b0c15625efb |