Skip to main content

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.

Metadata

Release files for mooshak2api 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mooshak2api 0.2.3
File Size Uploaded Provenance Actions
mooshak2api-0.2.3.tar.gz 5.4 kB Without provenance Details for mooshak2api-0.2.3.tar.gz

Release files / mooshak2api-0.2.3.tar.gz

Download URL mooshak2api-0.2.3.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e905dbcb886a90a199ce75ca072198d2e8971f438cd7affa8c56f284057e66a0
BLAKE2b-256 checksum
How to use checksums
bf44edce9538e18f86dc1d2541cfbc1406cd1d54a86fa3ea44b55c0e2f7804f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Security for mooshak2api 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page