hypothesis-jsonrpc
This Python package provides a Hypothesis strategy to generate Python objects compliant to the JSON-RPC 2.0 Specification to uncover unhandled edge cases in your code.
Example
>>> from pprint import pprint
>>> from hypothesis_jsonrpc.strategies import requests
>>> pprint(requests().example())
{'id': 29028,
'jsonrpc': '2.0',
'method': "\U000db1d5\U0004cabb'\x03",
'params': {'-105.0': {},
'Infinity': ['false', -1677172375.0, -inf],
'nan': [19940.0]}}
Installation
The package is published to the Python Package Index (PyPI) and may be installed using your favorite installer, e.g.:
pip install hypothesis-jsonrpc
Remarks
- So far, only requests, not responses, can be generated
- Invalid requests are generated by mutating valid requests and are guranteed to be JSON compliant
- Generated numbers are guaranteed to be processable as double-precision floating-point numbers
- The non-standard constants supported by Python's json module may also be generated, but are disabled by default
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-jsonrpc 2.0.0
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_jsonrpc-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / hypothesis_jsonrpc-2.0.0-py3-none-any.whl
| Download URL | hypothesis_jsonrpc-2.0.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5fc4436106e38fcae394bb7ad3698ecac07920cbd729ec3d192cc597d6a966b9
|
|
BLAKE2b-256 checksum How to use checksums |
43bdc3426acbde1f7e9eb03348e1ca78f4312e82027670378f66ce08fe08d38a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.11.5 CPython/3.7.0 Darwin/17.7.0
|
Security for hypothesis-jsonrpc 2.0.0
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.