pikepdf
django-pgpubsub
Our great sponsors
pikepdf | django-pgpubsub | |
---|---|---|
4 | 11 | |
2,019 | 219 | |
1.5% | 1.8% | |
9.5 | 8.5 | |
3 days ago | 2 months ago | |
Python | Python | |
Mozilla Public License 2.0 | 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.
pikepdf
-
This Week in Python
pikepdf – A Python library for reading and writing PDF, powered by qpdf
-
Recovering redacted information from pixelated videos
Not off the shelf but here are some tools. I have no experience with them.
Wolf binarization - I think it makes the text more clear before OCR.
https://github.com/chriswolfvision/local_adaptive_binarizati...
This thing OCRs the pdf using Tesseract OCR
https://github.com/ocrmypdf/OCRmyPDF/
Two other pdf tools
-
Show HN: Pystitcher – A Declarative Alternative to Pdftk
i recently transitioned a large PDF processing pipeline[1] away from PyPDF3 to use the pikepdf[2] library instead. pikepdf is based on the C++ `qpdf` library, and this switch has cut the necessary special-case manual checking + error handling in half compared to pypdf for these sorts of tasks.
[1]: i'm helping out with the CV Open Access archive, https://openaccess.thecvf.com/menu. broadly, our pipeline needs to ingest tons of author-provided PDFs of varying quality and output a canonical PDF with corrected page numbers, proper metadata, and a banner stamped on the first page. it's a lot of work, and it's not uncommon for pypdf to simply fail for slightly invalid input or give garbled results. this isn't optimal since we can't review 2,000 papers per conference release lol. pypdf has been nice, but pikepdf has handled everything i've thrown at it.
- a collection of pdf-files (copy of a book ) in disorder: solfing wiht pikepdf
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?
fpdf2 - Simple PDF generation for Python
django-pgtrigger - Write Postgres triggers for your Django models
borb - borb is a library for reading, creating and manipulating PDF files in python.
streamlit - Streamlit — A faster way to build and share data apps.
PyPDF2 - A utility to read and write PDFs with Python [Moved to: https://github.com/py-pdf/PyPDF2]
pathfinding - Pathfinding library for rust
qpdf - QPDF: A content-preserving PDF document transformer
ur_l - The ultimate Django / Postgres / Redis url shortner .
PyPDF2 - A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
django-background-tasks - A database-backed work queue for Django
malicious-pdf - 💀 Generate a bunch of malicious pdf files with phone-home functionality. Can be used with Burp Collaborator or Interact.sh
django-crontab - dead simple crontab powered job scheduling for django.