Metadata-Version: 1.1
Name: anticipate
Version: 0.7.6
Summary: A type checking and adapting library
Home-page: http://github.com/six8/anticipate
Author: Mike Thornton
Author-email: six8@devdetails.com
License: BSD
Download-URL: http://github.com/six8/anticipate
Description: ==========
        Anticipate
        ==========
        
        .. image:: https://secure.travis-ci.org/six8/anticipate.png
            :target: http://travis-ci.org/six8/anticipate
            :alt: Build Status
        
        
        Expect the unexpected, but get what you want.
        
        ::
        
            @anticipate(int)
            def get_int():
              return '1'
        
            assert get_int() == 1
        
            @anticipate(str)
            def get_str():
              return 22
        
            assert get_str() == '22'
        
            @anticipate([str])
            def get_strs(*args):
              return args
        
            assert list(get_strs(1, 2, 3)) == ['1', '2', '3']
        
        Works much better with your own objects or with `SpringField <https://github.com/six8/springfield>`_
        
        
Keywords: packaging
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.5
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: BSD License
Classifier: Development Status :: 3 - Alpha
