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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bugrobot-0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 1da83ef1ff91dae40f92a32846dae9c60057c33ff31071a8e7a74c29a1e8d506
MD5 79986ef7d29551d065cb0f1521d509e2
BLAKE2b-256 47bea156f06c033252c0168f92f470557ec6cd823b90dbc5e39f0f8edc152d80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bugrobot-0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5e26c891e82ca97d7c2fedf3313f24c3f51502cce47c3fdc01a7a9638aea9cb2
MD5 7b6c298d48d25968901a496ef5630abb
BLAKE2b-256 69fffe11ea743136eb49ef7a8c0a3af64b55cf851bc50c4a8b1702cca578da9b

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