Skip to content

vCra/mooshak2api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mooshak2api

Latest PyPI version Latest Travis CI build status Test Coverage Maintainability Documentation Status

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

Help!

Is something not working properly? Are the docs awful? Want to help make this better? If the answer is yes then great! All you have to do is open an issue.

Licence

This software is released under the MIT License

Authors

mooshak2api was written by Aaron Walker.

About

A Python interface to the Mooshak2 REST API

Resources

License

Stars

Watchers

Forks

Packages

No packages published