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
snappea-1.0.1.tar.gz
(54.4 kB
view details)
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
snappea-1.0.1-py3-none-any.whl
(28.7 kB
view details)
File details
Details for the file snappea-1.0.1.tar.gz.
File metadata
- Download URL: snappea-1.0.1.tar.gz
- Upload date:
- Size: 54.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e211ca32e528270b1950d4999aae3b31753ceae57a7b595fcb0e3bea50dcf73
|
|
| MD5 |
0ce78f5a2d2eb441911ce43936ca6dfb
|
|
| BLAKE2b-256 |
28d54327f6c5d6b06ca21271fc2df485724b96dae53739d73fdef227ea4af0da
|
File details
Details for the file snappea-1.0.1-py3-none-any.whl.
File metadata
- Download URL: snappea-1.0.1-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e35b1a8f5aaae3652d007fdfcec65f7b33bcde927b4390c28a00d48894205be
|
|
| MD5 |
de9462d5fd3c583cdf9d8619c54c9366
|
|
| BLAKE2b-256 |
9746bb8b66b3f9852e947fdfa1acbf306e97c856a8133e6064b95876a4def2d3
|