Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/m/e/meow-0.3.1/meow/meow.py   meow(Download)
    def handle_shutdown():
        server.shutdown()
 
    @app.post('/update')
    def handle_update():
    def run_app():
        try:
            server.run(app)
        except KeyboardInterrupt:
            server.shutdown()

src/m/o/moo-0.2.0/moo/moo.py   moo(Download)
    def handle_shutdown():
        server.shutdown()
 
    @app.post('/update')
    def handle_update():
    def run_app():
        try:
            server.run(app)
        except KeyboardInterrupt:
            server.shutdown()