requestsexceptions
Import exceptions from potentially bundled packages in requests.
What it is and what it does
requestsexceptions is a thin compatibility shim for the requests library that abstracts away the location of exception classes. The requests library bundles urllib3, but some software distributions strip out that bundled copy. This makes it difficult to reliably catch or suppress urllib3 exceptions (like the "insecure platform warning") across different deployment environments. The package provides a single import path that works regardless of whether urllib3 is bundled inside requests or installed separately.
It has no runtime dependencies and is a pure-Python module, making it lightweight to add to a project. However, it has been abandoned since early 2018 and receives no active maintenance, so it may not account for changes in how requests or urllib3 handle exceptions in modern versions.
Use it for:
- Suppress urllib3 insecure platform warnings consistently across different requests installations.
- Write code that catches requests/urllib3 exceptions without knowing whether urllib3 is bundled.
- Maintain compatibility in libraries that depend on requests across heterogeneous deployment environments.
- Handle exception imports in projects where requests may be repackaged by distributions.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a compatibility layer to import exception classes from the requests library, handling cases where urllib3 is bundled or removed by software distributions.
No. The package is abandoned (last release 2018-02-01) with no maintenance signal. While it solves a real distribution problem and has low install friction, the lack of active maintenance means it will not adapt to changes in requests or urllib3. For modern Python projects, verify whether the bundling issue it addresses still exists in your target environment before relying on it.
Install
requestsexceptions on PyPI
pip
pip install requestsexceptionsuv
uv add requestsexceptionspoetry
poetry add requestsexceptionsInstalling requestsexceptions
Before you install
Low install friction with a pure-Python wheel, but the package is abandoned—last release was 2018-02-01, over 3116 days ago. No active maintenance.
License in practice
Licensed under Apache Software License (permissive), imposing no significant restrictions on use or redistribution.
Quickstart
pip install requestsexceptions
from requestsexceptions import ConnectionError
try:
# code that uses requests
pass
except ConnectionError:
pass
Verify before relying
- Whether the package still works correctly with modern versions of requests and urllib3 given its abandoned status.
- Whether the bundling/unbundling problem it solves remains relevant in current Python distributions.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,116 days since the last release |
| First released | |
| Downloads | 701,854/month — #5,289 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: requestsexceptions-1.4.0-py2.py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
urllib3urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
urllib3-futureHTTP client library supporting HTTP/1.1,…
permissive · top 5,000 on PyPI
urllib3-secure-extraDetects whether urllib3 was installed with the…
permissive · top 5,000 on PyPI
pip-system-certsAutomatically configures Python to use the…
permissive · top 5,000 on PyPI
retryhttpRetryhttp wraps HTTP client calls to…
permissive · top 5,000 on PyPI
urllib3-mockMocks urllib3 HTTP requests in tests by…
permissive · top 15,000 on PyPI
requests-kerberosAdds Kerberos/GSSAPI authentication support to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-exceptionsAutomatically captures uncaught exceptions in…
permissive · top 15,000 on PyPI
requests-toolbeltProvides utilities for the requests library,…
permissive · top 1,000 on PyPI
http-exceptionsProvides a set of raisable exception classes…
permissive · top 15,000 on PyPI