Metadata-Version: 1.0
Name: yell
Version: 0.1
Summary: User notification library with pluggable backends. Compatible with popular frameworks such as Django, Flask, Celery.
Home-page: https://github.com/caffeinehit/yell
Author: Alen Mujezinovic
Author-email: flashingpumpkin@gmail.com
License: UNKNOWN
Description: ====
        yell
        ====
        
        Pluggable notifications for your Python apps.
        
        `yell` is not a notification storage or delivery backend but a set of APIs that make it easy to add your own delivery mechanisms.
        
        
        Using yelling decorators
        ------------------------
        
        ::
        
        from yell.decorators import yelling
        
        @yelling(name = 'buffalo')
        def buffalo_printer(message):
        print message
        
        @yelling(name = 'buffalo')
        def buffalo_saver(message):
        save(message)
        
        yell("buffalo", _("Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo"))
        
        
        Using yelling classes
        ---------------------
        
        ::
        
        from yell import Yell, yell
        
        class Buffalo(Yell):
        name = "buffalo"
        message = _("Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo")
        
        def yell(self, *args, **kwargs):
        print self.message
        
        class BuffaloEmail(Buffalo):
        def yell(self, *args, **kwargs):
        send_mail("Buffalo", self.message, 'buffalo@example.com', [kwargs.get('user').email])
        
        class BuffaloDatabase(Buffalo):
        def yell(self, *args, **kwargs):
        BuffaloModel.objects.create(user = kwargs.get('user'))
        
        # The default behaviour is to use every notification backend with the same
        # name
        yell("buffalo", user = User.objects.get(id=1))
        
        # Only send emails
        yell("buffalo", user = User.objects.get(id=1), backends = [BuffaloEmail])
        
Keywords: django flask celery user notifications yell buffalo
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Environment :: MacOS X
Classifier: Environment :: Web Environment
Classifier: Environment :: Other Environment
Classifier: Environment :: X11 Applications
Classifier: Framework :: Django
Classifier: Framework :: Paste
Classifier: Framework :: Pylons
Classifier: Framework :: TurboGears
Classifier: Framework :: Twisted
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Communications
Classifier: Topic :: Communications :: Email
Classifier: Topic :: Database
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
