Skip to content

Python client for Moss: A System for Detecting Software Similarity

License

Notifications You must be signed in to change notification settings

leVirve-arxiv/moss.py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git+https://github.com/leVirve-arxiv/moss.py

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

Similar Project

License

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

About

Python client for Moss: A System for Detecting Software Similarity

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%