scout/commands/setup/setup_scout.py
def database(context, institute_name, user_name, user_mail, api_key):
    """Setup a scout database."""
    LOG.info("Running scout setup database")

    # Fetch the omim information
    api_key = api_key or context.obj.get('omim_api_key')
    if not api_key:
        LOG.warning("Please provide a omim api key with --api-key")
        context.abort()

    institute_name = institute_name or context.obj['institute_name']
    user_name = user_name or context.obj['user_name']
    user_mail = user_mail or context.obj['user_mail']

    adapter = context.obj['adapter']

    LOG.info("Setting up database %s", context.obj['mongodb'])
    
    setup_scout(
        adapter=adapter,
        institute_id=institute_name, 
        user_name=user_name, 
        user_mail = user_mail, 
        api_key=api_key
    )
def database(context, institute_name, user_name, user_mail, api_key):
    """Setup a scout database."""
    LOG.info("Running scout setup database")

    # Fetch the omim information
    api_key = api_key or context.obj.get('omim_api_key')
    if not api_key:
        LOG.warning("Please provide a omim api key with --api-key")
        context.abort()

    institute_name = institute_name or context.obj['institute_name']
    user_name = user_name or context.obj['user_name']
    user_mail = user_mail or context.obj['user_mail']

    adapter = context.obj['adapter']

    LOG.info("Setting up database %s", context.obj['mongodb'])
    
    setup_scout(
        adapter=adapter,
        institute_id=institute_name, 
        user_name=user_name, 
        user_mail = user_mail, 
        api_key=api_key
    )
def database ( context , institute_name , user_name , user_mail , api_key ) : LOG . info ( "Running scout setup database" ) # Fetch the omim information api_key = api_key or context . obj . get ( 'omim_api_key' ) if not api_key : LOG . warning ( "Please provide a omim api key with --api-key" ) context . abort ( ) institute_name = institute_name or context . obj [ 'institute_name' ] user_name = user_name or context . obj [ 'user_name' ] user_mail = user_mail or context . obj [ 'user_mail' ] adapter = context . obj [ 'adapter' ] LOG . info ( "Setting up database %s" , context . obj [ 'mongodb' ] ) setup_scout ( adapter = adapter , institute_id = institute_name , user_name = user_name , user_mail = user_mail , api_key = api_key )
Setup a scout database.
Setup a scout database .