Skip to content

flowroute/jsonrpc-ns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonrpc-ns

Description

jsonrpc-ns is a Lightweight JSON-RPC 2.0 library for building TCP (Netstring) clients.

Installation

Prerequisites:

  • Python (Tested on 2.7)

Usage

from jsonrpc_ns import JSONRPCProxy
jsonrpc = JSONRPCProxy('some.jsonrpc.server.internal', 7080)
jsonrpc.request('request_method', {'some': 'data'})
jsonrpc.notify('notify_method', {'more': 'data'})

Tests

pip install nose
nosetests tests.py

See Also

txjason for building high concurrency servers and clients on top of Twisted Python.

About

A lightweight client library for sending JSON-RPC 2.0 requests and notifications over TCP Netstrings

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages