Metadata-Version: 1.1
Name: docopt-dispatch
Version: 0.0.0
Summary: Dispatch from command-line arguments to functions
Home-page: https://github.com/halst/docopt-dispatch
Author: Vladimir Keleshev 
Author-email: vladimir@keleshev.com
License: MIT
Description: Dispatch from command-line arguments to functions
        =================================================
        
        Experimental.
        
        Example
        -------
        
        .. code:: python
        
            """Run something in development or production mode.
        
            Usage: run-something.py (--development | --production) <host> <port>
        
            """
            from docopt_dispatch import dispatch
        
        
            @dispatch.on('--development'):
            def development(host, port, **kwargs):
                print('in *development* mode')
        
        
            @dispatch.on('--production'):
            def development(host, port, **kwargs):
                print('in *production* mode')
        
        
            if __name__ == '__main__':
                dispatch(__doc__)
        
Keywords: docopt dispatch function adapter kwargs
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.5
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
