def _service_by_name(name):
 services = _available_services()
 name = name.lower()
 if (name in services):
  return services[name]
 for service in six.itervalues(services):
  if (service['file_path'].lower() == name):
   return service
  (basename, ext) = os.path.splitext(service['filename'])
  if (basename.lower() == name):
   return service
 return False

def _service_by_name ( name ) : services = _available_services ( ) name = name . lower ( ) if ( name in services ) : return services [ name ] for service in six . itervalues ( services ) : if ( service [ 'file_path' ] . lower ( ) == name ) : return service ( basename , ext ) = os . path . splitext ( service [ 'filename' ] ) if ( basename . lower ( ) == name ) : return service return False
return the service info for a service by label .