dj-pq
pq wrapper for django.
Installation
pip install dj-pq
Configuration
Add dj_pq to your INSTALLED_APPS:
INSTALLED_APPS += [
'dj_pq',
]
Apply migrations:
./manage.py migrate
Usage
dj-pq exposes the pq tasks API.
from dj_pq import get_queue
queue = get_queue('notifications')
@queue.task()
def notify(user_id):
User.objects.get(id=user_id).notify()
notify(42)
Optionally a Queue can be bound to a specific database connection:
queue = get_queue('notifications', 'another_connection')
A worker command allows to start a worker for a given queue:
./manage.py worker notifications
Metadata
Release files for dj-pq 1.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dj-pq-1.4.2.tar.gz | 3.2 kB | Without provenance | Details for dj-pq-1.4.2.tar.gz |
Release files / dj-pq-1.4.2.tar.gz
| Download URL | dj-pq-1.4.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d14f7e6d2f3661a38bd3539d0b45dea77a047e6990a7ee2d6f205f5f4c562aed
|
|
BLAKE2b-256 checksum How to use checksums |
4b46f71d4762a3153a689c88ac7a153c8ba4e265409aee4ab0c70027ceb0b19b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dj-pq 1.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.