Skip to main content

Library and command-line tool to push benchmark data to CodeSpeed.

Project description

Library and command-line tool to push benchmark data to CodeSpeed.

Tested with Python 2.6, 2.7 and 3.2. Versions < 2.6 will not work, 3.x may work but not tested.

Usage as library:

from codespeed_client import Client

# kwargs list: environment, project, benchmark, branch, commitid, revision_date, executable,
#              result_date, result_value, max, min, std_dev

# kwargs passed to constructor are defaults
client = Client('http://codespeed.example.net', environment='Test Environment', project='Project')

# kwargs passed to add_result overwrite defaults
client.add_result(commitid=1278, benchmark='primes', result_value=42.0)
client.add_result(commitid=1278, benchmark='ai',     result_value=7)

# upload all results in one request
client.upload_results()

As command-line tool:

codespeed-client --help
codespeed-client --environment='Test Environment' --project=Project --commitid=1278 \
                 --benchmark=primes --result-value=42.0
codespeed-client --environment='Test Environment' --project=Project --commitid=1278 \
                 --benchmark=ai --result-value=7

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codespeed-client-0.3.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file codespeed-client-0.3.2.tar.gz.

File metadata

File hashes

Hashes for codespeed-client-0.3.2.tar.gz
Algorithm Hash digest
SHA256 32da1d18cf6a37832d8d33a74f6871645f2a2b803a3d27693fa814bd8b8acef4
MD5 df5f75a9726d6020023ae096fc4e4b65
BLAKE2b-256 d6bdb6e4b149a285df895be2b8e4c815696567eb8fb0c29be97014c24e9b32b8

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page