ok-client
ok-client copied to clipboard
Tool to automatically create OK assignment from .py files
The user needs to specify the assignment name, endpoint, and .py files. The generated assignment config would just be
{
"name": "Homework 1",
"endpoint": "https://okpy.org/path/to/endpoint",
"src": [
"hw1.py",
"hw1_extra.py"
],
"tests": {
"hw1.py": "doctest",
"hw1_extra.py": "doctest"
},
}
What's a good flag for this? python3 ok --init?
--init sounds good. (It's also one of those commands that needs to run without an assignment)
We should prompt users for the data - (though we can probably get away with not collecting the name - either we can infer it from the endpoint or just use the endpoint wholesale)