Skip to main content


Project description

# smoothie [![Build Status](](
Python Exception Based Callbacks

Add your callbacks to functions as decorators, that are slated to be called as per the Exception raised.

from smoothie.king import Dispenser

def err_callback(*args, **kwargs):
print("Error handled")

juice = Dispenser()
def vending_machine():
drinks = ['Tea','Coffee', 'Water']
return drinks[4]


To run the unit tests,

pip install -r test-requirements.txt
cd smoothie/tests
nosetests -vs

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for smoothie, version 0.1.dev14
Filename, size File type Python version Upload date Hashes
Filename, size smoothie-0.1.dev14.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page