django-lifecycle
Declarative model lifecycle hooks, an alternative to Signals. (by rsinger86)
huey
a little task queue for python (by coleifer)
django-lifecycle | huey | |
---|---|---|
12 | 10 | |
1,282 | 4,927 | |
- | - | |
8.1 | 6.2 | |
2 months ago | about 8 hours ago | |
Python | Python | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
django-lifecycle
Posts with mentions or reviews of django-lifecycle.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-14.
-
Is it good way to send request whenever model update?
You could use lifecycle hooks to only trigger the function on certain column updates https://rsinger86.github.io/django-lifecycle/
-
What's the best thing you've learned about Django this year?
Even better alternative to signals, IMO, is lifecycle hooks
-
Trying to Use Django Lifecycle Hooks
I've just came across Django Lifecycle Hooks (Recommended by a fellow Redditor) and I want to use it in my site.
- Is Django Signals Suitable For My Usecase?
-
Best way to store record statuses and show current status?
To track each order status, we used django-lifecycle package. Whenever the status changes, it triggers the hook and status log is created.
-
Where to place Business Logic using the Rest Framework?
You may want to look at django lifecycle hooks which has a really simple and powerful API for models: https://rsinger86.github.io/django-lifecycle/
-
Which view or model methods do you commonly override in Django Rest Framework to customize/deviate from default behavior?
If it's bind to saving to database, you have different options like overriding Model.save(), signals, and django-lifecycle.
-
Django - do something only when model instance first created
Several replies mention django signals. That's an option, but a similar tool that provides a much clearer/cleaner implementation is django-lifecycle.
-
How to stop usernames from being case sensitive?
Note, my solution uses django-lifecycle and here is their documentation
-
Django Lifecycle Hooks
The package is still in beta for now but it's already working pretty well. You can learn more and try by yourself here: https://rsinger86.github.io/django-lifecycle/
huey
Posts with mentions or reviews of huey.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-10.
-
Nextflow: Data-Driven Computational Pipelines
I've considered using Nextflow for bioinformatics pipelines but have yet to take the plunge. At work, I develop a proteomics pipeline that is composed of huey¹ tasks (Python library; simple alternative to Celery) which either use subprocess to call out to some external tool, or are just pure python. It runs in a worker container which is created by docker swarm, and all containers pull jobs from redis. For our scale, it works great. However, I don't have control over the resource utilization of individual steps, and in the past I've had issues with the pipeline blocking as a result of how I was chaining tasks together. I think something like Nextflow would remove these limitations, but one thing I think I would miss is the ability to debug individual pipeline steps locally with an interactive debugger. As far as I can tell, Nextflow has logging/tracing facilities but nothing quite like an interactive debugger. I'd be happy to be told I'm wrong, or even that I'm doing it wrong.
____
¹ https://github.com/coleifer/huey/
-
Background jobs with Django
Other options are DjangoQ and Huey, which tend to work ok. Of the two I prefer DjangoQ. Database backed, don't require the Redis/Celery rigmarole.
-
What's the best thing you've learned about Django this year?
Funny, just this moment i finally switched from Celery to huey. And so far I don't regret. huey looks very promising, has good documentation and is well integrated into DJango. You should give it a try: https://github.com/coleifer/huey
-
This Week in Python
huey – a little task queue for python
-
What is your favourite task queuing framework?
Huey -> Same again?
-
5 background scheduling libraries in Python you must know
Huey: https://github.com/coleifer/huey
- Celery in production: Three more years of fixing bugs
-
Not sure if I should use celery or asyncio
I just want to add that a couple celery alternatives worth looking at include huey and dramatiq.
-
What is the best option for a (Python 3) task queue on Windows now that Celery 4 has dropped Windows support?
huey
-
Django 4.0 released
same, I ran into an issue cos of django-background-tasks. I am thinking to replace it with huey