Skip to main content

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/

Logo

Usage:

  1. Add snappea to your INSTALLED_APPS.

  2. 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",)

  1. Create the tables:
python manage.py migrate  --database=snappea
  1. Start the snappea background process:
python manage.py runsnappea
  1. 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.0.tar.gz (54.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snappea-1.0.0-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

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

Hashes for snappea-1.0.0.tar.gz
Algorithm Hash digest
SHA256 157af1872663b067e843b5ed65b81f5f27747b20176aceb1ec47ebf07a74abbb
MD5 8e3897e7a5a45ce9edb90cae07e08efa
BLAKE2b-256 289f6caa15648b2ad2bd7e4a5e94920920e29ef1232b8fe860215be36fbb3dbb

See more details on using hashes here.

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

Hashes for snappea-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b22c9073efe87057c5901bab6536020eec268c82be5842f124292b3a9e13904d
MD5 24021f1a374435b83899a85ac9201493
BLAKE2b-256 c54e83a1d809fc91a36990424b95b8f724ce3fe562558bb1fa02c1f14ad0af92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page