Did I find the right examples for you? yes no

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

src/p/y/pyroTorrent-HEAD/pyrotorrent.py   pyroTorrent(Download)
app.config.from_pyfile('flask-config.py')
 
from config import FILE_BLOCK_SIZE, BACKGROUND_IMAGE, \
        USE_AUTH, ENABLE_API, rtorrent_config, torrent_users, USE_OWN_HTTPD, \
        CACHE_TIMEOUT
def handle_api_method(method, keys):
    if not ENABLE_API:
        return None
    if method not in known_methods:
        raise Exception('Unknown method')
def api():
    if not ENABLE_API:
        abort(403)
    #if not loggedin_and_require(env):
    #    r = Response(json.dumps(None, indent=' ' * 4), mimetype='application/json')

src/p/y/pyroTorrent-HEAD/lib/helper.py   pyroTorrent(Download)
 
# pyro imports
from config import FILE_BLOCK_SIZE, BACKGROUND_IMAGE, \
        USE_AUTH, ENABLE_API, rtorrent_config, torrent_users
from lib.config_parser import parse_config_part, parse_user_part, \