semvec/pypi-packages huggingface dataset:
savvihub-cli 0.0.4
Command line interface for SavviHub
Requires Python: >=3.8,<4.0

# `savvihub-cli`

Savvihub command line interface

**Usage**:

```console
$ savvi [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--install-completion`: Install completion for the current shell.
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
* `--help`: Show this message and exit.

**Commands**:

* `login`: Login command
* `logout`: Logout command

## `savvi login`

Login command

**Usage**:

```console
$ savvi login [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

## `savvi logout`

Logout command

**Usage**:

```console
$ savvi logout [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.
cowechatapi 0.1.5
A tools for send message to company wechat.
Requires Python: >=3.6
Keywords: wechat cowechat

# cowechatapi
这是一个发送消息到企业微信的接口工具
仅支持在python3环境下执行，支持系统:Linux、windows其他暂未验证
消息类型支持: 文本、图片、声音、视频和文件

## 安装依赖
```shell script
pip install requests
```
## pip安装 ##
```shell script
pip install cowechatapi
```

## 通过调用API接口发送消息
调用企业微信API接口发送消息给指定用户
**文本消息例子:**

```python
from cowechatapi.cowechat_api import CoWechatAPI

bot = CoWechatAPI(coid="your_company_id", secret="your_app_secret",agentid=1000001)
bot.send(to_user="USER_NAME", msg_type="text", content="今天天气好吗?")
```

**文件消息例子:**

```python
from cowechatapi.cowechat_api import CoWechatAPI

bot = CoWechatAPI(coid="your_company_id", secret="your_app_secret",agentid=1000001)
bot.send(to_user="USER_NAME", msg_type="file", media_id="MEDIA_ID")
```

**图片消息例子:**
```python
from cowechatapi.cowechat_api import CoWechatAPI

bot = CoWechatAPI(coid="your_company_id", secret="your_app_secret",agentid=1000001)
bot.send(to_user="USER_NAME", msg_type="image", media_id="MEDIA_ID")
```

## media_id的获取方法是通过API的upload上传临时素材得到的，临时素材有效期为两天。 ##

**上传临时素材例子:**
```python
from cowechatapi.cowechat_api import CoWechatAPI

bot = CoWechatAPI(coid="your_company_id", secret="your_app_secret",agentid=1000001)
bot.upload(filetype="image", fileurl="FILE_PATH")
```

## 通过命令行方式发送消息

**例子:**
```shell script
# 发送文本消息
python3 -m cowechat -i [your_company_id] -s [your_app_secret] -a [your_agentid] -m text -c "content" --user [USER_NAME]
# 发送图片消息
python3 -m cowechat -i [your_company_id] -s [your_app_secret] -a [your_agentid] -m image --media [media_id] --user [USER_NAME]
```