jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 1 | from distutils.core import setup |
jcgregorio | 17948c0 | 2006-06-29 05:31:17 +0000 | [diff] [blame] | 2 | VERSION = '0.2.0' |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 3 | setup(name='httplib2', |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 4 | version=VERSION, |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 5 | author='Joe Gregorio', |
| 6 | author_email='joe@bitworking.org', |
| 7 | url='http://bitworking.org/projects/httplib2/', |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 8 | download_url='http://bitworking.org/projects/httplib2/dist/httplib2-%s.tar.gz' % VERSION, |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 9 | description='A comprehensive HTTP client library.', |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 10 | license='MIT', |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 11 | long_description=""" |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 12 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 13 | A comprehensive HTTP client library, ``httplib2`` supports many features left out of other HTTP libraries. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 14 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 15 | **HTTP and HTTPS** |
| 16 | HTTPS support is only available if the socket module was compiled with SSL support. |
| 17 | |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 18 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 19 | **Keep-Alive** |
| 20 | Supports HTTP 1.1 Keep-Alive, keeping the socket open and performing multiple requests over the same connection if possible. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 21 | |
| 22 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 23 | **Authentication** |
| 24 | The following three types of HTTP Authentication are supported. These can be used over both HTTP and HTTPS. |
| 25 | |
| 26 | * Digest |
| 27 | * Basic |
| 28 | * WSSE |
| 29 | |
| 30 | **Caching** |
| 31 | The module can optionally operate with a private cache that understands the Cache-Control: |
jcgregorio | 17948c0 | 2006-06-29 05:31:17 +0000 | [diff] [blame] | 32 | header and uses both the ETag and Last-Modified cache validators. Both file system |
| 33 | and memcached based caches are supported. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 34 | |
| 35 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 36 | **All Methods** |
| 37 | The module can handle any HTTP request method, not just GET and POST. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 38 | |
| 39 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 40 | **Redirects** |
| 41 | Automatically follows 3XX redirects on GETs. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 42 | |
| 43 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 44 | **Compression** |
jcgregorio | 17948c0 | 2006-06-29 05:31:17 +0000 | [diff] [blame] | 45 | Handles both 'deflate' and 'gzip' types of compression. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 46 | |
| 47 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 48 | **Lost update support** |
| 49 | Automatically adds back ETags into PUT requests to resources we have already cached. This implements Section 3.2 of Detecting the Lost Update Problem Using Unreserved Checkout |
| 50 | |
| 51 | |
| 52 | **Unit Tested** |
| 53 | A large and growing set of unit tests. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 54 | """, |
jcgregorio | 3089611 | 2006-03-10 02:39:56 +0000 | [diff] [blame] | 55 | packages=['httplib2'], |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 56 | classifiers=[ |
| 57 | 'Development Status :: 3 - Alpha', |
| 58 | 'Environment :: Web Environment', |
| 59 | 'Intended Audience :: Developers', |
| 60 | 'License :: OSI Approved :: MIT License', |
| 61 | 'Operating System :: OS Independent', |
| 62 | 'Programming Language :: Python', |
| 63 | 'Topic :: Internet :: WWW/HTTP', |
| 64 | 'Topic :: Software Development :: Libraries', |
| 65 | ], |
| 66 | ) |
| 67 | |