Get notified on your desktop when your drone.io build finishes.
dronedesktopnotifier is a Python library to get notifications from a drone.io-server on your desktop, it filters for names and can be used to only notify in command line or with balloon notifications (windows and mac supported).
Use the package manager pip to install dronedesktopnotifier.
pip install dronedesktopnotifier
- For mac and balloon notifications, install
brew install terminal-notifier
python -m dronedesktopnotifier https://drone.<yourdomain>.com/api <drone.io access token> --names <your github username(s)>
python -m dronedesktopnotifier https://drone.mycompany.io/api jsgjijgjgojJGJISGJSGOSG.jtkjfjafkGSJGJOSGJOJSOGI.jksgoafjHGJAJGJKAGJ --names AlxndrJhn
urlthis is the base url of the api of your
drone.aisystem, something like
https://drone.mycompany.io/api, it will get all active repositories automatically
drone-api-tokenis your personal token from your
drone.iosystem. You can find it at something like
--nameslist of space separated names (your GitHub name for example) that should trigger the notification, if not given, all builds will trigger the alarm.
--delaydelay in seconds (integer) between
drone.aiapi request batches.
--balloon/--no-balloonin case you only want the terminal notification, the balloon is on by default.
--terminal-unicode/--no-terminal-unicodein case you only want the terminal notifications in ascii, unicode is used by default.
--terminal-color/--no-terminal-colorin case you want colors in your terminal (requires
termcolorpackage. Colors are on by default.
The terminal output
Fri 12:08:59 Checking 14 repositories for activity (last 30 days) Fri 12:09:01 Active repositories found: ['mycompany/some-service', 'mycompany/some-ai', 'mycompany/labelstuff', 'mycompany/inspect_stuff', 'mycompany/cnn-stuff'] Fri 12:09:02 got information for 250 builds from https://drone.mycompany.io/api, 48 are related to ['AlxndrJhn'] Fri 12:09:02 🔄 `running` https://drone.mycompany.io/company/some-service/2506 `My pull request title` https://github.com/company/some-service/pull/23 (AlxndrJhn)
There is one start-up message, it might be an error or as shown above, a success message. If some build is pending or running, it will output it immediatly.
The balloon output
For windows, it appears in to bottom right corner.
For mac, it appears in the top left corner, clicking it opens the default webbrowser to the build log directly.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size dronedesktopnotifier-0.2.tar.gz (5.8 kB)||File type Source||Python version None||Upload date||Hashes View|