urllib3-mock
A utility library for mocking out the `urllib3` Python library.
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release 2015-04-16, no commits since 2023-01-17) and designed for outdated bundled urllib3 in old requests versions. Modern projects should use alternative mocking libraries. Install only if you are maintaining legacy code locked to very old dependencies and cannot migrate.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Designed for requests.packages.urllib3 (bundled urllib3 in older requests versions); compatibility with current versions unknown.
- Low friction to install, but maintenance is abandoned—last release was 2015-04-16 and no commits since 2023-01-17.
- Use only if your project is locked to old urllib3 versions.
License · maintenance · safety
Apache 2.0 (permissive) — Apache 2.0 is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2015-04-16 (4138 days) · last repo commit 2023-01-17 · 13 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 150,538 downloads/mo, #10,962 on PyPI
Alternatives
Verify before relying
from urllib3_mock import Responses
responses = Responses('requests.packages.urllib3')
@responses.activate
def test_api():
responses.add('GET', '/api/foobar', body='{"ok": true}', status=200)
assert len(responses.calls) == 0- Compatibility with current urllib3 and requests versions—package is abandoned and last tested in 2015.
- Whether regex URL matching and exception-throwing features work reliably in modern Python environments.
- Whether this package works with standalone urllib3 or only with bundled urllib3 in requests.
What it is and what it does
urllib3-mock is a test utility that intercepts urllib3 HTTP calls and returns mock responses instead of making real network requests. It was adapted from the responses library and allows you to register predefined responses for specific URLs, or attach callbacks that generate responses dynamically based on request content. You can match URLs by exact string or compiled regex, set custom status codes and headers, or throw exceptions to simulate network failures.
The package is designed to work with urllib3 as bundled inside requests (requests.packages.urllib3). It has been abandoned since 2015; the latest release was 0.3.3 on 2015-04-16, and the repository has not been updated since 2023-01-17. It is only suitable for projects locked to very old versions of its target library.
Use it for
- Unit test code that makes HTTP calls without making actual network requests.
- Mock specific API endpoints with fixed responses to test error handling and edge cases.
- Use request callbacks to simulate dynamic server behavior based on request body.
- Test code paths that depend on specific HTTP status codes or response headers.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release 2015-04-16, no commits since 2023-01-17) and designed for outdated bundled urllib3 in old requests versions. Modern projects should use alternative mocking libraries. Install only if you are maintaining legacy code locked to very old dependencies and cannot migrate.
Install
urllib3-mock on PyPI
Before you install
Low friction to install, but maintenance is abandoned—last release was 2015-04-16 and no commits since 2023-01-17. Use only if your project is locked to old urllib3 versions.
Designed for requests.packages.urllib3 (bundled urllib3 in older requests versions); compatibility with current versions unknown.
License in practice
Apache 2.0 is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
from urllib3_mock import Responses
responses = Responses('requests.packages.urllib3')
@responses.activate
def test_api():
responses.add('GET', '/api/foobar', body='{"ok": true}', status=200)
assert len(responses.calls) == 0
Verify before relying
- Compatibility with current urllib3 and requests versions—package is abandoned and last tested in 2015.
- Whether regex URL matching and exception-throwing features work reliably in modern Python environments.
- Whether this package works with standalone urllib3 or only with bundled urllib3 in requests.
Package facts
| License | Apache 2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 4,138 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 150,538 / month, #10,962 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersIntended Audience :: System AdministratorsOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Software Development |
Evidence: urllib3_mock-0.3.3-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “mock urllib3 requests”
- urllib3-mockMocks urllib3 HTTP requests in tests by intercepting calls and…
- mocketMocket is a socket mocking framework that intercepts and replaces…
- requestsexceptionsProvides a compatibility layer to import exception classes from the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also pook · responses · mocket · smithy-http · pytest-responses · respx · aioresponses · aresponses · betamax · httptools