Skip to main content

A collection of objects for use in JSON-RPC 2.0 implementations.

Project description

JSON-RPC 2.0 Objects

Code style: black License: MIT

A collection of objects for use in JSON-RPC 2.0 implementations.

Installation

poetry add jsonrpc2-objects
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jsonrpc2_objects-4.1.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

jsonrpc2_objects-4.1.1-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page