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:
Metadata
Release files for exception-sms 0.3.0
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 |
|---|---|---|---|---|
| exception-sms-0.3.0.tar.gz | 5.0 kB | Without provenance | Details for exception-sms-0.3.0.tar.gz |
Release files / exception-sms-0.3.0.tar.gz
| Download URL | exception-sms-0.3.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3eef6dfa70e32cfd6f71d4c1ec99ff824c628d34d89811ba826860654304e58
|
|
BLAKE2b-256 checksum How to use checksums |
975dfea9ffe078e96714bab370cc7d7cc067a93860a3faead3a0a54231a3e849
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for exception-sms 0.3.0
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.