Skip to main content

GitHub version PyPI version

Testing CodeFactor codecov

Summary

This django library adds signals for the bulk database actions provided by django (bulk_create, bulk_update and QuerySet.update)

usage

Add app to settings

INSTALLED_APPS = [
    ...,
    bulk_signals,
    ...
]

Import signals and connect.The signals are connected the same way as in Django itself. To see them in action use the following snippet:

from django.dispatch import receiver
from bulk_signals import signals

@receiver(signals.pre_bulk_update, signals.post_bulk_update, signals.post_query_update)
def debug(*args, **kwargs):
    print(args)
    print(kwargs)

You can skip the signals on a single execution by using the skip_signal=True keyword argument. Which keyword should be used for skipping is configurable via the BULK_SIGNALS_SKIP_KEY="skip_signal" configuration in the django settings.

TODO

  • test against different database backends

Metadata

Release files for django-bulk-signals 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-bulk-signals 0.4.2
File Size Uploaded
django-bulk-signals-0.4.2.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-bulk-signals 0.4.2
File Interpreter ABI Platform
django_bulk_signals-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.4 kB

Release files / django-bulk-signals-0.4.2.tar.gz

Download URL django-bulk-signals-0.4.2.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a94a57858c4dacf479b72dbbde256e49f1316b0f41ba75c888a687e32140574d
BLAKE2b-256 checksum
How to use checksums
2925e8b409953753e88b7c6bf1796fb652a6858c4dbd1ef9fdfe1652572e8d78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / django_bulk_signals-0.4.2-py3-none-any.whl

Download URL django_bulk_signals-0.4.2-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f8ef844b0d8714de11912160bcf03d66e5361afe560bb43c92f7aabbe733f32
BLAKE2b-256 checksum
How to use checksums
c2ce67c633a166a769b9a0750e828de3b04457d98739cf66a5726c4c05148d48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page