Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed import rules

  • Loading branch information...
commit 4743759d3d8a0e9f74dc5bff72c48da1feedc0b1 1 parent b7279e7
@bnmrrs authored
View
4 demos/getdistance.py
@@ -1,6 +1,6 @@
-import runkeeper.user
+from runkeeper import User
-user = runkeeper.user.User("bnmrrs")
+user = User("bnmrrs")
activities = user.get_all_activities()
total_distance = 0
View
6 runkeeper/__init__.py
@@ -30,9 +30,9 @@
Here is the basic example of getting total distance for a user
- import runkeeper.user
+ from runkeeper import User
- user = runkeeper.user.User("bnmrrs")
+ user = User("bnmrrs")
activities = user.get_all_activities()
total_distance = 0
@@ -42,4 +42,6 @@
print total_distance
"""
+from runkeeper import User
+
View
4 runkeeper/activity.py
@@ -30,9 +30,9 @@
Here is the basic example of getting total distance for a user
- import runkeeper.user
+ from runkeeper import User
- user = runkeeper.user.User("bnmrrs")
+ user = User("bnmrrs")
activities = user.get_all_activities()
total_distance = 0
View
4 runkeeper/httpclient.py
@@ -30,9 +30,9 @@
Here is the basic example of getting total distance for a user
- import runkeeper.user
+ from runkeeper import User
- user = runkeeper.user.User("bnmrrs")
+ user = User("bnmrrs")
activities = user.get_all_activities()
total_distance = 0
View
4 runkeeper/user.py
@@ -30,9 +30,9 @@
Here is the basic example of getting total distance for a user
- import runkeeper.user
+ from runkeeper import User
- user = runkeeper.user.User("bnmrrs")
+ user = User("bnmrrs")
activities = user.get_all_activities()
total_distance = 0
View
2  setup.py
@@ -34,7 +34,7 @@
distutils.core.setup(
name="runkeeper-api",
- version="0.1",
+ version="0.2",
packages = ["runkeeper"],
author="Ben Morris",
author_email="ben@bnmrrs.com",
Please sign in to comment.
Something went wrong with that request. Please try again.