/jsonrpc-base

A JSON-RPC client library base interface

Primary LanguagePythonOtherNOASSERTION

jsonrpc-base: a compact JSON-RPC client library interface supporting multiple backends

This is a compact and simple JSON-RPC client implementation interface python code. This code is forked from https://github.com/gciotta/jsonrpc-requests

Main Features

  • Python 2.7, 3.4, 3.5 & 3.6 compatible
  • Supports nested namespaces (eg. app.users.getUsers())
  • 100% test coverage

Usage

See jsonrpc-async and jsonrpc-websocket for example implementations.

Tests

Install the Python tox package and run tox, it'll test this package with various versions of Python.

Changelog

1.0.1 (July 6, 2018)

  • Falsey values are no longer treated as None for message IDs, or request parameters.

Credits

@gciotta for creating the base project jsonrpc-requests.

@mbroadst for providing full support for nested method calls, JSON-RPC RFC compliance and other improvements.

@vaab for providing api and tests improvements, better RFC compliance.