backwork-notifier-http
Support for HTTP notifications on backwork.
Installing
You can use pip to install this plug-in directly:
$ pip install backwork-notifier-http
Using
After installing the plug-in you will be able to use the -n http
argument on backwork commands.
$ backwork --help
usage: backwork [-h] [-n NOTIFIERS] [--http-notifier-url HTTP_NOTIFIER_URL]
[--http-notifier-bearer HTTP_NOTIFIER_BEARER]
[--http-notifier-basic-user HTTP_NOTIFIER_BASIC_USER]
[--http-notifier-basic-pass HTTP_NOTIFIER_BASIC_PASS]
[--http-notifier-method HTTP_NOTIFIER_METHOD]
[--http-notifier-data HTTP_NOTIFIER_DATA]
[--http-notifier-params HTTP_NOTIFIER_PARAMS]
[--http-notifier-add-headers HTTP_NOTIFIER_ADD_HEADERS]
[--http-notifier-key HTTP_NOTIFIER_KEY]
{backup,restore,upload,show,download} ...
positional arguments:
{backup,restore,upload,show,download}
optional arguments:
-h, --help show this help message and exit
-n NOTIFIERS, --notify NOTIFIERS
enable a notifier, it can be used multiple times
--http-notifier-url HTTP_NOTIFIER_URL
The URL to be targeted as the HTTP request endpoint
--http-notifier-bearer HTTP_NOTIFIER_BEARER
If set, this value will be used as an Authorization Bearer
token and sent with the HTTP request.
--http-notifier-basic-user HTTP_NOTIFIER_BASIC_USER
If set, this value (along with --http-notifier-basic-pass)
will be used for basic auth and sent with the HTTP request.
--http-notifier-basic-pass HTTP_NOTIFIER_BASIC_PASS
If set, this value (along with --http-notifier-basic-user)
will be used for basic auth and sent with the HTTP request.
--http-notifier-method HTTP_NOTIFIER_METHOD
The method to be used for the HTTP request. Choose from
'post' or 'get'. Default is 'post'.
--http-notifier-data HTTP_NOTIFIER_DATA
JSON string sent as the 'data' object with the HTTP
request. Format as the following: '{"key": "value"}'
--http-notifier-params HTTP_NOTIFIER_PARAMS
JSON string with params to be sent with the HTTP request.
--http-notifier-add-headers HTTP_NOTIFIER_ADD_HEADERS
JSON string with headers to be sent with the HTTP request.
For authorization, use --http-notifier-bearer or --http-
notifier-basic-user & --http-notifier-basic-pass.
--http-notifier-key HTTP_NOTIFIER_KEY
The key name for the error message (from backwork) that is
appended to the 'data' (--http-notifier-data) object. Use
'.' to traverse the JSON tree (up to 6 levels deep). For
example, --http-notifier-key="data.error.message" is 3
levels deep. By default, if no key is specified the error
message will not be appended.
Metadata
Release files for backwork-notifier-http 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| backwork-notifier-http-0.1.4.tar.gz | 5.0 kB | Without provenance | Details for backwork-notifier-http-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| backwork_notifier_http-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for backwork_notifier_http-0.1.4-py3-none-any.whl |
Total release size: 14.4 kB
Release files / backwork-notifier-http-0.1.4.tar.gz
| Download URL | backwork-notifier-http-0.1.4.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be3baa0111b4094d4930bfb8024975f79d7416dcc071c334b54384b7da920317
|
|
BLAKE2b-256 checksum How to use checksums |
247c3f5469e87279f97ed0e4df4cb1f1fd0d13a6e81d0fbeac274713f4a65711
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.2
|
Release files / backwork_notifier_http-0.1.4-py3-none-any.whl
| Download URL | backwork_notifier_http-0.1.4-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75c0c81f87095aa74fa41ae1f476364423552fb80b43d4681a9bf02e31fbe5d1
|
|
BLAKE2b-256 checksum How to use checksums |
bed323ec85a81f2dadc111c0598752e8eaa8b6b213f2a0acdfb2adaa3f71db75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.2
|
Security for backwork-notifier-http 0.1.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.