$npx skillfedfor your agent

hypothesis

The property-based testing library for Python

Worth itPyPI TestingReleased Aug 202648.3M downloads / moMPL-2.0Platform wheel

Decision gist · record as of 2026-08-14

platform wheels — hypothesis-6.165.5-cp310-abi3-macosx_10_12_x86_64.whl · hypothesis-6.165.5-cp310-abi3-macosx_11_0_arm64.whl · hypothesis-6.165.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
v6.165.5 · released 2026-08-12 · Python >=3.10 · 2 runtime deps: exceptiongroup, sortedcontainers

Yes. Hypothesis is production-ready (Development Status 5 - Production/Stable), actively maintained, and has zero known vulnerabilities. The medium install friction is negligible given its two lightweight dependencies. MPL-2.0 copyleft is standard for testing tools and poses no practical barrier for most projects. Install it if you want to catch bugs your manual tests miss.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Medium install friction with two lightweight runtime dependencies (exceptiongroup, sortedcontainers).
  • Active maintenance with a release 2 days old and 8884 repository stars.

License · maintenance · safety

MPL-2.0 (copyleft) — Licensed under MPL-2.0 (copyleft). You may use and modify Hypothesis freely, but modifications and derivative works must be distributed under the same license if distributed at all.

last release 2026-08-12 (2 days) · last repo commit 2026-08-14 · 8,884 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 48,260,681 downloads/mo, #595 on PyPI

Verify before relying

pip install hypothesis

from hypothesis import given, strategies as st

@given(st.lists(st.integers()))
def test_my_function(data):
    assert my_function(data) == expected_result(data)
  • Whether the optional extras mentioned in the description are documented and what they provide.
  • Performance characteristics when testing with very large input spaces or complex strategies.
  • Actual adoption scale and real-world usage patterns beyond download metrics.
Same gist for agents: .md · .json

What it is and what it does

Hypothesis is a property-based testing framework that inverts the typical testing model: instead of writing specific test cases, you describe the range of valid inputs and write a test that should pass for all of them. Hypothesis then generates random inputs within that range, including edge cases you might not have anticipated, and runs your test against each one. When it finds a failure, it doesn't just report any failing input—it automatically shrinks the input to the simplest possible case that still fails, making debugging much faster.

The library is built on two runtime dependencies (exceptiongroup and sortedcontainers) and integrates with test frameworks. It's actively maintained, supports Python 3.10 and later across CPython and PyPy implementations, and carries no known security vulnerabilities.

Use it for

  • Discover edge cases in sorting, parsing, or data transformation functions that manual test cases would miss.
  • Test API handlers or business logic against a wide range of valid input combinations automatically.
  • Debug complex bugs by letting Hypothesis find and minimize the simplest failing input.
  • Verify mathematical properties or invariants hold across large input domains.
  • Generate test data for integration tests without hand-writing hundreds of specific cases.

Worth the install?

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

Worth it

Yes.

Hypothesis is production-ready (Development Status 5 - Production/Stable), actively maintained, and has zero known vulnerabilities. The medium install friction is negligible given its two lightweight dependencies. MPL-2.0 copyleft is standard for testing tools and poses no practical barrier for most projects. Install it if you want to catch bugs your manual tests miss.

Install

hypothesis on PyPI

Before you install

Medium install friction with two lightweight runtime dependencies (exceptiongroup, sortedcontainers). Active maintenance with a release 2 days old and 8884 repository stars. Supports Python 3.10 and later across CPython and PyPy, with wheels available for all major platforms.

Requires Python 3.10 or later.

License in practice

Licensed under MPL-2.0 (copyleft). You may use and modify Hypothesis freely, but modifications and derivative works must be distributed under the same license if distributed at all.

Quickstart

pip install hypothesis

from hypothesis import given, strategies as st

@given(st.lists(st.integers()))
def test_my_function(data):
    assert my_function(data) == expected_result(data)

Verify before relying

  • Whether the optional extras mentioned in the description are documented and what they provide.
  • Performance characteristics when testing with very large input spaces or complex strategies.
  • Actual adoption scale and real-world usage patterns beyond download metrics.

Package facts

LicenseMPL-2.0 copyleft
Python supportSupports the current Python release >=3.10
Install frictionMedium. Platform-specific wheel
Runtime dependencies
2 packages
exceptiongroupsortedcontainers
MaintenanceActively maintained 2 days since the last release
Last repo commit
First released
Downloads48,260,681 / month, #595 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableFramework :: HypothesisFramework :: PytestIntended Audience :: DevelopersOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Education :: TestingTopic :: Software Development :: TestingTyping :: Typed

Evidence: hypothesis-6.165.5-cp310-abi3-macosx_10_12_x86_64.whl; hypothesis-6.165.5-cp310-abi3-macosx_11_0_arm64.whl; hypothesis-6.165.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; hypothesis-6.165.5-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; hypothesis-6.165.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; hypothesis-6.165.5-cp310-abi3-manylinux_2_31_riscv64.whl; hypothesis-6.165.5-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl; hypothesis-6.165.5-cp310-abi3-musllinux_1_2_aarch64.whl; hypothesis-6.165.5-cp310-abi3-musllinux_1_2_armv7l.whl; hypothesis-6.165.5-cp310-abi3-musllinux_1_2_riscv64.whl; hypothesis-6.165.5-cp310-abi3-musllinux_1_2_x86_64.whl; hypothesis-6.165.5-cp310-abi3-win32.whl; hypothesis-6.165.5-cp310-abi3-win_amd64.whl; hypothesis-6.165.5-cp310-cp310-macosx_10_12_x86_64.whl; hypothesis-6.165.5-cp310-cp310-macosx_11_0_arm64.whl; hypothesis-6.165.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; hypothesis-6.165.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; hypothesis-6.165.5-cp310-cp310-musllinux_1_2_aarch64.whl; hypothesis-6.165.5-cp310-cp310-musllinux_1_2_x86_64.whl; hypothesis-6.165.5-cp310-cp310-win_amd64.whl

Tags

Capabilities
property-based testing pythonrandomized test case generationfuzzing frameworkedge case discovery testinghypothesis test frameworkautomated test input generationshrinking failing test cases
Topics
property-based-testingfuzzingtest-generation
PyPI keywords
pythontestingfuzzingproperty-based-testing

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 › “randomized test case generation”

  • hypothesisHypothesis is a property-based testing library that generates random…
  • hegel-coreHegel-core provides property-based testing data generation and…
  • pyvscPyVSC generates randomized test stimulus and defines and collects…

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 hegel-core · hypothesis-graphql · hypothesis-jsonschema · schemathesis · atheris · hyppo · deal · pyvsc · pytest-astropy · detect-test-pollution