From eb6d0d929146ad8df7760eb586653ee67a2f6fed Mon Sep 17 00:00:00 2001 From: Christophe Guyeux Date: Sun, 16 Feb 2020 11:58:40 +0100 Subject: [PATCH] starting to fill README.md, and packages update --- README.md | 51 +++++++++++++++++++++++++++++++----------------- requirements.txt | 1 + 2 files changed, 34 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 660b7ef..cd18684 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,43 @@ -Creer un environnement : -pip install virtualenv -python -m venv ~/.venvs/predictops +Configuration +============= + +Initialisation de l'environnement de travail +-------------------------------------------- + +- Creer un environnement : + +`pip install virtualenv` + +`python -m venv ~/.venvs/predictops` activer l'environnement : -source ~/.venvs/predictops/bin/activate -installer un package : -pip install celery -pip freeze > requirements.txt +`source ~/.venvs/predictops/bin/activate` -Lancer -celery -A test_celery worker --loglevel=info -puis -python -m test_celery.run_tasks +Gestion des packages +-------------------- + +- Mettre à jour la liste des packages + +`pip install -r requirements.txt` -Pour nettoyer la bdd : -engine = ExtomeEngine(clean = False) -> dans le main --> Remplir le répertoire data à partir d'archive -dans pgModeler : Faire export +- installer un package : +`pip install celery` + +`pip freeze > requirements.txt` + + +Planification des tâches +------------------------ + +- Lancer le scheduling (à compléter) + +`celery -A test_celery worker --loglevel=info` + +puis -$ psql extome -\dt -> describe table -select * from "PARAMETER"; +`python -m test_celery.run_tasks` diff --git a/requirements.txt b/requirements.txt index 3fdb9fb..2053469 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,6 +12,7 @@ pandas==1.0.1 pyproj==2.4.2.post1 python-dateutil==2.8.1 pytz==2019.3 +scipy==1.4.1 Shapely==1.7.0 six==1.14.0 xlrd==1.2.0 -- 2.39.5