Notifiers

Latest version: v1.3.3

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.3.0

Added

- Added VictorOps (401)

Removed

- Removed HipChat (404)

Other

- Updated a lot of maintenance related stuff

1.2.0

- Added ability to cancel login to SMTP/GMAIL if credentials are used (210, 266)
- Loosened dependencies (209, 271)
- Added mimetype guessing for email (239, 272)

0.6.4

- Major refactor, reintroduced provider resources:
python
>>> from notifiers import get_notifier
>>> telegram = get_notifier('telegram')
>>> telegram.resources
['updates']
>>> telegram.updates
<ProviderResource,provider=telegram,resource=updates>
>>> telegram.updates()
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Users/orcarmi/PycharmProjects/notifiers/notifiers/core.py", line 278, in __call__
data = self._process_data(**kwargs)
File "/Users/orcarmi/PycharmProjects/notifiers/notifiers/core.py", line 204, in _process_data
self._validate_data(data, validator)
File "/Users/orcarmi/PycharmProjects/notifiers/notifiers/core.py", line 175, in _validate_data
raise BadArguments(validation_error=msg, provider=self.name, data=data)
notifiers.exceptions.BadArguments: Error with sent data: 'token' is a required property
>>> telegram.updates(token='foo')

- Major CLI refactor, validates command options via type (as opposed to keyword=value as it was, which was always string. Yuck)
text
$ notifiers --help
Usage: notifiers [OPTIONS] COMMAND [ARGS]...

Notifiers CLI operation

Options:
--version Show the version and exit.
--env-prefix TEXT Set a custom prefix for env vars usage
--help Show this message and exit.

Commands:
email Options for 'email'
gitter Options for 'gitter'
gmail Options for 'gmail'
hipchat Options for 'hipchat'
join Options for 'join'
providers Shows all available providers
pushbullet Options for 'pushbullet'
pushover Options for 'pushover'
simplepush Options for 'simplepush'
slack Options for 'slack'
telegram Options for 'telegram'
zulip Options for 'zulip'

text
$ notifiers telegram notify --help
Usage: notifiers telegram notify [OPTIONS] [MESSAGE]

Send Telegram notifications

Options:
--token TEXT Bot token
--chat-id TEXT
--parse-mode [markdown|html] Send markdown or html, if you want telegram
apps to show bold, italic, fixed-width text
or inline urls in your bot's message.
--disable-web-page-preview / --no-disable-web-page-preview
Disables link previews for links in this
message
--disable-notification / --no-disable-notification
Sends the message silently. users will
receive a notification with no sound.
--reply-to-message-id INTEGER If the message is a reply, id of the
original message
--help Show this message and exit.

See [docs](http://notifiers.readthedocs.io/en/latest/) for details.

0.6.2

Additions

Docker file (via 70) and [docker hub](https://hub.docker.com/r/liiight/notifiers/) installation

0.6.1

New providers
- [Zulip](http://zulip.org) (https://github.com/liiight/notifiers/issues/61)

Improvements

- Friendlier schema error message on complex schema errors (https://github.com/liiight/notifiers/issues/62)
- Added `title` and `events` to `simplepush` notifier (60)
- Some refactoring

0.6.0

New providers

- [Gitter](https://gitter.im)
- [Pushbullet](https://www.pushbullet.com)
- [Join](https://joaoapps.com/join/)
- [Hipchat](https://www.hipchat.com/docs/apiv2)

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.