Skip to content

Commit 9165a3f

Browse files
committed
ready for 0.3
1 parent 46c0b84 commit 9165a3f

File tree

4 files changed

+78
-52
lines changed

4 files changed

+78
-52
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ python:
55
- "3.8"
66

77
install:
8-
- pip install -r requirements.txt
8+
- pip install -r requirements-dev.txt
99
- pip install isort black flake8 pylint
10-
- pip install pytest coveralls
10+
- pip install coveralls
1111
script:
1212
- pytest plagcheck
1313
- py.test plagcheck/plagcheck_test.py

README.md

Lines changed: 73 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,98 @@
11
# PlagCheck ✅
22

3+
> Moss Results scraper with powerful insights & analysis 💡
4+
35
![PyPI](https://img.shields.io/pypi/v/plagcheck?color=blue)
46
[![Build Status](https://travis-ci.org/codeclassroom/PlagCheck.svg?branch=master)](https://travis-ci.org/codeclassroom/PlagCheck)
57
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/plagcheck)
68
[![Documentation Status](https://readthedocs.org/projects/plagcheck/badge/?version=latest)](https://plagcheck.readthedocs.io/en/latest/?badge=latest)
7-
[![GitHub license](https://img.shields.io/github/license/codeclassroom/PlagCheck)](https://github.com/codeclassroom/CodeRunner/blob/master/LICENSE)
9+
![PyPI - License](https://img.shields.io/pypi/l/plagcheck)
810
![PyPI - Downloads](https://img.shields.io/pypi/dm/plagcheck?color=blue)
911

1012

11-
> A Powerful [MOSS](http://theory.stanford.edu/~aiken/moss/) results scrapper.
12-
13-
## Installation 🔮
14-
15-
1. Create virtual environment.
13+
## Installation
1614

17-
**Linux/MacOS**
15+
Install using `pip` from PyPI
1816

19-
```bash
20-
virtualenv -p python3 venv && cd venv && source bin/activate
21-
```
17+
```bash
18+
pip install plagcheck
19+
```
2220

23-
**Windows**
24-
(*PowerShell*)
21+
or directly from GitHub if you cannot wait to test new features
2522

26-
```cmd
27-
py -m venv venv; .\venv\Scripts\activate;
28-
```
23+
```bash
24+
pip install git+https://github.com/codeclassroom/PlagCheck.git
25+
```
2926

30-
2. Clone the repository.
27+
## Usage
3128

32-
```bash
33-
git clone https://github.com/codeclassroom/PlagCheck.git
34-
```
29+
```python
3530

36-
3. Install dependencies.
31+
"""Usage example"""
32+
import os
33+
import pprint
34+
from plagcheck import plagcheck
3735

38-
```bash
39-
pip install -r requirements.txt
40-
```
36+
from dotenv import load_dotenv
37+
load_dotenv()
4138

42-
4. Set-up virtual environment variables.
43-
1. Create a file named `.env` in the root directory & add the following contents.
39+
language = "python"
40+
userid = os.environ["USER_ID"]
4441

45-
```text
46-
USER_ID = 'moss-user-id'
47-
```
4842

49-
2. For `USER_ID` read instructions on [Moss](http://theory.stanford.edu/~aiken/moss/).
43+
moss = plagcheck.check(language, userid)
5044

51-
5. Run `demo.py` for demo.
45+
moss.addFilesByWildCard("testfiles/test_python*.py")
5246

53-
## Usage
47+
# or moss.addFile("testfiles/test_python.py")
5448

55-
Install the package.
49+
moss.submit()
5650

57-
```bash
58-
pip install plagcheck
51+
print(moss.getHomePage())
52+
pprint.pprint(moss.getResults())
53+
# print frequency of each shared solution
54+
pprint.pprint(moss.getShareScores())
55+
# print potential distributor-culprit relationships
56+
pprint.pprint(moss.getInsights())
5957
```
6058

61-
```python
62-
"""Usage example"""
63-
import os
64-
import pprint
65-
import plagcheck
66-
from dotenv import load_dotenv
67-
load_dotenv()
59+
## Documentation
6860

69-
program_files = ["testfiles/test_python.py", "testfiles/test_python3.py"]
70-
language = "python"
71-
userid = os.environ["USER_ID"]
61+
> [PlagCheck Documentation](https://plagcheck.readthedocs.io/en/latest/)
7262
73-
url, results = plagcheck.check(program_files, language, userid)
7463

64+
## Development
7565

76-
print(url)
77-
pprint.pprint(results)
66+
##### Prerequisites
67+
- Python 3.6+
68+
- virtualenv
7869

70+
1. Create virtual environment.
71+
```bash
72+
virtualenv -p python3 venv && cd venv && source bin/activate
73+
```
74+
2. Clone the repository.
75+
```bash
76+
git https://github.com/codeclassroom/PlagCheck.git
77+
```
78+
3. Install Dependencies.
79+
```bash
80+
pip install -r requirements.txt
7981
```
82+
4. Run tests.
83+
```bash
84+
pytest plagcheck
85+
```
86+
5. Lint the project with
87+
```bash
88+
flake8 plagcheck --max-line-length=88 --ignore=F401
89+
black --check --diff plagcheck
90+
```
91+
92+
## 📝 Changelog
93+
94+
See the [CHANGELOG.md](CHANGELOG.md) file for details.
8095

81-
Read [Documentation](https://github.com/codeclassroom/PlagCheck/blob/master/docs/docs.md).
8296

8397
## Author
8498

@@ -87,6 +101,17 @@ Read [Documentation](https://github.com/codeclassroom/PlagCheck/blob/master/docs
87101
- Twitter: [@bhupeshimself](https://twitter.com/bhupeshimself)
88102
- DEV: [bhupesh](https://dev.to/bhupesh)
89103

104+
[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
105+
106+
## 📜 License
107+
108+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
109+
110+
## 👋 Contributing
111+
112+
Please read the [CONTRIBUTING](CONTRIBUTING.md) guidelines for the process of submitting pull requests to us.
113+
114+
90115
## Contributors ✨
91116

92117
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
mosspy
22
beautifulsoup4
33
lxml
4-
python-dotenv
4+
python-dotenv
5+
pytest

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
license="MIT",
1010
author="Bhupesh Varshney",
1111
author_email="[email protected]",
12-
description="Moss scraper with powerful insights",
12+
description="Moss Results scraper with powerful insights & analysis",
1313
keywords="moss plagiarism analysis cheat mosspy",
1414
long_description=long_description,
1515
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)