Prawcore

Latest version: v2.4.0

Safety actively analyzes 619197 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 8

2.4.0

------------------

**Changed**

- Drop support for Python 3.6, which is end-of-life on 2021-12-23.
- Updated rate limit algorithm to better handle reddit's new rate limits.
- Drop support for Python 3.7, which is end-of-life on 2023-06-27.

2.3.0

------------------

**Added**

- 301 redirects result in a ``Redirect`` exception.
- :class:`Requestor` is now initialized with a ``timeout`` parameter.
- :class:`ScriptAuthorizer`, :class:`ReadOnlyAuthorizer`, and
:class:`DeviceIDAuthorizer` have a new parameter, ``scopes``, which determines the
scope of access requests.
- Retry 408 "Request Timeout" HTTP responses.

**Changed**

- :class:`DeviceIDAuthorizer` can be now used with :class:`TrustedAuthenticator`.

2.2.0

------------------

**Added**

- Support 202 "Accepted" HTTP responses.

**Fixed**

- The expected HTTP response status code for a request made with the proper credentials
to api/v1/revoke_token has been changed from 204 to 200.

2.1.0

------------------

**Added**

- Add a :class:`URITooLarge` exception.
- :class:`ScriptAuthorizer` has a new parameter ``two_factor_callback`` that supplies
OTPs (One-Time Passcodes) when :meth:`.ScriptAuthorizer.refresh` is called.
- Add a :class:`TooManyRequests` exception.

2.0.0

------------------

**Added**

- :class:`Authorizer` optionally takes a ``pre_refresh_callback`` keyword argument. If
provided, the function will called with the instance of :class:`Authorizer` prior to
refreshing the access and refresh tokens.
- :class:`Authorizer` optionally takes a ``post_refresh_callback`` keyword argument. If
provided, the function will called with the instance of :class:`Authorizer` after
refreshing the access and refresh tokens.

**Changed**

- The ``refresh_token`` argument to :class:`Authorizer` must now be passed by keyword,
and cannot be passed as a positional argument.

1.5.0

------------------

**Changed**

- Drop support for Python 3.5, which is end-of-life on 2020-09-13.

Page 1 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.