Metadata-Version: 2.0
Name: jsonrpc-pyclient
Version: 1.1.2
Summary: A transport-agnostic json-rpc client library
Home-page: https://github.com/tvannoy/jsonrpc_pyclient
Author: Trevor Vannoy
Author-email: trevor.vannoy@flukecal.com
License: MIT
Keywords: rpc json json-rpc
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Requires-Dist: requests
Provides-Extra: test
Requires-Dist: werkzeug; extra == 'test'

jsonrpc_pyclient
================
jsonrpc_pyclient is a transport-agnostic json-rpc 2.0 and 1.0 client library primarily intended for use with
libjson-rpc-cpp_ but can be used with other json-rpc server implementations.

.. _libjson-rpc-cpp: https://github.com/cinemast/libjson-rpc-cpp

This library is intended to be used with libjson-rpc-cpp's stubgenerator,
which takes a json-formatted specification file, and can then return server
and client stubs in various languages; the python client stub generator was
created to use this library. For more information on using the stubgenerator,
refer to libjson-rpc-cpp's documentation.

Currently Supported Transports
------------------------------
- http
- tcp sockets


Basic Usage
-----------
.. code-block:: python

    >>> from jsonrpc_pyclient.connectors import socketclient
    >>> import ClientStub #client stub created by libjson-rpc-cpp stubgenerator
    >>> connector = socketclient.TcpSocketClient("127.0.0.1", 8032)
    >>> client = ClientStub(connector)
    >>> result = client.addNumbers(4, 5)
    >>> print(result)


Installation
------------
.. code-block:: bash

    $ pip install jsonrpc_pyclient


