semvec/pypi-packages huggingface dataset:
reporter-su 0.1.1
check your task and when it finished, you will receive a email
License: MIT
Requires Python: >=3.0
Keywords: python,email,pbs

# 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:

```python
git clone git@github.com:ZeroDesigner/reporter_su.git
cd reporter
python setup.py install
```

Option 2:

```python
pip install reporter_su
```

**Usage**

Step 1

```python
# 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

```python
# 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)
```

![Screen Shot 2021-05-21 at 1.06.17 AM](https://gitee.com/zerodesigner/markdown-png/raw/master/uPic/Screen%20Shot%202021-05-21%20at%201.06.17%20AM.png)

#### **License**

MIT

**Email**

luskyqi@outlook.com



-------------



#### **语言**

中文

#### **描述**

自动检查你的任务是否已经完成（在使用PBS调度系统时），同时email提醒，在任务完成之后

#### 依赖

大于 python 3

#### 安装

##### 选项 1：

```python
git clone git@github.com:ZeroDesigner/reporter_su.git
cd reporter
python setup.py install
```

##### 选项 2：

```python
pip install reporter_su
```

#### 用法

##### 步骤 1

```python
# 你需要获取这些信息
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

```python
# 脚本会每隔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)
```

![Screen Shot 2021-05-21 at 1.06.17 AM](https://gitee.com/zerodesigner/markdown-png/raw/master/uPic/Screen%20Shot%202021-05-21%20at%201.06.17%20AM-1530425.png)

####  协议

MIT

#### 邮箱

luskyqi@outlook.com
sdk-timeular-tools 0.1
A python wrapper around the Timeular HTTP API, and some notebooks of questionable usefulness
License: MIT

# sdk-timeular-tools

a completely unofficial timeular python SDK and some simple utilities and notebooks

The Timeular v3 API docs can be found (here)[https://developers.timeular.com/].

## Usage

See the (notebooks)[./notebooks] directory for usage examples.

```
from timeular import timeular

with timeular.TimeularSession(API_KEY, API_SECRET) as ts:
    activities = ts.activities()
    # and so on...
```


### Methods available:

__activities__

```
  def list_activities()
  def update_activity(id, **new_values)
  def archive_activity(id)
```

__devices__

```
  def list_devices()
  def set_active_device(device_id)
  def release_active_device()
  def edit_device_name(device_id, name)
  def forget_device(device_id)
  def disable_device(device_id)
  def enable_device(device_id)
```

__tracking__

```
  def get_current_tracking()
  def start_tracking(id) # no idea what the ID is here.
  def edit_current_tracking(note, activity_id, started_at)
  def stop_tracking()
```

__entries__

```
  def find_entries_in_range(start_dt, stop_dt)
  def create_entry(activity_id, start_dt, stop_dt, note_text)
  def get_entry(entry_id)
  def edit_entry(entry_id, activity_id=None, start_dt=None, stop_dt=None, note_text=None)
  def delete_entry(entry_id)
```

__reports__

```
  def generate_report_csv(start_dt, end_dt, timezone=tzlocal.get_localzone().zone)
  def report_report_json(start_dt, end_dt)
```

__tags and mentions__

```
  def get_tags_and_mentions()
  def create_tag(key, label, scope, space_id)
  def update_tag(tag_id, key=None, label=None, scope=None, space_id=None)
  def delete_tag(tag_id)
  def create_mention(key, label, scope, space_id)
  def update_mention(mention_id, key=None, label=None, scope=None, space_id=None)
  def delete_mention(mention_id)
```

__user and group info__

```
  def me()
  def list_spaces()
```

__webhooks__

```
  def list_webhook_events()
  def subscribe(event, target_url)
  def unsubscribe(subscription_id)
  def list_subscriptions()
  def unsubscribe_all()
```