blob: 6535127dc8a1ae951688c26554a457052db09123 [file] [log] [blame]
Joe Gregorio239855e2011-05-04 14:22:30 -04001This acts as a sample as well as commandline tool for accessing Google TaskQueue
2APIs.
3
4Installation
5============
6
7To install, simply say
8
9 $ python setup.py install --record=files.txt
10
11to install the files and record what files are installed in files.txt.
12Make sure that you have already installed the google-python-client-libraries
13using the setup.py in the toplevel directory.
14
15You may need root priveleges for install.
16
17Running
18=======
19This sample provides following:
201. gtaskqueue: This works as a command-line tool to access Google TaskQueue
21API. You can perform various operations on taskqueues such as leastask,
22getask, listtasks, deletetask, getqueue.
23Example usage:
24 i. To lease a task
25 gtaskqueue leasetask --taskqueue_name=<your queue_name>
26 -lease_secs=30 --project_name=<your appengine app_name>
27 ii. To get stats on a queue
28 gtaskqueue getqueue --taskqueue_name=<your queue_name>
29 --project_name=<your appengine app_name> --get_stats
30
312. gtaskqueue_puller: This works as a worker to continuously pull tasks enqueued
32by your app,perform the task and the post the output back to your app.
33Example Usage:
34 gtaskqueue_puller --taskqueue_name=<your queue_name>
35 -lease_secs=30 --project_name=<your appengine app_name>
36 --executable_binary=”cat --output_url=<url location if you want to pos the data
37 back(optional)>
38
39Third Party Libraries
40=====================
41
42These libraries will be installed when you install the client library:
43
44http://code.google.com/p/httplib2
45http://code.google.com/p/uri-templates
46http://github.com/simplegeo/python-oauth2