Algorithm engineers or RDs often feel anxious when monitoring their running codes.
Some codes can be running for several hours and even be running for several days.
Such as the training of Deep Learning Models and some Big Data ETL tasks.
If we can send some important message about the running status to our email or wechat,
then we can know the status of our running task from our phone.
Wow, that will be a great bless to the rest hairs of our Algorithm engineers.
Actually, it can be achieved easily by send email with Python.
If we set QQ mail remind on wechat and sending emails to our QQ Email, we cat receive the messages on our phone.
Let's see how to do this!
import bugrobot
subject = "info@train_model.py"
msg = "auc=0.98"
receivers = ["2650115830@qq.com"]
#①send message to Email!
bugrobot.send_msg(receivers,subject,msg)
#②send the bug information to Email if any exception occor!
def f():
return 1/0
bugrobot.monitor_run(f,["2650115830@qq.com"])
Metadata
Release files for bugrobot 0.4
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 |
|---|---|---|---|---|
| bugrobot-0.4.tar.gz | 2.7 kB | Without provenance | Details for bugrobot-0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bugrobot-0.4-py3-none-any.whl | Python 3 | none | any | Details for bugrobot-0.4-py3-none-any.whl |
Total release size: 5.6 kB
Release files / bugrobot-0.4.tar.gz
| Download URL | bugrobot-0.4.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f7f916750cd70b74d574b9d9098b2a96c3489bac9a3afa6c4765d8dda823545
|
|
BLAKE2b-256 checksum How to use checksums |
871d6bbdb4e863e4437d2d91b7aa59b492bdc22a4e5792694aa7fe935b3facc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Release files / bugrobot-0.4-py3-none-any.whl
| Download URL | bugrobot-0.4-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
070fce1cb3dddf62419f0db1184673bf111e61dfcd7bf24f125ce0d672156b5c
|
|
BLAKE2b-256 checksum How to use checksums |
d196fd811bb66f9182c7c725416e1062501a0e73f67379889c4f10f5efdaf440
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Security for bugrobot 0.4
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.