Metadata-Version: 2.1
Name: sanic-fire
Version: 0.1
Summary: sanic-fire is an extension for Sanic that adds support for commands to your application.
Home-page: https://github.com/tim2anna/sanic-fire
Author: Anna
Author-email: 
License: BSD License
Description: # sanic-fire
        
        sanic-fire is an extension for Sanic that adds support for writing external commands to your application.
        
        ## install
        
            $ pip install sanic-fire
            
        ## quick start
        
        1.Step1: Create manager.py file in your project root directory.
        
        ```
        #!/usr/bin/python3
        # -*- coding: utf-8 -*-
        
        from sanic_fire import cmd
        from sanic_fire.core import command_class, command_func
        
        
        @command_class
        class Hello(object):
            """ Annonation """
            
            def hello(self, value='world'):
                """ hello """
                return 'hello, ' + str(value)
        
        
        @command_func
        def sync_db():
            return 'init db'
        
        
        if __name__ == '__main__':
            cmd()
        ```     
                
        2.Step2: Run command on terminal:
        ```
        python3 manager.py sync_db
        python3 manager.py Hello hello
        ```
        
Platform: all
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
