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-0.1.1.tar.gz (49.3 kB view details)

Uploaded Source

Built Distribution

snappea-0.1.1-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file snappea-0.1.1.tar.gz.

File metadata

  • Download URL: snappea-0.1.1.tar.gz
  • Upload date:
  • Size: 49.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for snappea-0.1.1.tar.gz
Algorithm Hash digest
SHA256 55f76f312667d713e3fc885c313cf966fa289c79ec00b2bb758b3a47fe3490c3
MD5 9b65dfd4804964449125388a04eb8ac8
BLAKE2b-256 cbc0f11c2f4e5c97eac37e6cbe4a86f2ce5816ef2938def2a46577d93d402de2

See more details on using hashes here.

File details

Details for the file snappea-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: snappea-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for snappea-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0ef0a9e54b8fec2d59dc6b9ee73e17113c90075bd6e631a12c99ddda932e5468
MD5 910f1d789b02c5321a108c1c6aa51be1
BLAKE2b-256 8d99d6f0a4b5ea24c62350a6887f52892d8a583c2e3b8287ba54ee738720f855

See more details on using hashes here.

Supported by

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