$npx skillfedfor your agent

pact-python

Tool for creating and verifying consumer-driven contracts using the Pact framework.

Worth itPyPI TestingReleased May 20261.6M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pact_python-3.4.0-py3-none-any.whl
v3.4.0 · released 2026-05-04 · Python >=3.10 · 3 runtime deps: pact-python-ffi, typing-extensions, yarl

Yes. Pact Python is actively maintained, production-stable (Development Status 5), has no known vulnerabilities, low install friction, and solves a real problem—replacing expensive integration tests with reliable contract tests. The MIT license is permissive. Install it if you're testing APIs or microservices and want to shift testing left and reduce test environment complexity.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; pact-python-ffi dependency may require a compatible FFI runtime on your system.
  • Low friction installation with three runtime dependencies.
  • Actively maintained with recent releases; last commit 2026-08-13 and 677 repository stars indicate ongoing development and community use.

License · maintenance · safety

permissive license (permissive) — MIT License permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal restrictions—only requiring preservation of copyright and license notices.

last release 2026-05-04 (102 days) · last repo commit 2026-08-13 · 677 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,600,435 downloads/mo, #3,728 on PyPI

Verify before relying

pip install pact-python

from pact import Consumer, Provider

consumer = Consumer('MyConsumer')
provider = Provider('MyProvider')

# Define contract expectations and verify interactions
  • Specific HTTP/REST and event-driven system capabilities and their scope of support
  • Details on the configurable mock server's feature set and configuration options
  • How the matching rules system works and what types of brittle test scenarios it prevents
  • Integration workflow details with Pact Broker / PactFlow for CI/CD
  • Whether telemetry can be fully disabled and what data collection occurs by default
Same gist for agents: .md · .json

What it is and what it does

Pact Python is a consumer-driven contract testing framework that replaces expensive end-to-end integration tests with fast, reliable unit tests. Instead of spinning up full test environments and coordinating multiple services, you define contracts that specify what a client expects from a server and what a server will provide—then verify both sides independently against that contract. This catches breaking changes early and lets you test locally without complex fixtures or test environments.

The package wraps the Pact framework (which supports 12+ languages) and provides a configurable mock server, powerful matching rules to prevent brittle assertions, and integration with Pact Broker or PactFlow for CI/CD workflows. It supports HTTP/REST and event-driven systems, runs on Python 3.10 and later across macOS, Windows, and Linux, and collects optional anonymous telemetry (disableable via PACT_DO_NOT_TRACK=1).

Use it for

  • Test microservice interactions locally without spinning up dependent services or complex test environments
  • Verify that API clients and servers remain compatible before deploying, catching breaking changes early
  • Document API contracts automatically and share them across teams via Pact Broker or PactFlow
  • Replace brittle end-to-end integration tests with fast, deterministic unit tests that run in CI/CD
  • Test event-driven systems by defining and verifying message contracts between producers and consumers

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Pact Python is actively maintained, production-stable (Development Status 5), has no known vulnerabilities, low install friction, and solves a real problem—replacing expensive integration tests with reliable contract tests. The MIT license is permissive. Install it if you're testing APIs or microservices and want to shift testing left and reduce test environment complexity.

Install

pact-python on PyPI

Before you install

Low friction installation with three runtime dependencies. Actively maintained with recent releases; last commit 2026-08-13 and 677 repository stars indicate ongoing development and community use.

Requires Python 3.10 or later; pact-python-ffi dependency may require a compatible FFI runtime on your system.

License in practice

MIT License permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal restrictions—only requiring preservation of copyright and license notices.

Quickstart

pip install pact-python

from pact import Consumer, Provider

consumer = Consumer('MyConsumer')
provider = Provider('MyProvider')

# Define contract expectations and verify interactions

Verify before relying

  • Specific HTTP/REST and event-driven system capabilities and their scope of support
  • Details on the configurable mock server's feature set and configuration options
  • How the matching rules system works and what types of brittle test scenarios it prevents
  • Integration workflow details with Pact Broker / PactFlow for CI/CD
  • Whether telemetry can be fully disabled and what data collection occurs by default

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
pact-python-ffityping-extensionsyarl
MaintenanceActively maintained 102 days since the last release
Last repo commit
First released
Downloads1,600,435 / month, #3,728 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Testing

Evidence: pact_python-3.4.0-py3-none-any.whl

Tags

Capabilities
contract testing frameworkAPI integration testingconsumer-driven contractsmicroservice testingmock server testingpact testingAPI contract verification
Topics
contract-testingmicroservicesapi-testing
PyPI keywords
contract-testingpacttesting

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 › “API integration testing”

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also pact-python-ffi · deal · icontract · eth-tester · mockito · grpcio-testing · eth-brownie · zope.interface · crosshair-tool · alchemy-mock