Metadata-Version: 1.1
Name: echo
Version: 0.1
Summary: Callback Properties in Python
Home-page: https://github.com/glue-viz/echo
Author: Chris Beaumont
Author-email: cbeaumont@cfa.harvard.edu
License: MIT
Description: echo: Callback Properties in Python
        ===================================
        
        Echo is a small library for attaching callback functions to property
        state changes. For example:
        
        ::
        
            class Switch(object):
                state = CallbackProperty('off')
        
            def report_change(state):
                print 'the switch is %s' % state
        
            s = Switch()
            add_callback(s, 'state', report_change)
        
            s.state = 'on'  # prints 'the swtich is on'
        
        CalllbackProperties can also be built using decorators
        
        ::
        
            class Switch(object):
        
                  @callback_property
                  def state(self):
                    return self._state
        
                  @state.setter
                  def state(self, value):
                      if value not in ['on', 'off']:
                          raise ValueError("invalid setting")
                      self._state = value
        
        Full documentation is avilable `here <https://echo.rtfd.org/>`__
        
        |Build Status| |Coverage Status|
        
        .. |Build Status| image:: https://travis-ci.org/glue-viz/echo.png
           :target: https://travis-ci.or%20g/glue-viz/echo?branch=master
        .. |Coverage Status| image:: https://coveralls.io/repos/g%20lue-viz/echo/badge.png
           :target: https://coveralls.io/r/glue-viz/echo
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Utilities
