A Python client for Moss: A System for Detecting Software Similarity
Project description
A Python client for Moss: A System for Detecting Software Similarity
Introduction
It is a Python interface for Moss client. It was written for AutoGrader for handling similarity in Python assignment submission.
It was written using the original bash script/documentation and its PHP dialect.
Installation
pip install mosspy
Usage
import mosspy
userid = 987654321
m = mosspy.Moss(userid, "python")
m.addBaseFile("submission/a01.py")
m.addBaseFile("submission/test_student.py")
# Submission Files
m.addFile("submission/a01-sample.py")
m.addFilesByWildcard("submission/a01-*.py")
url = m.send() # Submission Report URL
print ("Report Url: " + url)
# Save report file
m.saveWebPage(url, "submission/report.html")
# Download whole report locally including code diff links
mosspy.download_report(url, "submission/report/", connections=8)
Python Compatibility
Python - v2.7.* and v3.*
Similar Project
ocaml-moss OCaml client
cl-moss Common Lisp
moji Java version
MOSS-PHP PHP version
GUI for Windows GUI for Windows
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for mosspy-1.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c08a65b39b2b117a95df2a025cda8c52aaaad8b236d444f408488c2c49c61674 |
|
MD5 | dd65b6246cea4273d13131d303d262a4 |
|
BLAKE2b-256 | 744e7dd5d03fdb457e39960f33be9c6999de773e89c83930cb2651426f9ee686 |