Prawcore

Latest version: v3.0.2

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

Scan your dependencies

Page 2 of 8

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 was end-of-life on 2020-09-13.

1.4.0

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

**Added**

- When calling :meth:`.Session.request`, we add the key-value pair ``"api_type":
"json"`` to the ``json`` parameter, if it is a ``dict``.

**Changed**

- (Non-breaking) Requests to ``www.reddit.com`` use the ``Connection: close`` header to
avoid warnings when tokens are refreshed after their one-hour expiration.

1.3.0

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

**Added**

- All other requestor methods, most notably :meth:`.Session.request`, now contain a
``timeout`` parameter.

1.2.0

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

**Added**

- :meth:`.Requestor.request` can be given a timeout parameter to control the amount of
time to wait for a request to succeed.

**Changed**

- Updated rate limit algorithm to more intelligently rate limit when there are extra
requests remaining.
- Drop python 2.7 support.

Page 2 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.