Handling submission of code to Udacity for automatic feedback
Project description
==============
nelson
==============
Projects for Georgia Tech's OMSCS program or for Udacity's advanced nanodegree programs are typically distributed with project-specific submission scripts that handle the submission to Udacity's advanced automatic feedback service. These scripts typically rely on this underlying library, which contains most of the shared functionality.
Examples
---------
This is simple example for GTOMSCS. It submits the file hello_world.py to the quiz named "hello_world" within the course "cs101".
::
from nelson.gtomscs import submit
def main():
course = 'cs101'
quiz = 'hello_world'
filenames = ['hello_world.py']
submit(course, quiz, filenames)
if __name__ == '__main__':
main()
For Udacity, simply import from ``nelson.udacity`` instead of ``nelson.gtomscs``.
Typical output would be something like
::
GT Login required.
Username :jbarros7
Password :
Save the jwt?[y,N]y
Submission includes the following files:
helloworld.c
Uploading submission...
[=========================== 100% ===========================] 376/376
Waiting for results...Done!
Results:
--------
Tests that the code compiles cleanly: 5/5
Tests that the code prints "Hello World!": 5/5
(Details available in helloworld-result-2017-01-04-22-41-22.json)
nelson
==============
Projects for Georgia Tech's OMSCS program or for Udacity's advanced nanodegree programs are typically distributed with project-specific submission scripts that handle the submission to Udacity's advanced automatic feedback service. These scripts typically rely on this underlying library, which contains most of the shared functionality.
Examples
---------
This is simple example for GTOMSCS. It submits the file hello_world.py to the quiz named "hello_world" within the course "cs101".
::
from nelson.gtomscs import submit
def main():
course = 'cs101'
quiz = 'hello_world'
filenames = ['hello_world.py']
submit(course, quiz, filenames)
if __name__ == '__main__':
main()
For Udacity, simply import from ``nelson.udacity`` instead of ``nelson.gtomscs``.
Typical output would be something like
::
GT Login required.
Username :jbarros7
Password :
Save the jwt?[y,N]y
Submission includes the following files:
helloworld.c
Uploading submission...
[=========================== 100% ===========================] 376/376
Waiting for results...Done!
Results:
--------
Tests that the code compiles cleanly: 5/5
Tests that the code prints "Hello World!": 5/5
(Details available in helloworld-result-2017-01-04-22-41-22.json)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nelson-0.4.1.tar.gz
(9.9 kB
view details)
Built Distribution
File details
Details for the file nelson-0.4.1.tar.gz
.
File metadata
- Download URL: nelson-0.4.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 261fb82198f2bed2f8d8d3473f854b9cee6a33ce2c8d536e0acfa8eb416c2812 |
|
MD5 | 18b6be37b389c17e0d73329093cf3bfc |
|
BLAKE2b-256 | 729fc70dd30827ea7dfd77c55a202acf6204cc1fcc00310790ec87e87e3210f5 |
File details
Details for the file nelson-0.4.1-py2.py3-none-any.whl
.
File metadata
- Download URL: nelson-0.4.1-py2.py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25c7be0d67df599c9304ca4b337ecf8354549b211ade9010b6c1814f1d30cd33 |
|
MD5 | 88d0c4f41c86f95692196a34663d5c03 |
|
BLAKE2b-256 | bec27a498c4299a99080be0d5e7eacc3ad85adfe1114ab8325af3b79cf6061a4 |