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.8.tar.gz
(10.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hyperfoil-client-0.1.8.tar.gz.
File metadata
- Download URL: hyperfoil-client-0.1.8.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7d844fdbdc799768a6e7496152592727f7a5195f90370a3a5ad2be75f219746
|
|
| MD5 |
225c34dda0b19ba1dcad22fcb15d5692
|
|
| BLAKE2b-256 |
a6993fc3df1cfbf81f75279629bdbf0126f25522fac9f1072a24c8bfffd719d7
|
File details
Details for the file hyperfoil_client-0.1.8-py3-none-any.whl.
File metadata
- Download URL: hyperfoil_client-0.1.8-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7820f6aca8959c61c03f302e1a7c30c37d4d04990ca7fecaf7358d03a1742f2b
|
|
| MD5 |
456ebd55606e60ba5a7f003b47c8e0c2
|
|
| BLAKE2b-256 |
2f854382105d2e3e1ca651f54be2325bb4bf6c083b2f53e13adaa3fb4668aeee
|