django-pgtrigger
django-pgpubsub
Our great sponsors
django-pgtrigger | django-pgpubsub | |
---|---|---|
3 | 11 | |
508 | 221 | |
1.2% | 2.7% | |
6.4 | 8.1 | |
16 days ago | 9 days ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 or later |
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-pgtrigger
-
How Postgres Triggers Can Simplify Your Back End Development
For Django there's https://github.com/Opus10/django-pgtrigger that makes it possible to define triggers right in your models, so you have everything in one place.
-
This Week in Python
django-pgtrigger – Write Postgres triggers for your Django models
-
A lightweight alternative to Celery for Django-PostgreSQL apps.
Note that have now ditched our post_save signal from the previous solution. As we pointed out, signals can easily be missed. Instead, we are using a Postgres trigger : defining the listener as it is above makes use of the django-pgtrigger library to write a Postgres trigger to our database, the job of which is to notify our channel whenever a Comment is inserted in to the database. Triggers are far more robust than signals for detecting database write events; application level triggers can easily be missed, whereas triggers will always be executed.
django-pgpubsub
-
run scheduled job using django orm as broker
First I would stick with celery if possible. I am not aware of something like that that is widely adopted. you could write your own crontab scripts or a combination of crontab script that writes to db with some listener like this https://github.com/Opus10/django-pgpubsub or use this one https://github.com/kraiz/django-crontab But both projects are not widely used or do not seem to be well maintained. I hope I was able to be of any help.
- django-pgpubsub: A lightweight alternative to Celery built on top of the Postgres NOTIFY/LISTEN protocol
- django-pgpubsub: Distributed Django Tasks using Postgres NOTIFY
-
windows-friendly replacement for django=background-tasks?
If you're using Postgres, you could consider https://github.com/Opus10/django-pgpubsub
-
This Week in Python
django-pgpubsub – A distributed task processing framework for Django built on top of the Postgres NOTIFY/LISTEN protocol
-
A lightweight alternative to Celery for Django-PostgreSQL apps.
Rather than relying on signals and celery, we may want to consider borrowing a pattern from the land of Postgres: Triggers and NOTIFY/LISTEN. The library django-pgpubsub offers a django application layer abstraction of this pattern. We can refactor our above solution using django-pgpubsub to look as follows:
-
push notifications - reminders (Django Rest Framework + Postgresql)
You could try https://github.com/Opus10/django-pgpubsub. This is distributed task processing framework for Django built on top of the Postgres NOTIFY/LISTEN protocol. Does what you're looking for and isn't as operationally heavy as something like celery.
-
Asynchronous processing of database events in a robust and lightweight manner using django-pgpubsub
A common pattern in modern web development is the requirement to process data asynchronously after some user action or database event. In the below article, I describe via a concrete example a traditional approach to solving this problem for a Django/Postgres based application using django signals and Celery. I then proceed to discuss some of the shortcomings of this approach and demonstrate how using django-pgpubsub can offer a lightweight and more robust solution.
- django-pgpubsub: A distributed task processing framework for Python built on top of the Postgres NOTIFY/LISTEN protocol.
- django-pgpubsub: A distributed task processing framework for Django built on top of the Postgres NOTIFY/LISTEN protocol.
What are some alternatives?
psycopg2 - PostgreSQL database adapter for the Python programming language
streamlit - Streamlit — A faster way to build and share data apps.
queries - PostgreSQL database access simplified
pathfinding - Pathfinding library for rust
txpostgres - Twisted wrapper for asynchronous PostgreSQL connections
ur_l - The ultimate Django / Postgres / Redis url shortner .
Python PG Extras - Python PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more.
django-crontab - dead simple crontab powered job scheduling for django.
asyncpg - A fast PostgreSQL Database Client Library for Python/asyncio.
django-celery-docker-example - Example Docker setup for a Django app behind an Nginx proxy with Celery workers
awesome-mysql - A curated list of awesome MySQL software, libraries, tools and resources
django-background-tasks - A database-backed work queue for Django