Skip to main content

hypothesis-json

This Python package provides a Hypothesis strategy to generate Python objects compliant to the JavaScript Object Notation (JSON) Data Interchange Format to uncover unhandled edge cases in your code.

Example

>>> from pprint import pprint
>>> from hypothesis_json.strategies import jsons
>>> pprint(jsons().example())
{'': '34.0',
 '-34.0': {'-27566.0': inf,
           '3.402823466e+38': ['11537'],
           '9007199254740992.0': 17857.0,
           'Infinity': '4794727320289625.0',
           'true': False},
 '\x14\U000db833': '-14719'}

Installation

The package is published to the Python Package Index (PyPI) and may be installed using your favorite installer, e.g.:

pip install hypothesis-json

Remarks

Status & Versioning

Although this is a very young project, it was developed with a strong focus on quality and should be suitable for use in production environments. Versioning of releases will strictly follow the Semantic Versioning Specification (SemVer).

Licensing

This project may be licensed under the terms of the OSI approved MirOS License.

Metadata

Release files for hypothesis-json 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for hypothesis-json 1.2.1
File Interpreter ABI Platform
hypothesis_json-1.2.1-py3-none-any.whl Python 3 none any Details

Release files / hypothesis_json-1.2.1-py3-none-any.whl

Download URL hypothesis_json-1.2.1-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b570bb344b8ee7cc3f997172d624132205114bbdde522e0e426fec9a609d656
BLAKE2b-256 checksum
How to use checksums
e8959bd8f982ca65a068a25e85bf5c6cc8e3a5519a1e38b3fac463c9abac95c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.11.4 CPython/3.7.0 Darwin/17.7.0

Release history Release notifications | RSS feed

2.0.1

1 release file

2.0.0

1 release file

1.2.2

1 release file

This release

1.2.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page