|
6 | 6 | from setuptools import setup, find_packages |
7 | 7 |
|
8 | 8 | _long_description = ''' |
9 | | -This is a HTTPS client implementation for httplib and urllib2 based on |
| 9 | +This is a HTTPS client implementation for httplib and urllib2 based on |
10 | 10 | PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation over the |
11 | 11 | default provided with Python and importantly enables full verification of the |
12 | | -SSL peer. |
| 12 | +SSL peer. |
13 | 13 |
|
14 | 14 | Releases |
15 | 15 | ======== |
| 16 | +0.3.1 |
| 17 | +----- |
| 18 | + * extended utils functions to support keyword for passing additional urllib2 |
| 19 | + handlers. |
| 20 | +
|
16 | 21 | 0.3.0 |
17 | 22 | ----- |
18 | | - * Added ndg.httpsclient.utils.fetch_stream_from_url function and added |
| 23 | + * Added ndg.httpsclient.utils.fetch_stream_from_url function and added |
19 | 24 | parameter for data to post in open_url and fetch_* methods. |
20 | 25 | * fix to ndg.httpsclient.utils module _should_use_proxy and open_url functions |
21 | 26 |
|
22 | 27 | 0.2.0 |
23 | 28 | ----- |
24 | 29 | * added support for SSL verification with subjectAltNames using pyasn1 |
25 | 30 | * fixed minor bug - SSL cert DN prefix matching |
26 | | - |
| 31 | +
|
27 | 32 | 0.1.0 |
28 | 33 | ----- |
29 | 34 | Initial release |
30 | 35 |
|
31 | 36 | Prerequisites |
32 | 37 | ============= |
33 | | -This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13. |
34 | | -Note that proxy support is only available from Python 2.6.2 onwards. pyasn1 is |
| 38 | +This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13. |
| 39 | +Note that proxy support is only available from Python 2.6.2 onwards. pyasn1 is |
35 | 40 | required for correct SSL verification with subjectAltNames. |
36 | 41 |
|
37 | 42 | Installation |
38 | 43 | ============ |
39 | | -Installation can be performed using easy_install or pip. |
| 44 | +Installation can be performed using easy_install or pip. |
40 | 45 |
|
41 | 46 | Running ndg_httpclient |
42 | 47 | ====================== |
43 | 48 | A simple script for fetching data using HTTP or HTTPS GET from a specified URL. |
44 | | - |
45 | | -Parameter:: |
46 | | - url The URL of the resource to be fetched |
47 | | -
|
48 | | -Options:: |
49 | | - -h, --help Show help message and exit. |
50 | | - -c FILE, --certificate=FILE |
51 | | - Certificate file - defaults to $HOME/credentials.pem |
52 | | - -k FILE, --private-key=FILE |
53 | | - Private key file - defaults to the certificate file |
54 | | - -t DIR, --ca-certificate-dir=DIR |
55 | | - Trusted CA certificate file directory. |
56 | | - -d, --debug Print debug information - this may be useful in |
57 | | - solving problems with HTTP or HTTPS access to a |
58 | | - server. |
59 | | - -p FILE, --post-data-file=FILE |
60 | | - POST data file |
61 | | - -f FILE, --fetch=FILE Output file |
62 | | - -n, --no-verify-peer Skip verification of peer certificate. |
| 49 | +
|
| 50 | +Parameter: |
| 51 | +
|
| 52 | +``url`` |
| 53 | + The URL of the resource to be fetched |
| 54 | +
|
| 55 | +Options: |
| 56 | +
|
| 57 | +``-h, --help`` |
| 58 | + Show help message and exit. |
| 59 | +
|
| 60 | +``-c FILE, --certificate=FILE`` |
| 61 | + Certificate file - defaults to ``$HOME/credentials.pem`` |
| 62 | +
|
| 63 | +``-k FILE, --private-key=FILE`` |
| 64 | + Private key file - defaults to the certificate file |
| 65 | +
|
| 66 | +``-t DIR, --ca-certificate-dir=DIR`` |
| 67 | + Trusted CA certificate file directory. |
| 68 | +
|
| 69 | +``-d, --debug`` |
| 70 | + Print debug information - this may be useful in solving problems with HTTP or |
| 71 | + HTTPS access to a server. |
| 72 | + |
| 73 | +``-p FILE, --post-data-file=FILE`` |
| 74 | + POST data file |
| 75 | + |
| 76 | +``-f FILE, --fetch=FILE`` |
| 77 | + Output file |
| 78 | + |
| 79 | +``-n, --no-verify-peer`` |
| 80 | + Skip verification of peer certificate. |
63 | 81 | ''' |
64 | 82 |
|
65 | 83 | setup( |
66 | 84 | name='ndg_httpsclient', |
67 | | - version="0.3.0", |
| 85 | + version="0.3.1", |
68 | 86 | description='Provides enhanced HTTPS support for httplib and urllib2 using ' |
69 | 87 | 'PyOpenSSL', |
70 | 88 | author='Richard Wilkinson and Philip Kershaw', |
|
0 commit comments