MessageQueue-less task runner for Django
Project description
Snappea
A simple alternative for celery that doesn't require a broker.
See https://www.bugsink.com/snappea-design/
Usage:
-
Add
snappeato yourINSTALLED_APPS. -
Add a "snappea" DATABASE to your settings, and route snappea traffic to it:
DATABASES = {
[..]
"snappea": {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'snappea.sqlite3',
'OPTIONS': {
'timeout': 5,
},
},
}
DATABASE_ROUTERS = ("snappea.dbrouters.SeparateSnappeaDBRouter",)
- Create the tables:
python manage.py migrate --database=snappea
- Start the snappea background process:
python manage.py runsnappea
- In another Window, fire off a task to test that it works:
python manage.py shell
Python [..] (main, [..]
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from snappea.example_tasks import printing_task
>>> printing_task.delay()
You should now see text in your snappea console.
Limitations
- Django-only
- Linux-only.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snappea-1.0.0.tar.gz.
File metadata
- Download URL: snappea-1.0.0.tar.gz
- Upload date:
- Size: 54.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
157af1872663b067e843b5ed65b81f5f27747b20176aceb1ec47ebf07a74abbb
|
|
| MD5 |
8e3897e7a5a45ce9edb90cae07e08efa
|
|
| BLAKE2b-256 |
289f6caa15648b2ad2bd7e4a5e94920920e29ef1232b8fe860215be36fbb3dbb
|
File details
Details for the file snappea-1.0.0-py3-none-any.whl.
File metadata
- Download URL: snappea-1.0.0-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b22c9073efe87057c5901bab6536020eec268c82be5842f124292b3a9e13904d
|
|
| MD5 |
24021f1a374435b83899a85ac9201493
|
|
| BLAKE2b-256 |
c54e83a1d809fc91a36990424b95b8f724ce3fe562558bb1fa02c1f14ad0af92
|