Skip to main content

robotframework-apprise

License: GPL v3 Code style: black CodeQL PyPi version

robotframework-apprise is a Robot Framework keyword collection for the Apprise push message library. It enables Robot Framework users to send push/email messages to every message service supported by Apprise.

transmit

Installation

The easiest way is to install this package is from pypi:

pip install robotframework-apprise

Robot Framework Library Example

In order to run the example code, you need to provide at least one valid target messenger. Have a look at Apprise's list of supported messenger platforms

Library usage and supported keywords

Keyword Description
Send Apprise Message Sends a push message through Apprise
Set Clients and Set Attachments Sets a new value list and replace the previous values
Add Client and Add Attachment Adds a value to an existing list
Remove Client and Remove Attachment Removes a value from an existing list (if present). Trying to remove a non-existing entry will NOT result in an error
Clear All Clients and Clear All Attachments Completely removes the current values from the respective list
Set Attachment Delimiter Optional delimiter reconfiguration - see details below
Set Notify Type Sets one of Apprise's supported notify types. Valid values are info,success,warning, and failure. Default notify type is info
Set Body Format Sets one of Apprise's supported body formats. Valid values are html,text, and markdown. Default body format is html
Set Config File Allows you to specify a single Apprise config file in YAML or Text format

Both clients and attachments options can be passed as a List type variable or as a string. If you use a string, the default delimiter is a comma ,. Use the Set Attachment Delimiter keyword in case you need to use a different delimiter for your attachments.

All Set ... keywords provide corresponding Get ... keywords.

Attachments are purely optional. Providing at least one Client is mandatory, though.

Examples:

# Send a message with one client and a List which contains our images
@{IMAGE_LIST}=          Create List     http://www.mysite.com/image1.jpg    http://www.mysite.com/image2.jpg
Send Apprise Message    title=Robot Framework Apprise Demo   body=Connect to Apprise with your Robot Framework Tests!    clients=<apprise_client>     attachments=${IMAGE_LIST}
# Send a message with one client. Our attachments use a comma-separated string (default)
Send Apprise Message    title=Robot Framework Apprise Demo   body=Connect to Apprise with your Robot Framework Tests!    clients=<apprise_client>     attachments=http://www.mysite.com/image1.jpg,http://www.mysite.com/image2.jpg
# Send a message with one client. Our attachments use a custom delimiter ^
Set Attachment Delimiter    ^
Send Apprise Message    title=Robot Framework Apprise Demo   body=Connect to Apprise with your Robot Framework Tests!    clients=<apprise_client>     attachments=http://www.mysite.com/image1.jpg^http://www.mysite.com/image2.jpg
# Send a message with one client and a List which contains our images
@{IMAGE_LIST}=          Create List     http://www.mysite.com/image1.jpg    http://www.mysite.com/image2.jpg
Set Test Variable       ${CONFIG_FILE}  config.yaml
Send Apprise Message    title=Robot Framework Apprise Demo   body=Connect to Apprise with your Robot Framework Tests!    config_file=${CONFIG_FILE}     attachments=${IMAGE_LIST}

Known issues

  • The current version of this library does not support Apprise's whole feature set. Options such as tagging are not implemented (but may work if you use a config file-based setting)
  • Unlike the original Apprise API, only one YAML config file is currently supported with this Robot Framework keyword library.

Metadata

Release files for robotframework-apprise 0.3.1

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

Source distribution (sdist)

Source distribution for robotframework-apprise 0.3.1
File Size Uploaded Provenance
robotframework-apprise-0.3.1.tar.gz 19.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for robotframework-apprise 0.3.1
File Interpreter ABI Platform
robotframework_apprise-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 39.2 kB

Release files / robotframework-apprise-0.3.1.tar.gz

Download URL robotframework-apprise-0.3.1.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
05e98dd0627bd8373e6e6f5cc11d44b181991ad848992b473b9cc22faab3afc2
BLAKE2b-256 checksum
How to use checksums
adb62c511f79b6179d6165fd01cbc12381af9d05d69193588be980ad5df9810b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / robotframework_apprise-0.3.1-py3-none-any.whl

Download URL robotframework_apprise-0.3.1-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6505619ab49234e2f93a50a3a0076ebe8a17e10c6aa2f956f7c4b7aad36b0b9
BLAKE2b-256 checksum
How to use checksums
b6813ffa94b0aefdd82eaaf82a901d04505155544f67ee2595b795e7e5207702
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Security for robotframework-apprise 0.3.1

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