def package_install(name, **kwargs):
 cmd = ('pkg_install ' + name)
 if kwargs.get('version', False):
  cmd += (' ' + kwargs['version'])
 (out, err) = DETAILS['server'].sendline(cmd)
 return parse(out)

def package_install ( name , ** kwargs ) : cmd = ( 'pkg_install ' + name ) if kwargs . get ( 'version' , False ) : cmd += ( ' ' + kwargs [ 'version' ] ) ( out , err ) = DETAILS [ 'server' ] . sendline ( cmd ) return parse ( out )
install a "package" on the rest server .