A Python API for interacting with the Mooshak 2 REST API
Project description
mooshak2api is a Python API for interacting with the Mooshak 2 REST API.
Usage
Using this tool is super easy!
>>> import mooshak2api as api >>> connection = api.login("http://localhost:8080/mooshak/api/", "test", "test", contest="ToPAS14") >>> problem = api.problems.get(connection, "ToPAS14", "C") >>> evaluation = problem.evaluate(connection, open("tests/example_code/test.c", "rb")) >>> evaluation.status 'Wrong Answer'
Installation
Simply run pip install mooshak2api
Requirements
Python requests is required.
Compatibility
Only Python >= 3.6 is supported. It is recommended you use the latest version of Mooshak 2, as some older versions do not work completely
Licence
This software is released under the MIT License
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
mooshak2api-0.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for mooshak2api-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a63c43cec3a652a16b23fcad2cd31ac2550f2e68e4da3468d0ee4570c4f3de9 |
|
MD5 | 179ce160e149dd40acbdf588f7df5374 |
|
BLAKE2b-256 | 97de4a1deadb57089f0ba6376cbcdfdf72af1a3fa0ebecc42442b43a760996b1 |