Pact Python
Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.
What Pact Python is
Pact Python is the Python implementation of Pact, a contract testing tool for HTTP/REST and event-driven systems. The library covers consumer testing against a configurable mock server. It also covers provider testing, which verifies an API against the resulting contracts. It integrates with Pact Broker and PactFlow in CI/CD workflows. The package installs from PyPI with pip. It aims to support every Python version that the Python Software Foundation still supports. Anonymous telemetry can be disabled with the PACT_DO_NOT_TRACK environment variable.
Written from the project's README, read .
- Category
- Contract testing
- License
- MIT
- Language
- Python
- Changelog
- Releases on GitHub
Repository metrics
Status
activeLast commit within 90 days of the fetch date.Computed from the last commit date and the archive flag on the fetch date. See the status rules.
Alternatives
Listed contract testing tools, same primary language first, then by GitHub stars. Each line gives one fact from the tool's documentation where it differs from Pact Python's, with its source.
Prism: Contract or spec formats: OpenAPI v3.1, v3.0 and v2.0 (Swagger); Postman Collections. source: README
Pact Ruby: Languages for writing tests: Ruby with RSpec. source: README
Pact JS: Languages for writing tests: JavaScript on Node.js (Node 16+ as of pact-js v12). source: README
Pact-JVM: Languages for writing tests: JVM languages: Java, Groovy, Kotlin; Scala via pact4s; Clojure through the JUnit library. source: README
Pact Go: Languages for writing tests: Go (consumer package github.com/pact-foundation/pact-go/v2/consumer). source: README
Pact Net: Languages for writing tests: .NET (C# samples written with xUnit). source: README
Pact Broker: Contract or spec formats: Pacts; any contract that can be serialized to JSON. source: README
Spring Cloud Contract: Languages for writing tests: Contract DSLs in Groovy, YAML, Java and Kotlin. source: Docs: Contract DSL
How to install
pip install pact-pythonQuestions
Is Pact Python open source?
Yes. Pact Python is released under MIT, an OSI-approved license, as reported by the GitHub API on 2026-09-22.
Is Pact Python maintained?
On 2026-09-22, the last commit to the default branch was on 2026-09-21, so the listed status is active. Rule: Last commit within 90 days of the fetch date.
How many GitHub stars does Pact Python have?
684 stars on 2026-09-22, from the GitHub API. The number is refreshed at each monthly update.
What language is Pact Python written in?
The repository's primary language, as reported by the GitHub API, is Python.
How do I install Pact Python?
The README gives this command: pip install pact-python
Sources
- GitHub REST API: repository, read
- GitHub REST API: commits, read
- GitHub REST API: latest release, read
- GitHub REST API: contributors, read
- README, read