Skip to main content

A useful tool to monitor your running code bug by sending email or wechat message

Project description

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"])


          

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

bugrobot-0.4.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

bugrobot-0.4-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file bugrobot-0.4.tar.gz.

File metadata

  • Download URL: bugrobot-0.4.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for bugrobot-0.4.tar.gz
Algorithm Hash digest
SHA256 8f7f916750cd70b74d574b9d9098b2a96c3489bac9a3afa6c4765d8dda823545
MD5 37aa1e50d9eb2f28b6322964cbef73b5
BLAKE2b-256 871d6bbdb4e863e4437d2d91b7aa59b492bdc22a4e5792694aa7fe935b3facc3

See more details on using hashes here.

File details

Details for the file bugrobot-0.4-py3-none-any.whl.

File metadata

  • Download URL: bugrobot-0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for bugrobot-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 070fce1cb3dddf62419f0db1184673bf111e61dfcd7bf24f125ce0d672156b5c
MD5 af714923bad0149aebf40d2409342313
BLAKE2b-256 d196fd811bb66f9182c7c725416e1062501a0e73f67379889c4f10f5efdaf440

See more details on using hashes here.

Supported by

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