Vigia

PyPI · pypi:mock

mock active

Rolling backport of unittest.mock for all Pythons

The latest stable version of mock is 5.2.0, published on 2025-03-03. Verified by Vigia on 2026-11-13.

Latest stable version5.2.0
Published2025-03-03 12:31:41 UTC
Installpip install --upgrade mock
Requirespython >=3.6
License—
Advisories on latest versionnone known
Last verified2026-11-13 17:08:31 UTC
Sourcespypi.org

Ask your AI assistant to check this

AI models are trained up to a date, so they can be wrong about versions, deprecations and vulnerabilities. Paste this into Claude, ChatGPT, Perplexity or Cursor and it will answer with the verified data on this page:

Before answering about the pypi package "mock", check Vigia (verified, dated facts): https://vigia.coredls.cloud/v1/packages/pypi/mock . For my whole project use https://vigia.coredls.cloud/context

Check my whole package.json

Using an AI coding agent every day? Connect Vigia once and it checks this by itself.

Maintenance

Activitydormant
Last stable release2025-03-03 12:31:41 UTC · 620 days ago
Stable releases in the last 12 months0
Published versions40

Heuristic based only on release dates; it does not measure issue or security response times.

Version history

VersionPublished
5.2.02025-03-03 12:31:41 UTC
5.1.02023-07-11 13:35:02 UTC
5.0.22023-04-16 11:33:21 UTC
5.0.12023-01-09 17:49:50 UTC
5.0.02022-12-28 12:59:55 UTC
4.0.32020-12-10 07:33:11 UTC
4.0.22020-03-11 17:28:56 UTC
4.0.12020-02-06 15:53:57 UTC
4.0.02020-02-05 08:16:44 UTC
3.0.52019-05-07 21:22:22 UTC
3.0.42019-05-04 13:01:33 UTC
3.0.32019-05-02 12:28:08 UTC
3.0.22019-05-02 09:16:04 UTC
3.0.12019-05-02 09:08:00 UTC
3.0.02019-05-02 08:05:13 UTC
2.0.02016-04-06 01:38:18 UTC
1.3.02015-07-23 23:17:28 UTC
1.2.02015-07-17 19:48:44 UTC
1.1.42015-07-17 09:15:20 UTC
1.1.32015-07-14 02:17:48 UTC

Showing the 20 most recent of 32 versions. JSON

Version compatibility

Newest stable version that declares support for each runtime version (from the requirements published with each version).

RuntimeNewest compatible version
python 3.85.2.0
python 3.95.2.0
python 3.105.2.0
python 3.115.2.0
python 3.125.2.0
python 3.135.2.0

Give your AI agent these facts

Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Add to CursorAdd to VS Code★ Star on GitHub

Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests

Frequently asked questions

What is the latest version of mock?

The latest stable version of mock is 5.2.0, published on 2025-03-03. Verified by Vigia on 2026-11-13.

How do I install the latest version of mock?

Run pip install --upgrade mock. The latest stable version is 5.2.0 (verified 2026-11-13).

Is mock deprecated?

No. mock is not marked as deprecated in the registry.

Which Python version does mock require?

mock 5.2.0 declares this requirement: python >=3.6.

Does mock 5.2.0 have known vulnerabilities?

No known advisories affect mock 5.2.0 according to the data Vigia checks.

Is mock still maintained?

mock published 0 stable releases in the last 12 months; the most recent was 620 days ago. Activity: dormant.

Observed changes

No changes observed yet since Vigia started tracking this package.

Related packages

Badges for your README

Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:

[![version](https://vigia.coredls.cloud/badge/pypi/mock/version.svg)](https://vigia.coredls.cloud/pypi/mock)
[![maintained](https://vigia.coredls.cloud/badge/pypi/mock/maintained.svg)](https://vigia.coredls.cloud/pypi/mock)
[![status](https://vigia.coredls.cloud/badge/pypi/mock/status.svg)](https://vigia.coredls.cloud/pypi/mock)

For agents

GET https://vigia.coredls.cloud/v1/packages/pypi/mock
GET https://vigia.coredls.cloud/v1/packages/pypi/mock/versions/{version}