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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
HACK for making a stoppable server 

src/m/o/moo-0.2.0/moo/moo.py   moo(Download)
import re
from bottle import Bottle
from server import StoppableCherryPyServer
 
__all__ = ['build_app', 'quickstart', 'export_html']
def build_app(filename, port, debug, quiet):
    app = Bottle()
    server = StoppableCherryPyServer(port=port, debug=debug, quiet=quiet)
    markup = Markup(filename)
    dirname, basename = os.path.split(markup.filename)

src/m/e/meow-0.3.1/meow/meow.py   meow(Download)
    txlmod_is_not_installed = True
from .rst import to_html as rst_to_html
from .server import StoppableCherryPyServer
 
__all__ = ['build_app', 'quickstart', 'export_html']
def build_app(filename, port, debug, quiet, filetype):
    app = Bottle()
    server = StoppableCherryPyServer(port=port, debug=debug, quiet=quiet)
    root, ext = os.path.splitext(filename)
    markup = Markup(filename, filetype)