API

class speedcurve.SpeedCurve(api_key=None, session=None)

Stored session information.

add_deployment(site_id=None, note=None, detail=None)

Add a deployment and trigger round of testing.

Parameters:
  • site_id (int) – (optional) site id to trigger deploy.
  • note (string) – (required) short note used on site
  • detail (string) – (optional) detail to display for more context
Returns:

Deployment

get_deployment(id=None)

Retrieve a deployment specified by id.

Params int id:(required) id of deployment
Returns:Deployment
get_latest_deployment()

Retrieve latest deployment.

Returns:Deployment
notes()

Retrieve all notes for main site in User’ account.

Returns:Generator of Note
sites()

Retrieve all sites for account.

test(id=None)

Retrieve test specified by test id.

Parameters:id (string) – (required) ID of test
Returns:instance of Test
url(id=None, days=30, browser='all')

Retrieve url specified by id.

Parameters:
  • id (int) – (required) id of URL
  • days (int) – (optional) number of days of tests (max: 365)
  • browser (string) – (optional) all, chrome, firefox, ie, or safari
Returns:

Url

class speedcurve.tests.Test(json, session=None, api_key=None)

The Test object.

class speedcurve.urls.Url(json, session=None, api_key=None)

The Url object.

class speedcurve.deployments.Deployment(json, session=None, api_key=None)

Deployment class.