Skip to main content

dronedesktopnotifier

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).

Installation

Use the package manager pip to install dronedesktopnotifier.

pip install dronedesktopnotifier
  • For mac and balloon notifications, install terminal-notifier
brew install terminal-notifier

Usage

  • Format
python -m dronedesktopnotifier https://drone.<yourdomain>.com/api <drone.io access token> --names <your github username(s)>
  • Example
python -m dronedesktopnotifier https://drone.mycompany.io/api jsgjijgjgojJGJISGJSGOSG.jtkjfjafkGSJGJOSGJOJSOGI.jksgoafjHGJAJGJKAGJ --names AlxndrJhn

Arguments

  • url this is the base url of the api of your drone.ai system, something like https://drone.mycompany.io/api, it will get all active repositories automatically

  • drone-api-token is your personal token from your drone.io system. You can find it at something like https://drone.mycompany.io/account/token

Optional parameters

  • -n or --names list of space separated names (your GitHub name for example) that should trigger the notification, if not given, all builds will trigger the alarm.

  • -d or --delay delay in seconds (integer) between drone.ai api request batches.

  • --balloon/--no-balloon in case you only want the terminal notification, the balloon is on by default.

  • --terminal-unicode/--no-terminal-unicode in case you only want the terminal notifications in ascii, unicode is used by default.

  • --terminal-color/--no-terminal-color in case you want colors in your terminal (requires termcolor package. Colors are on by default.

Output

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

  1. For windows, it appears in to bottom right corner. popup example windows

  2. For mac, it appears in the top left corner, clicking it opens the default webbrowser to the build log directly.

Known issues

none yet

Contributing

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.

License

GPLv3

Metadata

Release files for dronedesktopnotifier 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dronedesktopnotifier 0.4
File Size Uploaded Provenance Actions
dronedesktopnotifier-0.4.tar.gz 5.9 kB Without provenance Details for dronedesktopnotifier-0.4.tar.gz

Release files / dronedesktopnotifier-0.4.tar.gz

Download URL dronedesktopnotifier-0.4.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
48c2d4d47cf5b344f3d078335c70a0de8ba21578a50eca514aea7e0e3ea0e705
BLAKE2b-256 checksum
How to use checksums
1a4c2c128841a434c3d2d4857fa47587c3caff5f97074d3e848c655fd7aa1e61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Security for dronedesktopnotifier 0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page