Hypothesis
Property-based testing framework for Python with powerful shrinking.
Testing PyPI MPL-2.0
How Hypothesis is used
Hypothesis is a dependency in 5 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 39 projects, and what it is used with below comes from all of them. Projects that use it most often also use pytest (89.7%), NumPy (64.1%), Requests (64.1%).
Hypothesis popularity over time
Gid Score 61: downloads 89, use in agent projects 37, GitHub stars 48, downloads trend 58 (each 0-100). How it is calculated.
Often used with Hypothesis
| pytest | 89.7% of Hypothesis projects · 21.8× more than average |
|---|---|
| NumPy | 64.1% of Hypothesis projects · 11.0× more than average |
| Requests | 64.1% of Hypothesis projects · 9.4× more than average |
| python-dotenv | 59.0% of Hypothesis projects · 6.4× more than average |
| Pydantic | 56.4% of Hypothesis projects · 6.5× more than average |
| pandas | 53.8% of Hypothesis projects · 12.5× more than average |
| PyYAML | 48.7% of Hypothesis projects · 8.2× more than average |
| OpenAI Python Library | 48.7% of Hypothesis projects · 12.3× more than average |
From all 39 projects in our scan that use Hypothesis, including the dependency samples.
Agent Skills for Hypothesis
| hypothesis-generation from K-Dense-AI/scientific-agent-skills | Formulates evidence-bounded scientific questions, candidate hypotheses, rival explanations, causal or associational claims, discriminating predictions, measure… has scriptsnpx skills add K-Dense-AI/scientific-agent-skills --skill hypothesis-generation |
|---|---|
| hypothesis-generation from brycewang-stanford/Auto-Empirical-Research-Skills | Structured hypothesis formulation from observations. Use when you have experimental observations or data and need to formulate testable hypotheses with predict…npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill hypothesis-generation |
| hypothesis-testing from rohitg00/skillkit | Applies the scientific method to debugging by helping users form specific, testable hypotheses, design targeted experiments, and systematically confirm or reje…npx skills add rohitg00/skillkit --skill hypothesis-testing |
Skills teach your coding agent how to use Hypothesis well. Official means the pack comes from the same GitHub account as Hypothesis. Read a skill before installing it: it can include scripts. All Agent Skills
Install
| Package | pip install hypothesis |
|---|---|
| Main stacks | Python (39) |
| Example projects | agiresearch/Cerebrum, lxhmx/Multi-Agent-AI-Platform, LondheShubham153/strands-temporal-agents, ihrishikesh0896/vulnreach, tensology/decisionsai |
Alternatives to Hypothesis
In our scan, none of the most used tools in Testing does the same job as Hypothesis: they are add-ons, companions or tools for a different task.
More in Testing: Vitest Playwright (JavaScript) Testing Library jsdom Jest pytest Happy DOM axe-core Playwright