def create_application(name, image, ports=frozenset(), volume=None, links=frozenset(), environment=None, memory_limit=None, cpu_shares=None):
 return Application(name=name, image=DockerImage.from_string((image + u':latest')), ports=ports, volume=volume, links=links, environment=environment, memory_limit=memory_limit, cpu_shares=cpu_shares)

def create_application ( name , image , ports = frozenset ( ) , volume = None , links = frozenset ( ) , environment = None , memory_limit = None , cpu_shares = None ) : return Application ( name = name , image = DockerImage . from_string ( ( image + u':latest' ) ) , ports = ports , volume = volume , links = links , environment = environment , memory_limit = memory_limit , cpu_shares = cpu_shares )
instantiate an application with the supplied parameters and return it .