Metadata-Version: 2.1
Name: jsonrpc2-objects
Version: 4.2.0
Summary: A collection of objects for use in JSON-RPC 2.0 implementations.
Home-page: https://gitlab.com/mburkard/jsonrpc2-objects
License: MIT
Author: Matthew Burkard
Author-email: matthewjburkard@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: pydantic (>=2.5.1,<3.0.0)
Project-URL: Repository, https://gitlab.com/mburkard/jsonrpc2-objects
Description-Content-Type: text/markdown

# 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

