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
- Generated numbers are guaranteed to be processable as double-precision floating-point numbers
- The non-standard constants supported by Python's json module are also generated by default, but may be omitted
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 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hypothesis_json-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / hypothesis_json-2.0.1-py3-none-any.whl
| Download URL | hypothesis_json-2.0.1-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b37adc7a62e482e18487561c8683ac03f589ae214881a24e561ef978b2e039c
|
|
BLAKE2b-256 checksum How to use checksums |
b11d41f1cb4f12230402ea3b5008829fd92a2895ef7f6d5716c2eea0f3d6b45d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.10 CPython/3.6.7 Darwin/17.7.0
|
Security for hypothesis-json 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.