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

All Samples(11)  |  Call(6)  |  Derive(0)  |  Import(5)

        def make_runner(project, **kwargs):
    if project.project_data:
        return Runner(make_client(project), project, **kwargs)
    return ImageRunner(make_client(project), project, **kwargs)
        


src/s/b/sbgsdk-0.5.4/sbdk/commands/push.py   sbgsdk(Download)
from sbdk.auth import push_url, push_json
from sbdk.commands import check_project_dir, check_image, check_project_data
from sbdk.docker import make_runner
 
 
    check_image(project)
 
    docker = make_runner(project)
    container = docker.run_install()
    if not container.is_success():
    project.project_data = None
    project.image_id = container.image['Id']
    runner = make_runner(project)
    runner.schema('.sbdk/schema.json')
 

src/s/b/sbgsdk-0.5.4/sbdk/commands/schema.py   sbgsdk(Download)
from sbdk.commands import check_image
from sbdk.docker import make_runner
 
 
def argument_parser(subparsers):
def schema(project):
        check_image(project)
        docker = make_runner(project)
        docker.schema()
 

src/s/b/sbgsdk-0.5.4/sbdk/commands/run.py   sbgsdk(Download)
from sbdk.executor import Adun
from sbgsdk.protocol import to_json
from sbdk.docker import make_runner
from sbdk.commands import check_image, check_project_dir
 
def run(project, wrapper, args, output=None, one_container=True):
    check_project_dir(project)
    check_image(project)
    r = make_runner(project)
    with open(args) as fp:

src/s/b/sbgsdk-0.5.4/sbdk/commands/fix_uid.py   sbgsdk(Download)
import os
import logging
 
from sbdk.commands import check_image
from sbdk.docker import make_runner
def fix_uid(project, uid=None):
    check_image(project)
    r = make_runner(project)
    c = r.run(['/sb/utils/fix-uid.sh', project.docker_user, uid])
    if not c.is_success():

src/s/b/sbgsdk-0.5.4/sbdk/commands/test.py   sbgsdk(Download)
from sbdk.commands import check_image, check_project_dir
from sbdk.docker import make_runner
 
 
def argument_parser(subparsers):
def test(project, module):
    check_project_dir(project)
    check_image(project)
    r = make_runner(project)
    try: