skillfed

requestsexceptions

Import exceptions from potentially bundled packages in requests.

requestsexceptions v1.4.0 701.9K downloads/30d#5,289 on PyPI
Permissive license Abandoned released

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 requestsexceptions

uv

uv add requestsexceptions

poetry

poetry add requestsexceptions

Installing 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

Intended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Topic :: Utilities

Tags

requests exceptions importurllib3 exception handlingrequests library compatibilitybundled urllib3 exceptionsrequests exception wrapper
compatibility-shimabandoned

More Utilities packages