semvec/pypi-packages huggingface dataset:
klippiesncola 0.1.1
Manage company VoIP call logs, recordings and more
Requires Python: >=3.6
Keywords: voip,team,switchtel,trello

# klippies and cola : Link your team's call logs, recordings and matters

[![PyPI package](https://img.shields.io/badge/pip%20install-klippiesncola-brightgreen)](https://pypi.org/project/klippiesncola/) [![version number](https://img.shields.io/pypi/v/klippiesncola?color=green&label=version)](https://github.com/kearabiloe/klippiesncola/releases) [![Actions Status](https://github.com/kearabiloe/klippiesncola/workflows/Test/badge.svg)](https://github.com/kearabiloe/klippiesncola/actions) [![License](https://img.shields.io/github/license/kearabiloe/klippiesncola)](https://github.com/kearabiloe/klippiesncola/blob/main/LICENSE)

## klippies and cola (Made in South Africa).
Manage your clips and callers with the swiss army knife for your Debt Collection & tracing Call Center.

## Features
- Easily allocate and visualise matters on [Trello](https://trello.com),
- Bulk download call recordings from your [Switchtel](https://switchtel.co.za) VOIP/PBX account.

### 1. Install klippiesncola

Install klippiesncola and run it:

```bash
pip install klippiesncola
```
### 2. Set environment variables
```sh
export SWITCHTEL_USERNAME='changeme'
export SWITCHTEL_PASSWORD='changeme'
export SWITCHTEL_VPBXNAME='changeme'
export SWITCHTEL_VPBXID='changeme'
```
### 3. Import klippiesncola and test switchtel module

```python
import klippiesncola   

recordings = klippiesncola.switchtel.CallRecording() #loads Switchtel using configured  env variables
todays_recordings = recordings.list('2020-08-25') #loads all calls from date.
```
error-emailer 0.1.2
auto emailer

# Emailer

Emailer provides

a decorator to send emails on error instead of raise an error.

Usefull when

1. Code should send out some kind of "alert" without breaking any code
1. Complex error handling isn't needed or isn't a good choice cosidering cost/value

E.g. You are writing an script to do some ETL work for a report for your self or a small group
It need to be reliable but good enough if you know it breaks and fix afterwards


Emails will be constructed as MIMEMultipart contains only simple text.
And sent throught smtp wihtout any authentication, which suitsmost of internal smtp servers.


## Installation

Install with pip

> pip install error-emailer

## Email construct

Email constructed as MIMEMultipart with default

> error_msg_title = 'Error'

> error_msg_content = 'Error occurred'



## Example: Use decorator

    from erroremailer import EmailError

    ee = EmailError(
        from_addr = 'me@example.com',
        to_addr = 'others@example.com',
        smtp_addr = '10.0.0.1@some-smtp.com',
        # set send_email to False for test
        send_email_on_error = False,
        error_msg_title = 'Error occured in my best script"
        error_msg_content = 'Error occured in my best script"
        )
    
    # define a function with deco
    @ee.email_on_error()
    def make_a_error():

        a = 1
        b = '2'
        print(a + b)

        return a

    make_a_error()


## Example: Use send email directly

    from erroremailer import EmailError

    ee = EmailError(
        from_addr = 'me@example.com',
        to_addr = 'others@example.com',
        smtp_addr = '10.0.0.1@some-smtp.com',
        # set send_email to False for test
        send_email_on_error = False,
        error_msg_title = 'Error occured in my best script"
        error_msg_content = 'Error occured in my best script"
        )

    def make_a_error():

        a = 1
        b = '2'
        print(a + b)

        return a


    if __name__ == '__main__':
        
        try:
            make_a_error()
        except:
            ee.send_error_email()
        finally:
            pass
fledgling 0.0.1
Client of nest
Requires Python: >=3.6

# fledgling

管理nest中的任务、计划等数据的客户端程序。

# 特性

`fledgling`提供了与`nest`中大部分的 HTTP 接口对应的命令行子命令，列举如下：

| 功能|fledgling 子命令 | nest 的接口 |
|-|-|-|
|创建任务|create-task|POST /task|
|删除任务|delete-task|DELETE /task/<id_>|
|列出任务|list-task|GET /task|
|创建计划|create-plan|POST /plan|
|删除计划|delete-plan|DELETE /plan/<id_>|
|列出计划|list-plan|GET /plan|
|处理计划|event-loop| POST /plan/pop |

# 安装

<!-- TODO: 补充从 PyPI 中安装 fledgling 的方法。 -->

# 用法

## 帮助文档

可以用命令`fledgling --help`查看 fledgling 提供的所有子命令

```shell
bash-3.2$ fledgling --help
Usage: fledgling [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  change-plan    修改指定计划。
  create-config  创建一份空的配置文件。
  create-plan    为任务创建一个计划。
  create-task    创建一个任务。
  delete-plan    删除指定计划。
  delete-task    删除指定任务及其计划。
  event-loop     启动事件循环拉取计划并弹出提醒。
  list-plan      列出接下来的计划。
  list-task      列出任务。
```

子命令本身也可以接受`--help`参数来打印它的使用说明

```shell
bash-3.2$ fledgling change-plan --help
Usage: fledgling change-plan [OPTIONS]

  修改指定计划。

Options:
  --duration INTEGER
  --location-id INTEGER
  --plan-id INTEGER          [required]
  --repeat-interval INTEGER
  --repeat-type TEXT
  --trigger-time TEXT
  --visible-hours TEXT
  --visible-wdays TEXT
  --help                     Show this message and exit.
```

## 示例

### 创建一个任务，并设定它的提醒时间

```shell
fledgling create-task --brief '测试用的任务'
fledgling create-plan --task-id 69 --trigger-time '2021-08-15 17:40:00'  # 传给选项--task-id的数字69是上一道命令创建的任务的ID
```

### 设定一个每小时提醒一次的任务

```shell
fledgling create-task --brief '喝水'
fledgling create-plan --task-id 3 --trigger-time '2021-08-15 18:20:00' --repeat-type 'hourly'
```