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

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

src/r/o/roc-0.3.2/roc/cli.py   roc(Download)
def main():
    from optparse import OptionParser
    from .server import create_server, shutdown_competitors
 
    parser = OptionParser(usage='python -m roc <options>')
        if options.egoist:
            shutdown_competitors(port)
        server = create_server(options.module, port, options.verbose)
        if options.verbose:
            print("Listening on port %d..." % (port))

src/r/o/roc-0.3.2/roc/__init__.py   roc(Download)
from .server import start_server, create_server
from .client import server_proxy, remote_module, is_online
from .cli import main
 
 

src/f/l/flask-oauthlib-HEAD/tests/oauth2/test_oauth2.py   flask-oauthlib(Download)
from flask import Flask
from mock import MagicMock
from .server import (
    create_server,
    db,
    def setup_app(self, app):
        oauth = self.create_oauth_provider(app)
        create_server(app, oauth)
        client = create_client(app)
        client.http_request = MagicMock(

src/f/l/flask-oauthlib-HEAD/tests/oauth1/test_oauth1.py   flask-oauthlib(Download)
from flask import Flask
from flask_oauthlib.client import OAuth, OAuthException
from .server import create_server, db
from .client import create_client
from .._base import BaseSuite, clean_url