Skip to main content

pynotificator: Easily send notifications from Python

Project description

PyNotificator

HomePage / Documentation / PyPI

Quick Start

Installation

Install with pip.

$ pip install pynotificator

If you are using Windows, you need an option: pip install pynotificator[win].

Python and Command Line Tools

You can use command line tools.

Beep

# Python
from pynotificator import BeepNotification
bn = BeepNotification(3)
bn.notify()

# Command Line Tools
$ beep-notify -t 3

Desktop

# Python
from pynotificator import DesktopNotification
dn = DesktopNotification('Hello', title='PyNotificator', subtitle='Notify')
dn.notify()

# Command Line Tools
$ desktop-notify -m Hello -t PyNotificator -s Notify

Slack

# Python
from pynotificator import SlackNotification
sn = SlackNotification('PyNotificator', 'https://hooks.slack.com/services/xxx')
sn.notify()

# Command Line Tools
$ slack-notify -m PyNotificator https://hooks.slack.com/services/xxx

Discord

# Python
from pynotificator import DiscordNotification
dn = DiscordNotification('PyNotificator', 'https://discordapp.com/api/webhooks/xxx')
dn.notify()

# Command Line Tools
$ discord-notify -m PyNotificator https://discordapp.com/api/webhooks/xxx

LINE

# Python
from pynotificator import LineNotification
ln = LineNotification('PyNotificator', 'xxx')
ln.notify()

# Command Line Tools
$ line-notify -m PyNotificator xxx

License

MIT License

Author

higurashi-takuto

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynotificator-1.0.1.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file pynotificator-1.0.1.tar.gz.

File metadata

  • Download URL: pynotificator-1.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for pynotificator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 19699871856ca21fc9568c9e7f635116347144db3ccd14eb44b90f71fb27a946
MD5 286710d1cf63fda32df5bd7b4ce12a1c
BLAKE2b-256 a5768d00e0628f547064e8701ad05bb8997cfde2f0dab7563b0d66d940c0152f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page