stravalib.client.ActivityUploader

class stravalib.client.ActivityUploader(client, response, raise_exc=True)[source]

The “future” object that holds information about an activity file upload and can wait for upload to finish, etc.

__init__(client, response, raise_exc=True)[source]
Parameters
  • client (stravalib.client.Client) – The stravalib.client.Client object that is handling the upload.

  • response (Dict[str,Any]) – The initial upload response.

  • raise_exc (bool) – Whether to raise an exception if the response indicates an error state. (default True)

Methods

__init__(client, response[, raise_exc])

param client

The stravalib.client.Client object that is handling the upload.

poll()

Update internal state from polling strava.com.

raise_for_error()

update_from_response(response[, raise_exc])

Updates internal state of object.

wait([timeout, poll_interval])

Wait for the upload to complete or to err out.

Attributes

is_complete

is_error

is_processing