Metadata-Version: 1.1
Name: smoothie
Version: 0.1.dev14
Summary: summary
Home-page: https://github.com/TheSriram/smoothie
Author: Sriram Madapusi Vasudevan
Author-email: UNKNOWN
License: UNKNOWN
Description: # smoothie [![Build Status](https://api.travis-ci.org/TheSriram/smoothie.png)](https://travis-ci.org/TheSriram/smoothie)
        Python Exception Based Callbacks
        
        Add your callbacks to functions as decorators, that are slated to be called as per the Exception raised.
        
        ```python
        from smoothie.king import Dispenser
        
        def err_callback(*args, **kwargs):
            print("Error handled")
        
        juice = Dispenser()
        @juice.attach(exception=IndexError,
                      callback=err_callback)
        def vending_machine():
            drinks = ['Tea','Coffee', 'Water']
            return drinks[4]
        
        vending_machine()
        ```
        
        To run the unit tests,
        
         ```bash
         pip install -r test-requirements.txt
         cd smoothie/tests
         nosetests -vs
         ```
        
        
Platform: UNKNOWN
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
