Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 1 | This is a prototype implementation of a client |
| 2 | for discovery based APIs. |
| 3 | |
Joe Gregorio | 8097e2a | 2011-05-17 11:11:34 -0400 | [diff] [blame] | 4 | |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 5 | Installation |
| 6 | ============ |
| 7 | |
Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame] | 8 | To install, simply say |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 9 | |
Joe Gregorio | 8097e2a | 2011-05-17 11:11:34 -0400 | [diff] [blame] | 10 | $ python setup.py install |
Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame] | 11 | |
| 12 | If you want to do a "mock install" and simply extend your PYTHONPATH |
| 13 | for the current shell to include this folder and the packages in it, do |
| 14 | |
| 15 | $ source setpath.sh |
| 16 | |
| 17 | from the root of the project directory. |
| 18 | |
| 19 | |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 20 | Running |
| 21 | ======= |
| 22 | |
Joe Gregorio | 8097e2a | 2011-05-17 11:11:34 -0400 | [diff] [blame] | 23 | After following the install directions (using setup.py or setpath.sh) you |
| 24 | should be able to cd to samples/buzz and run buzz.py from there, which will use |
| 25 | the apiclient library to retrieve the title of the most recent entry in Buzz |
| 26 | and post a test message. The first time you run it you will be prompted to |
| 27 | authorize the application to access your Buzz information. |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 28 | |
Tom Miller | c378c6d | 2010-10-11 12:00:36 -0700 | [diff] [blame] | 29 | $ python samples/buzz/buzz.py |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 30 | |
| 31 | |
Tom Miller | 3a49e4c | 2010-09-28 15:16:25 -0700 | [diff] [blame] | 32 | Third Party Libraries |
Joe Gregorio | e9e236f | 2011-03-21 22:23:14 -0400 | [diff] [blame] | 33 | ===================== |
| 34 | |
Joe Gregorio | 20a5aa9 | 2011-04-01 17:44:25 -0400 | [diff] [blame] | 35 | These libraries will be installed when you install the client library: |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 36 | |
| 37 | http://code.google.com/p/httplib2 |
| 38 | http://code.google.com/p/uri-templates |
Joe Gregorio | 8097e2a | 2011-05-17 11:11:34 -0400 | [diff] [blame] | 39 | http://code.google.com/p/python-gflags |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 40 | http://github.com/simplegeo/python-oauth2 |
Joe Gregorio | 8097e2a | 2011-05-17 11:11:34 -0400 | [diff] [blame] | 41 | |
| 42 | Depending on your version of Python, these libraries may also be installed: |
| 43 | |
| 44 | http://pypi.python.org/pypi/simplejson/ |
Joe Gregorio | 432f17e | 2011-05-22 23:18:00 -0400 | [diff] [blame] | 45 | |
| 46 | For developement you will also need: |
| 47 | |
| 48 | http://pythonpaste.org/webtest/ |