darthbear / simple-http-queue

Simple HTTP queue (FIFO and LIFO) implemented using Python, SQLite3 and Tornado. It supports multiple queues.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple-http-queue

Very simple HTTP queue implemented using Python, SQLite3 and Tornado

Run the server:

python HttpQueue.py /tmp/data.dat 8080

How to use queues:

push: curl http://localhost:8080/queues/myqueue1/push -XPOST -d 'mydata'
pop: curl http://localhost:8080/queues/myqueue1/pop
peek: curl http://localhost:8080/queues/myqueue1/peek
size: curl http://localhost:8080/queues/myqueue1/size
drop: curl http://localhost:8080/queues/myqueue1/drop -XDELETE
drop: curl http://localhost:8080/queues/myqueue1/drop -XPOST

How to use stacks:

push: curl http://localhost:8080/stacks/mystack1/push -XPOST -d 'mydata'
pop: curl http://localhost:8080/stacks/mystack1/pop
peek: curl http://localhost:8080/stacks/mystack1/peek
size: curl http://localhost:8080/stacks/mystack1/size
drop: curl http://localhost:8080/stacks/mystack1/drop -XDELETE
drop: curl http://localhost:8080/stacks/mystack1/drop -XPOST

You can use as many queues as you want

Client:

Client.py offers a thin interface to the queue/stack

About

Simple HTTP queue (FIFO and LIFO) implemented using Python, SQLite3 and Tornado. It supports multiple queues.


Languages

Language:Python 100.0%