@@ -67,9 +67,9 @@ class Interface(object):
67
67
installed via pip:
68
68
pip install SocksiPy-branch
69
69
70
- .. note::
71
- Pyxnat-requests branch completely removes all of the caching
72
- functionality from pyxnat. The cache was causing more hassle than it was worth.
70
+ .. note::
71
+ All caching functionality has been removed from pyxnat as of 1.0.0.0.
72
+ The cache was causing more hassle than it was worth.
73
73
74
74
"""
75
75
@@ -92,15 +92,8 @@ def __init__(self, server=None, user=None, password=None,
92
92
password: string | None
93
93
The user's password.
94
94
If None the user will be prompted for it.
95
- cachedir: string
96
- .. note::
97
- Pyxnat-requests branch completely removes all of the caching
98
- functionality from pyxnat.
99
-
100
- Path of the cache directory (for all queries and
101
- downloaded files)
102
- If no path is provided, a platform dependent temp dir is
103
- used.
95
+ cachedir: string (Depricated)
96
+
104
97
config: string
105
98
Reads a config file in json to get the connection parameters.
106
99
If a config file is specified, it will be used regardless of
@@ -115,7 +108,7 @@ def __init__(self, server=None, user=None, password=None,
115
108
specify a username and password for proxy access, prepend them
116
109
to the hostname:
117
110
http://user:pass@hostname:port
118
-
111
+
119
112
verify: True, False, or path to file containing certificate for your site
120
113
Added to the requests Session, as documented here:
121
114
http://docs.python-requests.org/en/latest/user/advanced/#ssl-cert-verification
@@ -127,8 +120,8 @@ def __init__(self, server=None, user=None, password=None,
127
120
self ._interactive = False
128
121
129
122
self ._anonymous = anonymous
130
-
131
- self ._verify = verify
123
+
124
+ self ._verify = verify
132
125
133
126
if self ._anonymous :
134
127
@@ -162,7 +155,7 @@ def __init__(self, server=None, user=None, password=None,
162
155
self ._server = connection_args ['host' ]
163
156
self ._user = connection_args ['u' ]
164
157
self ._pwd = connection_args ['p' ]
165
-
158
+
166
159
167
160
if 'proxy' in connection_args :
168
161
self .__set_proxy (connection_args ['proxy' ])
@@ -313,19 +306,19 @@ def _exec(self, uri, method='GET', body=None, headers=None, force_preemptive_aut
313
306
headers: dict
314
307
Additional headers for the HTTP request.
315
308
force_preemptive_auth: boolean
316
- .. note:: Depricated with Pyxnat-requests
309
+ .. note:: Depricated as of 1.0.0.0
317
310
Indicates whether the request should include an Authorization header with basic auth credentials.
318
311
**kwargs: dictionary
319
312
Additional parameters to pass directly to the Requests HTTP call.
320
313
321
314
HTTP:GET
322
315
----------
323
- When calling with GET as method, the body parameter can be a key:value dictionary containing
316
+ When calling with GET as method, the body parameter can be a key:value dictionary containing
324
317
request parameters or a string of parameters. They will be url encoded and appended to the url.
325
318
326
319
HTTP:POST
327
320
----------
328
- When calling with POST as method, the body parameter can be a key:value dictionary containing
321
+ When calling with POST as method, the body parameter can be a key:value dictionary containing
329
322
request parameters they will be url encoded and appended to the url.
330
323
331
324
"""
@@ -477,7 +470,7 @@ def load_config(self, location):
477
470
self ._server = str (config ['server' ])
478
471
self ._user = str (config ['user' ])
479
472
self ._pwd = str (config ['password' ])
480
-
473
+
481
474
if 'proxy' in config :
482
475
self .__set_proxy (str (config ['proxy' ]))
483
476
else :
@@ -543,6 +536,3 @@ def head(self, uri, **kwargs):
543
536
uri = join_uri (self ._server , uri )
544
537
response = self ._http .head (uri , ** kwargs )
545
538
return response
546
-
547
-
548
-
0 commit comments