Skip to main content

Provides a decorator that passes notifications to Slack

Project description

Welcome to jwcnotipy's documentation!

This package was built to facillitate sending notifications to slack at runtime!

Notifications can be attached to specific functions with a handy decorator:

from jwcnotipy import notify_on_exec

@notify_on_exec(jwc_test_app, 'U037LP9TM8P')
def sum(a,b):
   return a + b

sum(3,1)

Or at any other key point using notify_me:

from jwcnotipy import notify_me

sum(3,1)
notify_me(jwc_test_app, 'U037LP9TM8P')

The notifications are set up to post to a single channel defined by the JWCNOTIPY_CHANNEL environment variable, but can be sent to another specific channel by setting the channel keyword argument. NOTE only the user specified in the function call can see the notifications! This will be extended to allow a set of specific users and non-ephemeralised messages in a future build.

Contribute

  • Issue Tracker: github.com/$project/$project/issues
  • Source Code: github.com/$project/$project

Support

If you are having issues, please let us know. We have a mailing list located at: project@google-groups.com

License

The project is licensed under the BSD license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jwcnotipy-0.0.4.tar.gz (81.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jwcnotipy-0.0.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file jwcnotipy-0.0.4.tar.gz.

File metadata

  • Download URL: jwcnotipy-0.0.4.tar.gz
  • Upload date:
  • Size: 81.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for jwcnotipy-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a1893bc5ff2c0d37fd365e9ab9f2fcdca0f48abd747084e15d526f05989d1f8e
MD5 417e88e998cfc93f2930873a214b2f9f
BLAKE2b-256 ffc0e3fb03b5f85f3023416b39beab83ab69e3ea304c84df3e91eccc1b06c146

See more details on using hashes here.

File details

Details for the file jwcnotipy-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: jwcnotipy-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for jwcnotipy-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cd9f7226a8a25797d0af04837a5713e8d983feb017a347850ff8f1a86b92b0ba
MD5 583e93da8c2173208e3100d4189b81fe
BLAKE2b-256 8ea5ec63ac2db36b07266a4a037fc19c3e095bd4d40a2932b8ed33a31657fb18

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page