🔧 fix(mcd_mocodo.py): rename 'fiche_activite' to 'fiche_pedagogique' and update its attributes for better clarity 🔧 fix(mcd_mocodo.py): update 'activite' attributes to include 'consigne' and 'duree' 🔧 fix(mcd_mocodo.py): update 'historique_activite' attributes to include 'note_difficulte', 'note_plaisir', 'note_concentration', 'note_duree' 🔧 fix(mcd_mocodo.py): add 'date_debloquement' attribute to 'debloquer' relation 🔧 fix(mcd_mocodo.py): update 'test_de_positionnement' and 'historique_test' attributes to include more detailed information 🔧 fix(mcd_mocodo.py): add 'historique_test_medical' entity with detailed attributes 🔧 fix(mcd_mocodo.py): add 'posseder3' relation to link 'historique_test_medical' with 'apprenant' 🔧 fix(mcd_mocodo.py): rename 'entités' to 'entites' for consistency with non-accentuated naming |
||
|---|---|---|
| .gitignore | ||
| mcd_mocodo.py | ||
| mocodo_notebook.ipynb | ||
| mocodo_script.py | ||
| poetry.lock | ||
| pyproject.toml | ||
| README.md | ||
| requierements.txt | ||
TL;DR
Le module Python Mocodo est un wrapper pour le programme Mocodo. Il peut être utilisé pour faciliter des scripts.
On utilise donc le module :
from mocodo.api import mocodo
ou être utilisé dans un notebook. Dans ce cas, on utilise :
from mocodo.magic import mocodo
L'avantage de ce dernier est qu'il affiche les résultats dans le notebook en plus de générer les fichiers.
Utilisation
Manuellement
python3 -m venv venv
source ./venv/bin/activate
pip install -r requierements.txt
python3 mocodo_script.py
Poetry
poetry install
poetry run python3 mocodo_script.py