Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rfautier/find_correction
Find a person who are log and can evaluate your project :D
https://github.com/rfautier/find_correction
Last synced: 2 months ago
JSON representation
Find a person who are log and can evaluate your project :D
- Host: GitHub
- URL: https://github.com/rfautier/find_correction
- Owner: rfautier
- Created: 2019-06-25T22:52:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-20T18:07:00.000Z (almost 4 years ago)
- Last Synced: 2024-08-03T22:04:58.262Z (6 months ago)
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 25
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-42 - Python script
README
# Update
You can directly go to [42evaluators.com](https://42evaluators.com/) for find peer :D# Find A Correction at 42 !
This script list all people who are log and validated / register a project.
## Example
```
(venv) $> python find_correction.py "Malloc"
Login Project status Validated Final Mark Position
-------- ---------------------- ----------- ------------ ----------
rfautier in_progress None None e3r5p11
aaklpote in_progress None None e3r10p5
ccaballero in_progress None None e2r4p4
llompal finished True 123 e3r5p19
sgueko waiting_for_correction None None e3r13p9(venv) $>
```## Prerequisites
You need to have python3 (``` brew install python3 ```)
You need to have a token (UID and Secret).
To do this, go to https://profile.intra.42.fr/oauth/applications/new and create an application (You can enter Fake-Informations)
Then export to your environment your UID and SECRET
```
export FT42_UID="yourUIDHere"
``````
export FT42_SECRET="yourSecretHere"
```Or you can enter this environment variable in your RC (~/.zshrc)
Clone the project
```
git clone https://github.com/rfautier/find_correction.git && cd find_correction
```Set the python3 environment and requirement
```
virtualenv -p python3 venv && source venv/bin/activate && pip3 install -r requirement.txt
```## Quickstart
```
python find_correction.py your_project
```
or, with Docker
```
docker build -t find_correction .
docker run -e FT42_UID=$FT42_UID -e FT42_SECRET=$FT42_SECRET -v $PWD:/app find_correction your_project
```The first time, It's gonna be little longer depending on the projet.
Your gonna download all users who make the project. So next time, it's much,much faster !
The download is in your current directory, like an hidden files (`ls -a` to see them).## Parameters
``` --campus ``` CAMPUS You can specify a campus. Paris is the default.
``` --update ``` To re-download all users register to an project