def mini(description, applicationName='PythonMini', noteType='Message', title='Mini Message', applicationIcon=None, hostname='localhost', password=None, port=23053, sticky=False, priority=None, callback=None, notificationIcon=None, identifier=None, notifierFactory=GrowlNotifier):
 try:
  growl = notifierFactory(applicationName=applicationName, notifications=[noteType], defaultNotifications=[noteType], applicationIcon=applicationIcon, hostname=hostname, password=password, port=port)
  result = growl.register()
  if (result is not True):
   return result
  return growl.notify(noteType=noteType, title=title, description=description, icon=notificationIcon, sticky=sticky, priority=priority, callback=callback, identifier=identifier)
 except Exception:
  logger.exception('Growl error')

def mini ( description , applicationName = 'PythonMini' , noteType = 'Message' , title = 'Mini Message' , applicationIcon = None , hostname = 'localhost' , password = None , port = 23053 , sticky = False , priority = None , callback = None , notificationIcon = None , identifier = None , notifierFactory = GrowlNotifier ) : try : growl = notifierFactory ( applicationName = applicationName , notifications = [ noteType ] , defaultNotifications = [ noteType ] , applicationIcon = applicationIcon , hostname = hostname , password = password , port = port ) result = growl . register ( ) if ( result is not True ) : return result return growl . notify ( noteType = noteType , title = title , description = description , icon = notificationIcon , sticky = sticky , priority = priority , callback = callback , identifier = identifier ) except Exception : logger . exception ( 'Growl error' )
single notification function simple notification function in one line .