ok-client icon indicating copy to clipboard operation
ok-client copied to clipboard

Tool to automatically create OK assignment from .py files

Open knrafto opened this issue 9 years ago • 2 comments

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"
    },
}

knrafto avatar Nov 09 '16 22:11 knrafto

What's a good flag for this? python3 ok --init?

knrafto avatar Mar 04 '17 03:03 knrafto

--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)

Sumukh avatar Mar 04 '17 03:03 Sumukh