The Noterator: bringing notification to iteration.
Adding notification to your iteration.
>>> from noterator import noterate, EMAIL, TWILIO >>> for obj in noterate(my_objects, EMAIL|TWILIO): ... do_something_slow(obj) ... >>>
When the loop completes, The Noterator will notify you by all the methods you passed in. In this case it’ll email you and send an SMS to your configured number with Twilio. Other supported notification methods are HipChat (send a notification to a room) and desktop.
You can find more usage information in the usage docs.
Before The Noterator can do anything, you’ll need a config.ini file (see config.example.ini or the example below to get started).
It’s possible to use The Noterator without a configuration file, but it’s a little less concise. See the configuration docs for more detail.
By default, we check for $HOME/.config/noterator/config.ini, so it’s probably best to keep your config there, but you can pass the config_file parameter to noterate with the path to an alternative location.
You only need to define settings for the methods you wish to use.
[desktop] sound = true [email] from_mail = The Noterator <firstname.lastname@example.org> recipient = email@example.com host = smtp.example.org port = 25 username = firstname.lastname@example.org password = password123 [hipchat] token = abc123 room_id = 123456 from_name = The Noterator message_colour = green [twilio] account_sid = abc123 token = abc123 from_number = +123456 to_number = +456789
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|noterator-0.4.3-py2.py3-none-any.whl (12.0 kB) Copy SHA256 Checksum SHA256||2.7||Wheel||Oct 31, 2016|
|noterator-0.4.3.tar.gz (20.9 kB) Copy SHA256 Checksum SHA256||–||Source||Oct 31, 2016|