From adc002b38d19976ca1edba647c4669b278d667d9 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 20 Feb 2025 20:02:47 +0100 Subject: [PATCH] updates meta --- README.md | 15 +++++++++++++++ requirements.in | 4 +++- requirements.txt | 44 ++++++++++++++++++++++++++++++++++++++------ 3 files changed, 56 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a8ce082..9834f54 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,21 @@ - Flask-WTF - Pandas - Requests +- Redis +- Celery + +Redis currently has to run locally, but this will change in the future. To change this, see file tasks.py: + +```python +# tasks.py +def get_redis(): + return redis.StrictRedis( + host='localhost', + port=6379, + db=0, + decode_responses=True + ) +``` ## Installation diff --git a/requirements.in b/requirements.in index 1bd68c5..a4f22bf 100644 --- a/requirements.in +++ b/requirements.in @@ -8,4 +8,6 @@ matplotlib seaborn configparser plotly -configobj \ No newline at end of file +configobj +redis +celery \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 210deee..2445770 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,16 +4,33 @@ # # pip-compile requirements.in # +amqp==5.3.1 + # via kombu +billiard==4.2.1 + # via celery blinker==1.9.0 # via flask bootstrap-flask==2.4.1 # via -r requirements.in +celery==5.4.0 + # via -r requirements.in certifi==2025.1.31 # via requests charset-normalizer==3.4.1 # via requests click==8.1.8 - # via flask + # via + # celery + # click-didyoumean + # click-plugins + # click-repl + # flask +click-didyoumean==0.3.1 + # via celery +click-plugins==1.1.1 + # via celery +click-repl==0.3.0 + # via celery configobj==5.0.9 # via -r requirements.in configparser==7.1.0 @@ -41,6 +58,8 @@ jinja2==3.1.5 # via flask kiwisolver==1.4.8 # via matplotlib +kombu==5.4.2 + # via celery markupsafe==3.0.2 # via # jinja2 @@ -50,9 +69,9 @@ matplotlib==3.10.0 # via # -r requirements.in # seaborn -narwhals==1.26.0 +narwhals==1.27.1 # via plotly -numpy==2.2.2 +numpy==2.2.3 # via # contourpy # matplotlib @@ -70,15 +89,19 @@ pillow==11.1.0 # via matplotlib plotly==6.0.0 # via -r requirements.in +prompt-toolkit==3.0.50 + # via click-repl pyparsing==3.2.1 # via matplotlib python-dateutil==2.9.0.post0 # via + # celery # matplotlib # pandas pytz==2025.1 # via pandas -redis==5.0.1 +redis==5.2.1 + # via -r requirements.in requests==2.32.3 # via -r requirements.in seaborn==0.13.2 @@ -86,13 +109,22 @@ seaborn==0.13.2 six==1.17.0 # via python-dateutil tzdata==2025.1 - # via pandas + # via + # celery + # kombu + # pandas urllib3==2.3.0 # via requests +vine==5.1.0 + # via + # amqp + # celery + # kombu +wcwidth==0.2.13 + # via prompt-toolkit werkzeug==3.1.3 # via flask wtforms==3.2.1 # via # bootstrap-flask # flask-wtf -celery==5.3.6