Package: prof
[PROF] is the website where peoples studying computer science at Lille1 should upload their work.This tool give you ability to upload your archive from the command line.## Installation## On your university accountYou can install prof to your$HOMEdirectoryexport HTTP_PROXY=cache-etu.univ-lille1.fr:3128
pip-3.2 install –user prof
~/.local/bin/profI suggest you to create the following alias in your.bashrcalias prof=HTTP_PROXY=cache-etu.univ-lille1.fr:3128 $HOME/.local/bin/prof### On your computer (if your root)Download from Pypi and run the programsudo pip3 install prof
prof## ConfigurationYoumustspecify to which serverprofneed to connect in$HOME/.profrc, as the following :[DEFAULT]
baseurl =https://your-prof-instancelogin = yourloginNote thatloginis not mandatory, but you should set it for convenience.## UsageOn the command line, runprof listIf needed, a Firefox windows will pop so you can fill your credentials, and check the captcha.In exchange, it give you the tree of all avalaible works.TP_ACT_Groupe1
- 23  : TP Ordres de Grandeu          Closed    (calve-act-1.tar.gz)
- 88  : TP Diviser pour Régn          Closed    (calve-act2.tar.gz)
- 103 :  TP 3 Compression Im          Open - Time remaining: 6 days, 17:09:56.090487
TP ASE Contextes
- 45  : TP 2                          Closed    (calve-ase-2.tar.gz)
- 46  : TP 4                          Closed    (calve-ase-2.tar.gz)
TP ASE Disques
- 47  : TP 1                          Closed    (calve-ase-3.tar.gz)
- 48  : TP 2                          Open - Time remaining: 4 days, 20:54:56.090348
- 49  : TP 3                          Open - Time remaining: 32 days, 20:54:56.090310
TP ASE MMU
- 50  : TP 1                          Open - Time remaining: 53 days, 20:54:56.090262
- 51  : TP 2                          Open - Time remaining: 60 days, 20:54:56.090225
M1AEO
- 95  : Bonus TD                      Closed
- 184 : TP roulette                   Open - Time remaining: 5 days, 17:54:56.090157Then you can upload a file withprof upload 184 test.tar.gzIf the file is atar.gz, it will untar it in a temporary directory, and try to compile the project usingmake. You can override this comportement with--compil-command"cmake"or--no-compileRunning make in /tmp/tmp3n3knca6prof for file test.tar.gz
mkdir -p bin
gcc -Wall -ansi -pedantic -m32 -g   -c -o src/mkhd.o src/mkhd.c
gcc -Wall -ansi -pedantic -m32 -g -o ./lib/mkhd.o -c src/mkhd.c -I./include
Successfully compiledAnd it is donedone, you should verify the upload on the websiteprof is still under devel, it may crash, loose your files, eat your goat.
Always check your file is actually send on the remote server.[PROF]:https://prof.fil.univ-lille1.fr## Set up a post commit hook for gitYou can easily setup a postcommit hook for git, so it compile and upload your work on each commit.
In your project, create.git/hooks/post-commitgit archive –output archive.tar.gz HEAD
prof upload workid archive.tar.gz –compil-command “make”andchmod +x.git/hooks/post-commit## CHANGELOGPersisting sessionsTrue Pypi packageCheck proper compilation before pushing--sortedoption came backRewrite in PythonBetter ui, now loop thru tp and ue listFix : Date comparaisonAdded argument –sorted to list all TPs sorted by time. Still experimentalQuickFix : Clear buffer containing downloaded pages before getting TP listTPs contains their UETPs contains their deadline. Maybe in a future we could sort TP by deadlineTPs and UEs numbers are now from 0 to n, and not the actual id on the serverraise exception when procedures failupload a filedelete a remote fileretrieve TP listconnect to the prof website, get cookie, log and retrieve an UE list## Developmentgit clonehttps://github.com/calve/profcd prof
pip3 install -r requirements.txt
python3 run.py## CONTACTcalvinh34 at gmailBugs, patches and suggestions are welcome !## Last wordIf nothing work, or if you just want an easy sh script, you may find one in legacy/prof.sh that nearly do the same thing.