Welcome to Apprise
Ce contenu n’est pas encore disponible dans votre langue.
ap·prise / verb
To inform or tell (someone). To make one aware of something.
Apprise allows you to send a notification to almost all of the most popular notification services available to us today such as: Telegram, Discord, Slack, Amazon SNS, Gotify, etc.
- One notification library to rule them all.
- A common and intuitive notification syntax.
- Supports the handling of images and attachments (to the notification services that will accept them).
- It’s incredibly lightweight.
- Amazing response times because all messages sent asynchronously.
Developers who wish to provide a notification service no longer need to research each and every one out there. They no longer need to try to adapt to the new ones that comeout thereafter. They just need to include this one library and then they can immediately gain access to almost all of the notifications services available to us today.
System Administrators and DevOps who wish to send a notification now no longer need to find the right tool for the job. Everything is already wrapped and supported within the apprise command line tool (CLI) that ships with this product.
Key Features
Section titled “Key Features”- Simple API: Send notifications with just a few lines of code
- Low Overhead: Written to use as little dependant libraries as possible. In addition to this, all calls are made asynchronously to maximize the response time.
- Multiple Services: Support for 120+ notification services
- URL-Based Configuration: Configure services using simple URLs
- Flexible: Works in Python, as a CLI tool, or via API
- Self-hosted: A 100% self-hosted solution
Other Notes
Section titled “Other Notes”- Written in Python
- 99.65% Test Coverage (oof… I’ll get it back to 100% eventually again)
- Over 15,500+ stars on GitHub! ⭐
- Over 5M downloads a month on PyPI (source)
- Over 94M downloads total on PyPI (source)
- The API version of Apprise has had more than 3.8 million downloads from Docker Hub
Simple Setup
Section titled “Simple Setup”-
Pick one or more services you want to notify and see how to configure it. Each service translates to a URL; for example
discord://credentials?customize=optionsand/ortelegram://credentials?customize=optionsand so forth. -
Store your configuration in a configuration file:
~/.apprise.yaml # Inline comments supportedurls:# Define upstream services by their URL and optionally tag them- mailto://user:pass@gmail.com/marie@yahoo.ca- tag: marie, friends- mailto://user:pass@gmail.com/jack@example.com:- tag: jack, friends- mailto://user:pass@gmail.com/jason@acme-corp.com:- tag: jason, boss# Specifying the same tag more than once just groups the services# together (allowing you to notify multiple end points with just# one simple reference)- kodi://kodihost-1- tag: tv- kodi://kodihost-2- tag: tv# This URL has no tags associated with it; all this means is# this becomes a default end point to notify- mailto://user:pass@hotmail.com -
Send your notification:
Terminal window # A simple notificationapprise -t "my title" -b "my body"# Send an attachmentapprise -t 'not looking good' \-b 'the dog ate my homework' \--attach=/photos/DSC_0001.jpg# Send multiple attachments; they can even be from a website# or local security footage you're using:apprise -b "someone is outside" \--attach=http://camera01.home.arpa?image=jpg \--attach=http://camera02.home.arpa?image=jpgAssuming we reference the configuration defined above in
2.,Here is how we can send a notification to a specific upstream service that was previously tagged:Terminal window # Notify all of our Kodi instances; maybe remind those watching it# that it's almost time for bed:apprise --tag=tv -b "Bed time is in 20 min"# Send an email to just Marieapprise --tag=marie -t "Sick Day" -b "I won't be at work tomorrow, i'm not feeling well"# Send an email to those you grouped as friends (Marie and and Jack, but not Jason):apprise --tag=friends -t "Drinks on me" -b "Let's get a drink on Friday; i'll buy" -
Where Apprise gets incredible powerful is when you self-host your own instance of the Apprise API allowing you to store your configuration in a centralized location for all of your instances of Apprise to work from. This is very useful in a corporate or devops environment.
- Notify your team of outages
- Notify your employees of an event
| Filter | Selected services |
|---|---|
--tag TagA | Has TagA |
--tag TagA,TagB | Has TagA AND TagB |
--tag 'TagA' --tag 'TagB | Has TagA OR TagB |
--tag 'TagA,TagC --tag TagB | Has ( TagA AND TagC) OR TagB |
Next Steps
Section titled “Next Steps”- Check out our Quick Start Guide to begin
- Try the URL Builder tool