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.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

bugrobot-0.1-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bugrobot-0.1.tar.gz
  • Upload date:
  • Size: 1.9 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.1.tar.gz
Algorithm Hash digest
SHA256 d04865c42200c05be4bf403e8ee8c83f012a56c2e1e04c90a6bd66947b943812
MD5 f2bb0da107c767642a1c5bd68fe291e9
BLAKE2b-256 997a482ceb9bec1e0da5b08827baf1221e4765ee11c4fe88548ff5dd7abe7526

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bugrobot-0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3277dcd5a2dc3085489139a19aa5d6c0a368e22aadf8521cd8bb054e4215f2e8
MD5 d42fa89f441853a2d55fcbd16203f151
BLAKE2b-256 b6fad87621d6dde576585ee3e46de490c3432d8cc7a596ed6f63ad7c5056d9fc

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