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

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

src/l/a/Lampost-Mud-HEAD/lampost/setup/dbcontext.py   Lampost-Mud(Download)
from lampost.context.resource import provides
from lampost.context.scripts import select_json
from lampost.datastore.dbconn import RedisStore
from lampost.gameops.event import Dispatcher
from lampost.util.lmlog import Log
    def __init__(self, db_host="localhost", db_port=6379, db_num=0, db_pw=None, log_level="info", log_file=None):
        self.properties = {}
 
        Log(log_level, log_file)
        select_json()

src/l/a/Lampost-Mud-HEAD/lampost/context/context.py   Lampost-Mud(Download)
from lampost.context.resource import provides, context_post_init, register
from lampost.client.server import WebServer
from lampost.context.scripts import select_json
from lampost.gameops.event import Dispatcher
from lampost.client.session import SessionManager
        self.properties = {}
        Log(log_level, log_file).info('starting server with {}'.format(locals()))
        select_json()
        Tools()
        register('datastore', RedisStore(db_host, int(db_port), int(db_num), db_pw), True)