Metadata-Version: 1.1
Name: jsonrpcserver
Version: 2.0.0
Summary: JSON-RPC 2.0 server library.
Home-page: https://jsonrpcserver.readthedocs.org/
Author: Beau Barker
Author-email: beauinmelbourne@gmail.com
License: UNKNOWN
Description: jsonrpcserver
        =============
        
        .. image:: https://pypip.in/v/jsonrpcserver/badge.png
        .. image:: https://pypip.in/d/jsonrpcserver/badge.png
        
        Handle `JSON-RPC <http://www.jsonrpc.org/>`_ requests.
        
        First write methods to carry out the requests:
        
        .. sourcecode:: python
        
            >>> from jsonrpcserver import Dispatcher
            >>> api = Dispatcher()
            >>> api.register_method(lambda x, y: x + y, 'add')
        
        Then dispatch requests to them with ``dispatch``:
        
        .. sourcecode:: python
        
            >>> request = {'jsonrpc': '2.0', 'method': 'add', 'params': [2, 3], 'id': 1}
            >>> api.dispatch(request)
            ({'jsonrpc': '2.0', 'result': 5, 'id': 1}, 200)
        
        A tuple is returned with information to respond to the client with; including
        the JSON-RPC response, and a recommended HTTP status code, if using HTTP for
        transport.
        
        Installation
        ------------
        
        .. sourcecode:: sh
        
            $ pip install jsonrpcserver
        
        Documentation
        -------------
        
        Documentation is available at https://jsonrpcserver.readthedocs.org/.
        
        If you need a client, try my `jsonrpcclient
        <https://jsonrpcclient.readthedocs.org/>`_ library.
        
        
        Release History
        ---------------
        
        2.0.0 (2015-04-09)
        ^^^^^^^^^^^^^^^^^^
        
        Major update.
        
        **The Flask dependency has been removed.** So little of the code relied on
        Flask, so that code was either updated or removed altogether. The library can
        still be used with Flask with very few changes - see `flask-example.py
        <https://bitbucket.org/beau-barker/jsonrpcserver/src/tip/flask-example.py>`_.
        
        The library now works very similarly to Josh Marshall's `jsonrpclib
        <https://github.com/joshmarshall/jsonrpclib>`_, but is purely for the server
        side.
        
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
