Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A library for property based testing

Project Description

Hypothesis is an advanced testing library for Python. It lets you write tests which are parametrized by a source of examples, and then generates simple and comprehensible examples that make your tests fail. This lets you find more bugs in your code with less work.

e.g.

@given(st.lists(
  st.floats(allow_nan=False, allow_infinity=False), min_size=1))
def test_mean(xs):
    assert min(xs) <= mean(xs) <= max(xs)
Falsifying example: test_mean(
  xs=[1.7976321109618856e+308, 6.102390043022755e+303]
)

Hypothesis is extremely practical and advances the state of the art of unit testing by some way. It’s easy to use, stable, and powerful. If you’re not using Hypothesis to test your project then you’re missing out.

Quick Start/Installation

If you just want to get started:

pip install hypothesis

Release History

This version
History Node

3.45.2

History Node

3.45.1

History Node

3.45.0

History Node

3.44.26

History Node

3.44.25

History Node

3.44.24

History Node

3.44.23

History Node

3.44.22

History Node

3.44.21

History Node

3.44.20

History Node

3.44.19

History Node

3.44.18

History Node

3.44.16

History Node

3.44.15

History Node

3.44.14

History Node

3.44.13

History Node

3.44.12

History Node

3.44.11

History Node

3.44.10

History Node

3.44.9

History Node

3.44.8

History Node

3.44.7

History Node

3.44.6

History Node

3.44.5

History Node

3.44.4

History Node

3.44.3

History Node

3.44.2

History Node

3.44.1

History Node

3.44.0

History Node

3.43.1

History Node

3.43.0

History Node

3.42.2

History Node

3.42.1

History Node

3.42.0

History Node

3.41.0

History Node

3.40.1

History Node

3.40.0

History Node

3.39.0

History Node

3.38.9

History Node

3.38.8

History Node

3.38.7

History Node

3.38.6

History Node

3.38.5

History Node

3.38.4

History Node

3.38.3

History Node

3.38.2

History Node

3.38.1

History Node

3.38.0

History Node

3.37.0

History Node

3.36.1

History Node

3.36.0

History Node

3.35.0

History Node

3.34.1

History Node

3.34.0

History Node

3.33.1

History Node

3.33.0

History Node

3.32.2

History Node

3.32.1

History Node

3.32.0

History Node

3.31.6

History Node

3.31.5

History Node

3.31.4

History Node

3.31.3

History Node

3.31.2

History Node

3.31.1

History Node

3.31.0

History Node

3.30.4

History Node

3.30.3

History Node

3.30.2

History Node

3.30.1

History Node

3.30.0

History Node

3.29.0

History Node

3.28.3

History Node

3.28.2

History Node

3.28.1

History Node

3.28.0

History Node

3.27.1

History Node

3.27.0

History Node

3.26.0

History Node

3.25.1

History Node

3.25.0

History Node

3.24.2

History Node

3.24.1

History Node

3.24.0

History Node

3.23.3

History Node

3.23.2

History Node

3.23.1

History Node

3.23.0

History Node

3.22.2

History Node

3.22.1

History Node

3.22.0

History Node

3.21.3

History Node

3.21.2

History Node

3.21.1

History Node

3.21.0

History Node

3.20.0

History Node

3.19.3

History Node

3.19.2

History Node

3.19.1

History Node

3.19.0

History Node

3.18.5

History Node

3.18.4

History Node

3.18.3

History Node

3.18.2

History Node

3.18.1

History Node

3.18.0

History Node

3.17.0

History Node

3.16.1

History Node

3.16.0

History Node

3.15.0

History Node

3.14.2

History Node

3.14.1

History Node

3.14.0

History Node

3.13.1

History Node

3.13.0

History Node

3.12.0

History Node

3.11.6

History Node

3.11.5

History Node

3.11.4

History Node

3.11.3

History Node

3.11.2

History Node

3.11.1

History Node

3.11.0

History Node

3.10.0

History Node

3.9.1

History Node

3.9.0

History Node

3.8.5

History Node

3.8.4

History Node

3.8.3

History Node

3.8.2

History Node

3.8.1

History Node

3.8.0

History Node

3.7.4

History Node

3.7.3

History Node

3.7.2

History Node

3.7.1

History Node

3.7.0

History Node

3.6.1

History Node

3.6.0

History Node

3.5.3

History Node

3.5.2

History Node

3.5.1

History Node

3.5.0

History Node

3.4.2

History Node

3.4.1

History Node

3.4.0

History Node

3.3.0

History Node

3.2.0

History Node

3.1.3

History Node

3.1.2

History Node

3.1.1

History Node

3.1.0

History Node

3.0.5

History Node

3.0.4

History Node

3.0.3

History Node

3.0.2

History Node

3.0.1

History Node

3.0.0

History Node

2.0.0

History Node

1.19.0

History Node

1.18.1

History Node

1.18.0

History Node

1.17.1

History Node

1.17.0

History Node

1.16.0

History Node

1.15.0

History Node

1.14.0

History Node

1.13.0

History Node

1.12.0

History Node

1.11.4

History Node

1.11.3

History Node

1.11.2

History Node

1.11.1

History Node

1.11.0

History Node

1.10.6

History Node

1.10.5

History Node

1.10.4

History Node

1.10.3

History Node

1.10.2

History Node

1.10.1

History Node

1.10.0

History Node

1.9.0

History Node

1.8.5

History Node

1.8.4

History Node

1.8.3

History Node

1.8.2

History Node

1.8.1

History Node

1.8.0

History Node

1.7.2

History Node

1.7.1

History Node

1.6.2

History Node

1.6.1

History Node

1.6.0

History Node

1.5.0

History Node

1.4.1

History Node

1.4.0

History Node

1.3.0

History Node

1.2.1

History Node

1.2

History Node

1.1.1

History Node

1.1.0

History Node

1.0.0

History Node

0.9.2

History Node

0.9.1

History Node

0.9.0

History Node

0.7.2

History Node

0.7.1

History Node

0.7.0

History Node

0.6.0

History Node

0.5.0

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
hypothesis-3.45.2.tar.gz
(146.1 kB) Copy SHA256 Hash SHA256
Source None Feb 18, 2018

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting