File: CHANGES.rst

package info (click to toggle)
prawcore 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,264 kB
  • sloc: python: 1,272; makefile: 9
file content (327 lines) | stat: -rw-r--r-- 6,463 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
Change Log
==========

prawcore follows `semantic versioning <http://semver.org/>`_ with the exception
that deprecations will not be announced by a minor release.

1.0.1 (2019-02-05)
------------------

**Fixed**

* ``RateLimiter`` will not sleep longer than ``next_request_timestamp``.

1.0.0 (2018-04-26)
------------------

I am releasing 1.0.0 as prawcore is quite stable and it's unlikely that any
breaking changes will need to be introduced in the near future.

**Added**

* Log debug messages for all sleep times.

0.15.0 (2018-03-31)
-------------------

**Added**

* ``SpecialError`` is raised on HTTP 415.

0.14.0 (2018-02-10)
-------------------

**Added**

* ``ReadTimeout`` is automatically retried like the server errors.

**Removed**

* Removed support for Python 3.3 as it is no longer supported by requests.

0.13.0 (2017-12-16)
-------------------

**Added**

* ``UnavailableForLegalReasons`` exception raised when HTTP Response 451 is
  encountered.

0.12.0 (2017-08-30)
-------------------

**Added**

* ``BadJSON`` exception for the rare cases that a response that should contain
  valid JSON has unparsable JSON.

0.11.0 (2017-05-27)
-------------------

**Added**

* ``Conflict`` exception is raised when response status 409 is returned.

0.10.1 (2017-04-10)
-------------------

**Fixed**

* ``InvalidToken`` is again raised on 401 when a non-refreshable application is
  in use.

0.10.0 (2017-04-10)
-------------------

**Added**

* ``ConnectionError`` exceptions are automatically retried. This handles
  ``Connection Reset by Peer`` issues that appear to occur somewhat frequently
  when running on Amazon EC2.

**Changed**

* Calling ``RateLimiter`` now requires a second positional argument,
  ``set_header_callback``.
* In the event a 401 unauthorized occurs, the access token is cleared and the
  request is retried.

**Fixed**

* Check if the access token is expired immediately before every authorized
  request, rather than just before the request flow. This new approach accounts
  for failure retries, and rate limiter delay.

0.9.0 (2017-03-11)
------------------

**Added**

* Add ``session`` parameter to Requestor to ease support of custom sessions
  (e.g. caching or mock ones).

0.8.0 (2017-01-29)
------------------

**Added**

* Handle 413 Request entity too large responses.
* ``reset_timestamp`` to ``RateLimiter``.

**Fixed**

* Avoid modifying passed in ``data`` and ``params`` to ``Session.request``.

0.7.0 (2017-01-16)
------------------

**Added**

``ChunkedEncodingError`` is automatically retried like the server errors.

0.6.0 (2016-12-24)
------------------

**Added**

* Handle 500 responses.
* Handle Cloudflair 520 responses.


0.5.0 (2016-12-13)
------------------

**Added**

All network requests now have a 16 second timeout by default. The environment
variable ``prawcore_timeout`` can be used to adjust the value.

0.4.0 (2016-12-09)
------------------

**Changed**

* Prevent '(None)' from appearing in OAuthException message.

0.3.0 (2016-11-20)
------------------

**Added**

* Add ``files`` parameter to ``Session.request`` to support image upload
  operations.
* Add ``duration`` and ``implicit`` parameters to
  ``UntrustedAuthenticator.authorization_url`` so that the method also supports
  the code grant flow.

**Fixed**

* ``Authorizer`` class can be used with ``UntrustedAuthenticator``.

0.2.1 (2016-08-07)
------------------

**Fixed**

* ``session`` works with ``DeviceIDAuthorizer`` and ``ImplicitAuthorizer``.


0.2.0 (2016-08-07)
------------------

**Added**

* Add ``ImplicitAuthorizer``.

**Changed**

* Split ``Authenticator`` into ``TrustedAuthenticator`` and
  ``UntrustedAuthenticator``.

0.1.1 (2016-08-06)
------------------

**Added**

* Add ``DeviceIDAuthorizer`` that permits installed application access to the
  API.

0.1.0 (2016-08-05)
------------------

**Added**

* ``RequestException`` which wraps all exceptions that occur from
  ``requests.request`` in a ``prawcore.RequestException``.

**Changed**

* What was previously ``RequestException`` is now ``ResponseException``.

0.0.15 (2016-08-02)
-------------------

**Added**

* Handle Cloudflair 522 responses.

0.0.14 (2016-07-25)
-------------------

**Added**

* Add ``ServerError`` exception for 502, 503, and 504 HTTP status codes that is
  only raised after three failed attempts to make the request.
* Add ``json`` parameter to ``Session.request``.

0.0.13 (2016-07-24)
-------------------

**Added**

* Automatically attempt to refresh access tokens when making a request if the
  access token is expired.

**Fixed**

* Consider access tokens expired slightly earlier than allowed for to prevent
  InvalidToken exceptions from occuring.

0.0.12 (2016-07-17)
-------------------

**Added**

* Handle 0-byte HTTP 200 responses.

0.0.11 (2016-07-16)
-------------------

**Added**

* Add a ``NotFound`` exception.
* Support 404 "Not Found" HTTP responses.


0.0.10 (2016-07-10)
-------------------

**Added**

* Add a ``BadRequest`` exception.
* Support 400 "Bad Request" HTTP responses.
* Support 204 "No Content" HTTP responses.

0.0.9 (2016-07-09)
------------------

**Added**

* Support 201 "Created" HTTP responses used in some v1 endpoints.


0.0.8 (2016-03-21)
------------------

**Added**

* Sort ``Session.request`` ``data`` values. Sorting the values permits betamax
  body matcher to work as expected.


0.0.7 (2016-03-18)
------------------

**Added**

* Added ``data`` parameter to ``Session.request``.

0.0.6 (2016-03-14)
------------------

**Fixed**

* prawcore objects can be pickled.

0.0.5 (2016-03-12)
------------------

**Added**

* 302 redirects result in a ``Redirect`` exception.

0.0.4 (2016-03-12)
------------------

**Added**

* Add a generic ``Forbidden`` exception for 403 responses without the
  ``www-authenticate`` header.

0.0.3 (2016-02-29)
------------------

**Added**

* Added ``params`` parameter to ``Session.request``.
* Log requests to the ``prawcore`` logger in debug mode.

0.0.2 (2016-02-21)
------------------

**Fixed**

* README.rst for display purposes on pypi.

0.0.1 (2016-02-17) [YANKED]
---------------------------

**Added**

* Dynamic rate limiting based on reddit's response headers.
* Authorization URL generation.
* Retrieval of access and refresh tokens from authorization grants.
* Access and refresh token revocation.
* Retrieval of read-only access tokens.
* Retrieval of script-app tokens.
* Three examples in the ``examples/`` directory.