Skip to content

Instantly share code, notes, and snippets.

@jakelumetta
Created May 5, 2015 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakelumetta/8ce963c37e0d2ed5724b to your computer and use it in GitHub Desktop.
Save jakelumetta/8ce963c37e0d2ed5724b to your computer and use it in GitHub Desktop.
import requests
response = requests.POST('http://api.benchstat.com/v1/stats', headers={
'Authorization': 'Token TOK1234'
}, data={
'values': [42, 43, 44, 45, 46, 8, 12, 19, 27],
'units': 'kilobytes',
'name': 'File size'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment