METADATA 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. Metadata-Version: 2.1
  2. Name: hypothesis
  3. Version: 6.90.0
  4. Summary: A library for property-based testing
  5. Home-page: https://hypothesis.works
  6. Author: David R. MacIver and Zac Hatfield-Dodds
  7. Author-email: david@drmaciver.com
  8. License: MPL-2.0
  9. Project-URL: Source, https://github.com/HypothesisWorks/hypothesis/tree/master/hypothesis-python
  10. Project-URL: Changelog, https://hypothesis.readthedocs.io/en/latest/changes.html
  11. Project-URL: Documentation, https://hypothesis.readthedocs.io
  12. Project-URL: Issues, https://github.com/HypothesisWorks/hypothesis/issues
  13. Keywords: python testing fuzzing property-based-testing
  14. Classifier: Development Status :: 5 - Production/Stable
  15. Classifier: Framework :: Hypothesis
  16. Classifier: Framework :: Pytest
  17. Classifier: Intended Audience :: Developers
  18. Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
  19. Classifier: Operating System :: Unix
  20. Classifier: Operating System :: POSIX
  21. Classifier: Operating System :: Microsoft :: Windows
  22. Classifier: Programming Language :: Python
  23. Classifier: Programming Language :: Python :: 3
  24. Classifier: Programming Language :: Python :: 3 :: Only
  25. Classifier: Programming Language :: Python :: 3.8
  26. Classifier: Programming Language :: Python :: 3.9
  27. Classifier: Programming Language :: Python :: 3.10
  28. Classifier: Programming Language :: Python :: 3.11
  29. Classifier: Programming Language :: Python :: Implementation :: CPython
  30. Classifier: Programming Language :: Python :: Implementation :: PyPy
  31. Classifier: Topic :: Education :: Testing
  32. Classifier: Topic :: Software Development :: Testing
  33. Classifier: Typing :: Typed
  34. Requires-Python: >=3.8
  35. Description-Content-Type: text/x-rst
  36. License-File: LICENSE.txt
  37. Requires-Dist: attrs >=19.2.0
  38. Requires-Dist: sortedcontainers <3.0.0,>=2.1.0
  39. Requires-Dist: exceptiongroup >=1.0.0 ; python_version < "3.11"
  40. Provides-Extra: all
  41. Requires-Dist: black >=19.10b0 ; extra == 'all'
  42. Requires-Dist: click >=7.0 ; extra == 'all'
  43. Requires-Dist: django >=3.2 ; extra == 'all'
  44. Requires-Dist: dpcontracts >=0.4 ; extra == 'all'
  45. Requires-Dist: lark >=0.10.1 ; extra == 'all'
  46. Requires-Dist: libcst >=0.3.16 ; extra == 'all'
  47. Requires-Dist: numpy >=1.17.3 ; extra == 'all'
  48. Requires-Dist: pandas >=1.1 ; extra == 'all'
  49. Requires-Dist: pytest >=4.6 ; extra == 'all'
  50. Requires-Dist: python-dateutil >=1.4 ; extra == 'all'
  51. Requires-Dist: pytz >=2014.1 ; extra == 'all'
  52. Requires-Dist: redis >=3.0.0 ; extra == 'all'
  53. Requires-Dist: rich >=9.0.0 ; extra == 'all'
  54. Requires-Dist: backports.zoneinfo >=0.2.1 ; (python_version < "3.9") and extra == 'all'
  55. Requires-Dist: tzdata >=2023.3 ; (sys_platform == "win32") and extra == 'all'
  56. Provides-Extra: cli
  57. Requires-Dist: click >=7.0 ; extra == 'cli'
  58. Requires-Dist: black >=19.10b0 ; extra == 'cli'
  59. Requires-Dist: rich >=9.0.0 ; extra == 'cli'
  60. Provides-Extra: codemods
  61. Requires-Dist: libcst >=0.3.16 ; extra == 'codemods'
  62. Provides-Extra: dateutil
  63. Requires-Dist: python-dateutil >=1.4 ; extra == 'dateutil'
  64. Provides-Extra: django
  65. Requires-Dist: django >=3.2 ; extra == 'django'
  66. Provides-Extra: dpcontracts
  67. Requires-Dist: dpcontracts >=0.4 ; extra == 'dpcontracts'
  68. Provides-Extra: ghostwriter
  69. Requires-Dist: black >=19.10b0 ; extra == 'ghostwriter'
  70. Provides-Extra: lark
  71. Requires-Dist: lark >=0.10.1 ; extra == 'lark'
  72. Provides-Extra: numpy
  73. Requires-Dist: numpy >=1.17.3 ; extra == 'numpy'
  74. Provides-Extra: pandas
  75. Requires-Dist: pandas >=1.1 ; extra == 'pandas'
  76. Provides-Extra: pytest
  77. Requires-Dist: pytest >=4.6 ; extra == 'pytest'
  78. Provides-Extra: pytz
  79. Requires-Dist: pytz >=2014.1 ; extra == 'pytz'
  80. Provides-Extra: redis
  81. Requires-Dist: redis >=3.0.0 ; extra == 'redis'
  82. Provides-Extra: zoneinfo
  83. Requires-Dist: backports.zoneinfo >=0.2.1 ; (python_version < "3.9") and extra == 'zoneinfo'
  84. Requires-Dist: tzdata >=2023.3 ; (sys_platform == "win32") and extra == 'zoneinfo'
  85. ==========
  86. Hypothesis
  87. ==========
  88. Hypothesis is an advanced testing library for Python. It lets you write tests which
  89. are parametrized by a source of examples, and then generates simple and comprehensible
  90. examples that make your tests fail. This lets you find more bugs in your code with less
  91. work.
  92. e.g.
  93. .. code-block:: python
  94. @given(st.lists(st.floats(allow_nan=False, allow_infinity=False), min_size=1))
  95. def test_mean(xs):
  96. assert min(xs) <= mean(xs) <= max(xs)
  97. .. code-block::
  98. Falsifying example: test_mean(
  99. xs=[1.7976321109618856e+308, 6.102390043022755e+303]
  100. )
  101. Hypothesis is extremely practical and advances the state of the art of
  102. unit testing by some way. It's easy to use, stable, and powerful. If
  103. you're not using Hypothesis to test your project then you're missing out.
  104. ------------------------
  105. Quick Start/Installation
  106. ------------------------
  107. If you just want to get started:
  108. .. code-block::
  109. pip install hypothesis
  110. -----------------
  111. Links of interest
  112. -----------------
  113. The main Hypothesis site is at `hypothesis.works <https://hypothesis.works/>`_, and contains a lot
  114. of good introductory and explanatory material.
  115. Extensive documentation and examples of usage are `available at readthedocs <https://hypothesis.readthedocs.io/en/latest/>`_.
  116. If you want to talk to people about using Hypothesis, `we have both an IRC channel
  117. and a mailing list <https://hypothesis.readthedocs.io/en/latest/community.html>`_.
  118. If you want to receive occasional updates about Hypothesis, including useful tips and tricks, there's a
  119. `TinyLetter mailing list to sign up for them <https://tinyletter.com/DRMacIver/>`_.
  120. If you want to contribute to Hypothesis, `instructions are here <https://github.com/HypothesisWorks/hypothesis-python/blob/master/CONTRIBUTING.rst>`_.
  121. If you want to hear from people who are already using Hypothesis, some of them `have written
  122. about it <https://hypothesis.readthedocs.io/en/latest/endorsements.html>`_.
  123. If you want to create a downstream package of Hypothesis, please read `these guidelines for packagers <https://hypothesis.readthedocs.io/en/latest/packaging.html>`_.