Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.51 KB

README.md

File metadata and controls

52 lines (32 loc) · 1.51 KB

moss.py

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

m.saveWebPage(url, "submission/report.html")

Python Compatibility

Similar Project

License

This project is licensed under the MIT License - see the LICENSE.md file for details