Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A Python client for the Smashrun API

Project Description

A Python client for the Smashrun API.


You can install the current development release using pip:

pip install --pre smashrun-client



Using an existing refresh token

client = Smashrun(client_id='my_client_id', client_secret='my_secret')

Requesting a token

# use urn:ietf:wg:oauth:2.0:oob for applications that aren't a web app
client = Smashrun(client_id='my_client_id',
auth_url = client.get_auth_url()
code = raw_input("Go to '%s' and authorize this application. Paste the provided code here:" % auth_url[0])

NOTE: The example above assumes that you are running Python 2.x. If You are using Python 3.x you can replace raw_input with input.

Fetching activities

Use Smashrun.get_activities to get a list of activities (summaries):

activities = client.get_activities()  # returns an iterator that handles paginating through the API
for activity in activities:
    print activity['startDateTimeLocal']

Fetch a specific activity

Use Smashrun.get_activity to get a specific activity:

activity = client.get_activity(1234)
print activity['recordingKeys']

For more details on what you can do, see the code and the Smashrun API


Contributions are greatly appreciated! Feel free to submit a pull request, or file an issue in our issue tracker.

Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
smashrun_client-0.5.0-py2.py3-none-any.whl (6.7 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Dec 27, 2016
smashrun-client-0.5.0.tar.gz (10.0 kB) Copy SHA256 Checksum SHA256 Source Dec 27, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting