Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A bare-bones ticket server that runs as a stand-alone HTTP service.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


This is a bare-bones ticket server that runs as a stand-alone HTTP service.

It allows applications to request a new ticket, check the status of an existing
ticket and mark a ticket as completed. It is not sexy. It does not make
ponies. It makes tickets. What you do with them is your business but presumably
you'd use to keep track of long(ish) running tasks so that clients can
periodically poll to see if they've been completed.

It uses the Shove module to provide a variety of backends for storing tickets;
as of this writing only in-memory and Amazon S3 backends are supported.

The interface looks like this:




All calls return plain text. The 'get_ticket' method returns a ticket. The check
ticket returns (UNKNOWN, PENDING, COMPLETED). The 'mark_ticket_completed' method
returns (OK, FAIL).

Ticket IDs are generated as UUIDs and, by default, are purged the first time
they are checked after having been marked as completed.

There is (currently) no authentication model. It's not expected that you'll be
running this on a public-facing host. Buyer beware.


# EXAMPLE (CLI usage)

$> ticketserver/ --scheme s3 --port 9999 --s3_config ~/.api/aws.cfg --s3_bucket ticketserver

# EXAMPLE (S3 config file)


# EXAMPLE (from your code)

ts = ticketserver('s3://key:secret@bucket')

ticket = ts.get_ticket()


status = ts.check_ticket(ticket)



This package also uses the Servable WSGI wrapper library which is great except
for the part where you will currently need to comment out line 104 of per this thread:


Something went wrong with that request. Please try again.