Match 'n Dispatch
=================

Match python args and dispatch based on their contents.


Getting started
---------------

Create a dispatcher
>>> d = Dispatcher()


Use the handy decorator
>>> @handler(d, blah=1)
>>> def blah(blah=None):
...     print "got blah: ", blah


Try dispatching some events
>>> d.dispatch(blah(blah=2))
>>> d.dispatch(blah(blah=1))
got blah: 1


Install
-------

```$ pip install mnd```

Match 'n Dispatch
=================

Match python args and dispatch based on their contents.


Getting started
---------------

Create a dispatcher
```python
>>> d = Dispatcher()
```

Use the handy decorator
```python
>>> @handler(d, msg="hello")
>>> def say(msg=None):
...     print "got message: ", msg
```

Try dispatching some events
```python
>>> d.dispatch(msg="gets filtered out..."))
>>> d.dispatch(msg="hello"))
got message: hello
```

Install
-------

```$ pip install mnd```

Update example, use github markup
Update example, use github markup
