Installing Alligator

Installation of Alligator itself is a relatively simple affair. For the most recent stable release, simply use pip to run:

$ pip install alligator

Alternately, you can download the latest development source from Github:

$ git clone
$ cd alligator
$ python install

Queue Backends

Alligator includes a Local Memory Client, which is useful for development or testing (no setup required). However, this is not very scalable.

For production use, you should install one of the following servers used for queuing:


A in-memory data structure server, it offers excellent speed as well as being a frequently-already-installed server. Official releases can be found at

You’ll also need to install the redis package:

$ pip install redis

You can also install via other package managers:

# On Mac with Homebrew
$ brew install redis

# On Ubuntu
$ sudo aptitude install redis


Amazon SQS is a queue service created by Amazon Web Services. It works well in large-scale environments or if you’re already using other AWS services.

It has the benefit of not requiring an installed setup, only an AWS account & a credit card, making it the easiest of the production queues to setup.

You’ll need to install the boto3 packages:

$ pip install 'boto3>=1.12.0'


SQS works differently than the other queues in a couple ways:

  1. It does NOT support custom task_id``s. You can still set them and it will be preseved in the task, but the backend will overwrite your ``task_id choice once it’s in the queue.
  2. You must manually create queues! Alligator will not auto-create them (to save on requests performed & therefore how much you are billed). Create the Gator queues at the AWS console before trying to use them.
  3. It does NOT support gator.get(...), as this functionality is not supported by the SQS service itself.

It’s also an excellent choice at large volumes, but you should be aware of the shortcomings.


A file-backed database. It’s fast, lightweight & easy to work with. Python 3 ships with built-in support & there’s no server to run. Suitable for small/light loads & simple setups (or development).

You can also install via other package managers:

# On Mac with Homebrew
$ brew install sqlite

# On Ubuntu
$ sudo aptitude install sqlite3