Skip to main content

A package to notify developer that program catched a exception

Project description

This package is used to notify developer that program catched a exception, Once this mechanism is triggered, the developer is notified via text message, along with the general reason for the exception and the function that caused it. At the same time, the package generates log files locally for developers to read and check for exceptions.

How to Install

You can install this package by execute the command like this pip install exception-sms in command line. One important thing is that this package only support Python3.6 or higher versions.

Examples

How to use it:

from exception_sms import GetNotification

logs = GetNotification(
    "Your access_key",
    "Your secret_key",
    "Your template_id of sms",
    "The author of the function",
    "Receiver's Phone number",
    "The path of log files"
)

@log.exce_note
def tests_func(x, y):
    out = x / y
    return out


if __name__ == "__main__":
    result = tests_func(0, 0)
    print(result)

The result of the code above:

https://file.lynchow.com/jingxuan/20200710/Awf8anosxXLB.png https://file.lynchow.com/jingxuan/20200710/ydqGsHkot9aG.png

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

exception-sms-0.3.0.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file exception-sms-0.3.0.tar.gz.

File metadata

  • Download URL: exception-sms-0.3.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for exception-sms-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c3eef6dfa70e32cfd6f71d4c1ec99ff824c628d34d89811ba826860654304e58
MD5 c1c9038138ac7dba3af5606343ac8172
BLAKE2b-256 975dfea9ffe078e96714bab370cc7d7cc067a93860a3faead3a0a54231a3e849

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