Flask-RQ2
Flask_PyJWT
Flask-RQ2 | Flask_PyJWT | |
---|---|---|
3 | 4 | |
224 | 4 | |
0.9% | - | |
0.0 | 0.0 | |
7 days ago | over 1 year ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Flask-RQ2
-
Wondering if I should use Celery vs threads for what I want to do
From experience i would not use threads for this or any background jobs. I would use Celery or Flask-RQ2 to be your workers, you will also probably end up using them to run other tasks as you encounter the need for other jobs. They both use Redis as a broker and job store and you can use Redis for other things like caching and so many other useful features. I kind of like RQ2 more then Celery because its a little simpler but Celery has a lot more to offer, more features. RQ2 has rq-dashboard for monitoring jobs and Celery has Flower.
-
Tutorials on how to build a flask extension?
However, you might need to access the app’s context like how you’d do so in the Flask-RQ2 extension by using ScriptInfo from flask.cli:
-
Application structure for CLI and API in same
For the CLI part, i recommend going with Click. Its great and already part of flask and easy to use. Other CLI libraries work too but why have more libraries. For scheduling jobs you might want to look at Flask-APScheduler. i used it in one of my projects at work for a while but ended up needing something that could scale to many more workers so had to rip it out but i didnt have a problem with it otherwise. You might want to fork Flask-APScheduler so you can update some libraries because it hasnt been touched in 2 years now or you can just use APScheduler alone. Flask-RQ2 and Celery are pretty good too but the workers need to run in separate processes and need Redis. You could use Redislite i think and with celery you could use a database as your broker, i have done it but dont recommend it.
Flask_PyJWT
-
Looking to contribute to open-source projects
You are more than welcome to help out on Flask-PyJWT
-
Tutorials on how to build a flask extension?
Search around the source code for other extensions that are less complicated, such as Flask-Login, Flask-RestX, and my own extension Flask_PyJWT
-
A Tutorial on to Implement Flask JWT Authentication
You could also use my pip package Flask_PyJWT to handle auth in flask instead of using pyjwt directly. It adds some helpful shortcuts like consistent token creation, route decorators, and a proxy to the current token in a request context.
-
I've written a flask extension for JWT auth, but I need some help from other developers
The code is available on GitHub and I've just finished (manually) making sure things work and writing strong documentation both in the code and for Read the Docs. However, there's one crucial thing I'm missing: Tests.
What are some alternatives?
rq - Simple job queues for Python
Poetry - Python packaging and dependency management made easy
rq-scheduler - A lightweight library that adds job scheduling capabilities to RQ (Redis Queue)
rq-dashboard - Flask-based web front-end for monitoring RQ queues
flask-apscheduler - Adds APScheduler support to Flask
arq - Fast job queuing and RPC in python with asyncio and redis.
django-todo - A multi-user, multi-group todo/ticketing system for Django projects. Includes CSV import and integrated mail tracking.
flower - Real-time monitor and web admin for Celery distributed task queue
django-q2 - A multiprocessing distributed task queue for Django. Django Q2 is a fork of Django Q. Big thanks to Ilan Steemers for starting this project. Unfortunately, development has stalled since June 2021. Django Q2 is the new updated version of Django Q, with dependencies updates, docs updates and several bug fixes. Original repository: https://github.com/Koed00/django-q