ntfy.backends package

Submodules

ntfy.backends.darwin module

ntfy.backends.darwin.notify(title, message, **kwargs)

adapted from https://gist.github.com/baliw/4020619

ntfy.backends.default module

ntfy.backends.default.notify(title, message, **kwargs)

This backend automatically selects the correct desktop notificatoin backend for your operating system.

ntfy.backends.linux module

ntfy.backends.linux.notify(title, message, icon='/home/docs/.local/share/ntfy/icon.png', **kwargs)

ntfy.backends.pushbullet module

ntfy.backends.pushbullet.notify(title, message, access_token, device_iden=None, email=None, **kwargs)
Required parameter:
Optional parameters:
  • device_iden - a device identifier, if omited, notification is

    sent to all devices

  • email - send notification to pushbullte user with the specified

    email or send an email if they aren’t a pushullet user

ntfy.backends.pushover module

ntfy.backends.pushover.notify(title, message, user_key, api_token='aUnsraBiEZVsmrG89AZp47K3S2dX2a', device=None, sound=None, priority=0, expire=None, retry=None, callback=None, url=None, url_title=None, html=False, **kwargs)
Required parameters:
  • user_key
Optional parameters:
  • sound
  • priority
  • expire
  • retry
  • callback
  • access_token - use your own application token
  • device - target a device, if omitted, target all devices
  • url
  • url_title
  • html

ntfy.backends.win32 module

ntfy.backends.win32.notify(title, message, icon='/home/docs/.local/share/ntfy/icon.ico', **kwargs)
Optional parameters:
  • icon - path to an ICO file to display instead of the ntfy icon

ntfy.backends.xmpp module

Module contents