check your task and when it finished, you will receive a email
Project description
reporter_su
Language
English
Deacription
Auto check your task if you use PBS to submit and email you when finished
Requirements
> python 3
Installation
Option 1:
git clone git@github.com:ZeroDesigner/reporter_su.git
cd reporter
python setup.py install
Option 2:
pip install reporter_su
Usage
Step 1
# you need to get these informations below
receiver = 'lus***@outlook.com'
sender = '86136***@qq.com'
mail_license = '******'
smtpserver = 'smtp.qq.com'
mail_body = 'my task pdbid has been finished'
mail_title = 'task 1'
pdbid = 'change_text'
Step 2
# the checker will check task status every 60 mins
import reporter_su.pbs_reporter as rp
if rp.auto_check(pdbid,time_scan = 3600) == 0:
rp.auto_report(receiver,sender,mail_license,smtpserver,mail_body,mail_title)
License
MIT
语言
中文
描述
自动检查你的任务是否已经完成(在使用PBS调度系统时),同时email提醒,在任务完成之后
依赖
大于 python 3
安装
选项 1:
git clone git@github.com:ZeroDesigner/reporter_su.git
cd reporter
python setup.py install
选项 2:
pip install reporter_su
用法
步骤 1
# 你需要获取这些信息
receiver = 'lus***@outlook.com'
sender = '86136***@qq.com'
mail_license = '******'
smtpserver = 'smtp.qq.com'
mail_body = 'my task pdbid has been finished'
mail_title = 'task 1'
pdbid = 'change_text'
步骤 2
# 脚本会每隔1个小时检查一下任务是否存在
import reporter_su.pbs_reporter as rp
if rp.auto_check(pdbid,time_scan = 3600) == 0:
rp.auto_report(receiver,sender,mail_license,smtpserver,mail_body,mail_title)
协议
MIT
邮箱
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
reporter_su-0.1.1.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reporter_su-0.1.1.tar.gz.
File metadata
- Download URL: reporter_su-0.1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e2b8b7b597c65fb4487702afd5b72cee6da3a041e742e17ddbda42717a2bb38
|
|
| MD5 |
9ecd359a417d895438e0caa3f872a015
|
|
| BLAKE2b-256 |
81cebc7d66012203ff7c80f522d96eb3b24a79bb5a0d81e7d16c89c536fa4d98
|
File details
Details for the file reporter_su-0.1.1-py3-none-any.whl.
File metadata
- Download URL: reporter_su-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd52c0bd369a7b3ab6bf3f23c5eca52b43cdf729fb403bb63d8058ec64612518
|
|
| MD5 |
83e5c46f9ed2a36142806a0a21a23697
|
|
| BLAKE2b-256 |
6e82bdb846adae45b5e4b6a2c120050fb312ce0805eeb99d0f11c73fa321089a
|