Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-data-api-client
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-analytics-data-api-client
Commits
f403c3ee
Commit
f403c3ee
authored
Jan 04, 2017
by
Tyler Hallada
Committed by
GitHub
Jan 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #30 from edx/thallada/version-updates
Update python packages
parents
509ae29d
2c0b148e
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
27 additions
and
27 deletions
+27
-27
Makefile
+1
-1
analyticsclient/constants/activity_type.py
+1
-1
analyticsclient/constants/demographic.py
+1
-1
analyticsclient/course.py
+1
-1
analyticsclient/exceptions.py
+4
-4
analyticsclient/module.py
+1
-1
analyticsclient/status.py
+1
-1
analyticsclient/tests/__init__.py
+2
-2
requirements.txt
+8
-8
setup.py
+7
-7
No files found.
Makefile
View file @
f403c3ee
...
...
@@ -18,4 +18,4 @@ quality:
pylint
--rcfile
=
.pylintrc
$(PACKAGE)
# Ignore module level docstrings and all test files
pep257
--ignore
=
D100,D203
--match
=
'(?!test).*py'
$(PACKAGE)
pep257
--ignore
=
D100,D
104,D
203
--match
=
'(?!test).*py'
$(PACKAGE)
analyticsclient/constants/activity_type.py
View file @
f403c3ee
"""
Course activity types.
"""
"""
Course activity types.
"""
ANY
=
'any'
ATTEMPTED_PROBLEM
=
'attempted_problem'
...
...
analyticsclient/constants/demographic.py
View file @
f403c3ee
"""
Course demographics.
"""
"""
Course demographics.
"""
BIRTH_YEAR
=
'birth_year'
EDUCATION
=
'education'
...
...
analyticsclient/course.py
View file @
f403c3ee
...
...
@@ -6,7 +6,7 @@ from analyticsclient.exceptions import InvalidRequestError
class
Course
(
object
):
"""
Course-related analytics.
"""
"""
Course-related analytics.
"""
def
__init__
(
self
,
client
,
course_id
):
"""
...
...
analyticsclient/exceptions.py
View file @
f403c3ee
class
ClientError
(
Exception
):
"""
Common base class for all client errors.
"""
"""
Common base class for all client errors.
"""
pass
class
NotFoundError
(
ClientError
):
"""
URL was not found.
"""
"""
URL was not found.
"""
pass
class
InvalidRequestError
(
ClientError
):
"""
The API request was invalid.
"""
"""
The API request was invalid.
"""
pass
class
TimeoutError
(
ClientError
):
"""
The API server did not respond before the timeout expired.
"""
"""
The API server did not respond before the timeout expired.
"""
pass
analyticsclient/module.py
View file @
f403c3ee
...
...
@@ -2,7 +2,7 @@ import analyticsclient.constants.data_format as DF
class
Module
(
object
):
"""
Module related analytics data.
"""
"""
Module related analytics data.
"""
def
__init__
(
self
,
client
,
course_id
,
module_id
):
"""
...
...
analyticsclient/status.py
View file @
f403c3ee
...
...
@@ -2,7 +2,7 @@ from analyticsclient.exceptions import ClientError
class
Status
(
object
):
"""
API server status.
"""
"""
API server status.
"""
def
__init__
(
self
,
client
):
"""
...
...
analyticsclient/tests/__init__.py
View file @
f403c3ee
...
...
@@ -4,10 +4,10 @@ from analyticsclient.client import Client
class
ClientTestCase
(
TestCase
):
"""
Base class for client-related tests.
"""
"""
Base class for client-related tests.
"""
def
setUp
(
self
):
"""
Configure Client.
"""
"""
Configure Client.
"""
self
.
api_url
=
'http://localhost:9999/api/v0'
self
.
client
=
Client
(
self
.
api_url
)
...
...
requirements.txt
View file @
f403c3ee
requests
==2.
2.0
requests
==2.
12.4
# Testing
coverage
==
3.7
.1
coverage
==
4.3
.1
ddt
==1.1.1
nose
==1.3.
3
httpretty
==0.8.
0
nose
==1.3.
7
httpretty
==0.8.
14
pep8
==1.7.0
pylint
==1.
5.0
pep257
==0.
4.1
mock
==
1.0.1
testfixtures
==4.
0.0
pylint
==1.
6.4
pep257
==0.
7.0
mock
==
2.0.0
testfixtures
==4.
13.3
setup.py
View file @
f403c3ee
...
...
@@ -8,14 +8,14 @@ setup(
description
=
'Client used to access edX analytics data warehouse'
,
long_description
=
open
(
'README.rst'
)
.
read
(),
install_requires
=
[
"requests==2.
2.0
"
,
"requests==2.
12.4
"
,
],
tests_require
=
[
"coverage==
3.7
.1"
,
"nose==1.3.
3
"
,
"httpretty==0.8.
0
"
,
"pep8==1.
5.7
"
,
"pylint==1.
2.1
"
,
"pep257==0.
3.2
"
"coverage==
4.3
.1"
,
"nose==1.3.
7
"
,
"httpretty==0.8.
14
"
,
"pep8==1.
7.0
"
,
"pylint==1.
6.4
"
,
"pep257==0.
7.0
"
]
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment