# JSON-RPC 2.0 Objects
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://mit-license.org/)
A collection of objects for use in JSON-RPC 2.0 implementations.
## Installation
```shell
poetry add jsonrpc2-objects
```
```shell
pip install jsonrpc2-objects
```
## Objects
Available in `objects` are the following:
| Object | Description |
|--------------------|-----------------------------|
| ParamsRequest | Request with params |
| Request | Request without params |
| ParamsNotification | Notification with params |
| Notification | Notification without params |
| ErrorResponse | Response with result |
| ResultResponse | Response with error |
## Errors
Python exceptions are available for each JSON-RPC 2.0 error. Each error
extends `JSONRPCError`.
- JSONRPCError
- InternalError
- InvalidParams
- InvalidRequest
- MethodNotFound
- ParseError
- ServerError
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/mburkard/jsonrpc2-objects",
"name": "jsonrpc2-objects",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Matthew Burkard",
"author_email": "matthewjburkard@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/67/d9/8fe82e62948cc115cf5dfdae6197d1182cbe4b37bdf1ea1481219719050d/jsonrpc2_objects-4.2.0.tar.gz",
"platform": null,
"description": "# JSON-RPC 2.0 Objects\n\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://mit-license.org/)\n\nA collection of objects for use in JSON-RPC 2.0 implementations.\n\n## Installation\n\n```shell\npoetry add jsonrpc2-objects\n```\n\n```shell\npip install jsonrpc2-objects\n```\n\n## Objects\n\nAvailable in `objects` are the following:\n\n| Object | Description |\n|--------------------|-----------------------------|\n| ParamsRequest | Request with params |\n| Request | Request without params |\n| ParamsNotification | Notification with params |\n| Notification | Notification without params |\n| ErrorResponse | Response with result |\n| ResultResponse | Response with error |\n\n## Errors\n\nPython exceptions are available for each JSON-RPC 2.0 error. Each error\nextends `JSONRPCError`.\n\n- JSONRPCError\n- InternalError\n- InvalidParams\n- InvalidRequest\n- MethodNotFound\n- ParseError\n- ServerError\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A collection of objects for use in JSON-RPC 2.0 implementations.",
"version": "4.2.0",
"project_urls": {
"Homepage": "https://gitlab.com/mburkard/jsonrpc2-objects",
"Repository": "https://gitlab.com/mburkard/jsonrpc2-objects"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "51d24cf11f89c05292d6c5e3f9527b8e848b016341927d336437c7ae1e5bfe8d",
"md5": "49bcc898ba6478c86df0e1e82d7f6369",
"sha256": "097cf976d76aabe9bd0227e3ecd589dbe239f0b42fecdd5459cedf489efb69ec"
},
"downloads": -1,
"filename": "jsonrpc2_objects-4.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "49bcc898ba6478c86df0e1e82d7f6369",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 5781,
"upload_time": "2024-10-22T23:26:33",
"upload_time_iso_8601": "2024-10-22T23:26:33.113378Z",
"url": "https://files.pythonhosted.org/packages/51/d2/4cf11f89c05292d6c5e3f9527b8e848b016341927d336437c7ae1e5bfe8d/jsonrpc2_objects-4.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "67d98fe82e62948cc115cf5dfdae6197d1182cbe4b37bdf1ea1481219719050d",
"md5": "edba0503747c98a773e6f697c20ee844",
"sha256": "fc36da7fbaebc0dafd1a77dc454a959466fbc878d1c2605993232757c8f92120"
},
"downloads": -1,
"filename": "jsonrpc2_objects-4.2.0.tar.gz",
"has_sig": false,
"md5_digest": "edba0503747c98a773e6f697c20ee844",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 4633,
"upload_time": "2024-10-22T23:26:34",
"upload_time_iso_8601": "2024-10-22T23:26:34.469391Z",
"url": "https://files.pythonhosted.org/packages/67/d9/8fe82e62948cc115cf5dfdae6197d1182cbe4b37bdf1ea1481219719050d/jsonrpc2_objects-4.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-22 23:26:34",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "mburkard",
"gitlab_project": "jsonrpc2-objects",
"lcname": "jsonrpc2-objects"
}