Prawcore

Latest version: v2.4.0

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

Scan your dependencies

Page 3 of 8

0.14.0

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

**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

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

**Added**

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

0.12.0

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

**Added**

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

0.11.0

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

**Added**

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

0.10.1

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

**Fixed**

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

0.10.0

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

**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.

Page 3 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.