pavlov99/json-rpc — pull request #19 by proofit404 (2014-05-07 18:49:03+00:00)
Title: Create dispatcher from object instance or dictionary.

I extend dispatcher class with optional initial mapping. I might be used in the way below:

```python
In [1]: from jsonrpc.dispatcher import Dispatcher

In [2]: class Dummy():
...: def one(self):
...: pass
...:

In [3]: Dispatcher(Dummy())
Out[3]:

In [4]: dummy = {
...: 'one': lambda x: x,
...: 'two': lambda x: x,
...: }

In [5]: Dispatcher(dummy)
Out[5]:

```