Metadata-Version: 1.1
Name: jsonrpcserver
Version: 3.2.0
Summary: Process JSON-RPC requests
Home-page: https://jsonrpcserver.readthedocs.org/
Author: Beau Barker
Author-email: beauinmelbourne@gmail.com
License: MIT
Description: jsonrpcserver
        *************
        
        Process incoming `JSON-RPC <http://www.jsonrpc.org/>`__ requests in Python 2.7
        and 3.3+.
        
        .. sourcecode:: python
        
            >>> dispatch([cat, dog], {'jsonrpc': '2.0', 'method': 'cat', 'id': 1})
            'meow'
        
        Full documentation is available at `readthedocs
        <https://jsonrpcserver.readthedocs.org/>`__.
        
        
        Recent Changes
        ==============
        
        3.2.0 (15 Nov 2015)
        -------------------
        
        - Now accepts `batch requests <http://www.jsonrpc.org/specification#batch>`__.
        
        - ``dispatch()`` now returns a JSON-RPC response object. Previously this was
          accessed in the ``json`` attribute. Now just access parts of the response
          directly, (like ``response['result']``).  Accordingly, **most of the
          attributes have been removed**:
          
          - ``response.result`` (use ``response['result']`` instead),
          - ``response.request_id`` (use ``response['id']``),
          - ``response.body`` (use ``str(response)``),
          - ``response.body_debug`` (`enable debugging
            <http://jsonrpcserver.readthedocs.org/api.html#response.ErrorResponse.debug>`__
            and use ``str(response)``),
          - ``response.json`` (access the response object directly, e.g.
            ``response['result']``), and
          - ``response.json_debug`` (`enable debugging
            <http://jsonrpcserver.readthedocs.org/api.html#response.ErrorResponse.debug>`__
            and access the object directly, e.g. ``response['error']['data']``)
        
          Only the ``http_status`` attribute remains.
        
        - ``dispatch()`` no longer takes a ``notification_errors`` parameter. To use
          that, set:: 
        
            from jsonrpcserver.response import ErrorResponse
            ErrorResponse.notification_errors = True
        
        - Speed up processing by disabling request validation (if you're confident with
          the requests)::
        
            from jsonrpcserver.request import Request
            Request.schema_validation = False
        
        3.1.1 (27 Oct 2015)
        -------------------
        
        - Notifications are no longer responded to, not even if there's an error. This
          is a `requirement <http://www.jsonrpc.org/specification#notification>`__ of
          the JSON-RPC specification. However, it can be overridden when calling
          `dispatch()
          <https://jsonrpcserver.readthedocs.org/api.html#dispatcher.dispatch>`__, to
          force notifications to receive errors.
        
        - The HTTP status returned to notifications, which is 204 by default, can be
          `configured
          <https://jsonrpcserver.readthedocs.org/api.html#response.NotificationResponse.http_status>`__.
        
        - Error responses can now be `configured
          <https://jsonrpcserver.readthedocs.org/api.html#exceptions>`__.
        
        3.1.0 (17 Oct 2015)
        -------------------
        
        - `dispatch()
          <https://jsonrpcserver.readthedocs.org/api.html#dispatcher.dispatch>`__ now
          accepts a dictionary of name:method pairs, as an alternative to the usual list
          of methods.
        
        3.0.0 (11 Oct 2015)
        -------------------
        
        Major update - much of the library has been rewritten. Although it works in much
        the same way as before, upgraders are advised to read the new `documentation
        <http://jsonrpcserver.readthedocs.org/>`__ to pick up the changes.
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
