{ "info": { "author": "macheins", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved", "License :: OSI Approved :: MirOS License (MirOS)", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Testing" ], "description": "# hypothesis-jsonrpc\n\nThis Python package provides a [Hypothesis](https://pypi.org/project/hypothesis/) strategy to generate Python objects compliant to the [JSON-RPC 2.0 Specification](https://www.jsonrpc.org/specification) to uncover unhandled edge cases in your code.\n\n## Example\n\n```python\n>>> from pprint import pprint\n>>> from hypothesis_jsonrpc.strategies import requests\n>>> pprint(requests().example())\n{'id': 29028,\n 'jsonrpc': '2.0',\n 'method': \"\\U000db1d5\\U0004cabb'\\x03\",\n 'params': {'-105.0': {},\n 'Infinity': ['false', -1677172375.0, -inf],\n 'nan': [19940.0]}}\n```\n\n## Installation\n\nThe package is published to the [Python Package Index (PyPI)](https://pypi.org/project/hypothesis-jsonrpc/) and may be installed using your favorite installer, e.g.:\n```sh\npip install hypothesis-jsonrpc\n```\n\n## Remarks\n\n- So far, only requests, not responses, can be generated\n- Invalid requests are generated by mutating valid requests and are guranteed to be JSON compliant\n- Generated numbers are guaranteed to be processable as [double-precision floating-point numbers](https://en.wikipedia.org/wiki/Double-precision_floating-point_format)\n- The non-standard constants supported by [Python's json module](https://docs.python.org/3/library/json.html) may also be generated, but are disabled by default\n\n## Status & Versioning\n\nAlthough 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)](https://semver.org).\n\n## Licensing\n\nThis project may be licensed under the terms of the [OSI](https://opensource.org/licenses/alphabetical) approved [MirOS License](https://www.mirbsd.org/MirOS-Licence.htm).\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/macheins/hypothesis-jsonrpc", "keywords": "", "license": "", "maintainer": "macheins", "maintainer_email": "", "name": "hypothesis-jsonrpc", "package_url": "https://pypi.org/project/hypothesis-jsonrpc/", "platform": "", "project_url": "https://pypi.org/project/hypothesis-jsonrpc/", "project_urls": { "Homepage": "https://github.com/macheins/hypothesis-jsonrpc" }, "release_url": "https://pypi.org/project/hypothesis-jsonrpc/2.0.0/", "requires_dist": [ "hypothesis (>=3.71,<4.0)", "hypothesis-json (>=1.2,<2.0)" ], "requires_python": ">=3.5,<4.0", "summary": "Hypothesis strategy to generate JSON-RPC 2.0", "version": "2.0.0" }, "last_serial": 4266302, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "b8a1a1acd507a0f6db56f3ba801c81fa", "sha256": "5fc4436106e38fcae394bb7ad3698ecac07920cbd729ec3d192cc597d6a966b9" }, "downloads": -1, "filename": "hypothesis_jsonrpc-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b8a1a1acd507a0f6db56f3ba801c81fa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5,<4.0", "size": 8499, "upload_time": "2018-09-12T20:04:18", "url": "https://files.pythonhosted.org/packages/43/bd/c3426acbde1f7e9eb03348e1ca78f4312e82027670378f66ce08fe08d38a/hypothesis_jsonrpc-2.0.0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b8a1a1acd507a0f6db56f3ba801c81fa", "sha256": "5fc4436106e38fcae394bb7ad3698ecac07920cbd729ec3d192cc597d6a966b9" }, "downloads": -1, "filename": "hypothesis_jsonrpc-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b8a1a1acd507a0f6db56f3ba801c81fa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5,<4.0", "size": 8499, "upload_time": "2018-09-12T20:04:18", "url": "https://files.pythonhosted.org/packages/43/bd/c3426acbde1f7e9eb03348e1ca78f4312e82027670378f66ce08fe08d38a/hypothesis_jsonrpc-2.0.0-py3-none-any.whl" } ] }