surfin test
Project description
SURFIN 封装一些通用的方法, 要求python3
测试版本
pypi地址
https://pypi.org/project/test-sf-etl-py3/
依赖
发送图片(必须):需安装wkhtmltopdf,下载地址如下(windows需加入环境变量)
使用案例
示例:钉钉机器人发送消息
# pip install test_sf_etl_py3
from sf_etl_py3 import Bot
# ------ 发送文本 ------
ding_obj = Bot.DingBot()
ding_obj.set_kwargs(url='*机器人的url',sec='机器人的加签')
ding_obj.send_text('需要发送的消息')
# ------ 发送图片(pg数据库查询到的数据, 以图片形式发送) ------
ding_obj = Bot.DingBot()
ding_obj.set_kwargs(url='*机器人的url',
sec='机器人的加签',
access_key_id='*阿里云的oss账号',
access_key_secret='*阿里云的oss账号',
endpoint='阿里云的oss地区, 默认 http://oss-ap-southeast-1.aliyuncs.com',
bucket_name='阿里云的ossbucket_name, 默认 surfin-bigdata'
)
# 参数1: pg数据库配置
# 需要2: 需要执行的sql
ding_obj.send_img_simple({'host': 'xxx', 'port': 8756, 'user': 'xxx', 'password': 'xxx', 'database': 'xxx'},
"select 1 as test;")
版本
0.0.7
测试版本: 功能晚上
0.0.5 ~ 0.0.6
测试版本: 增加数据指标波动监控
0.0.0 ~ 0.0.4
测试版本: 机器人消息
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
test_sf_etl_py3-0.0.8.zip
(21.1 kB
view hashes)
Built Distribution
Close
Hashes for test_sf_etl_py3-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 248c93970b14615a30702c44caf56f2de3dfcc3c171c37565691e3445bd45649 |
|
MD5 | ba6d2266c881513ac3eec214c34b8965 |
|
BLAKE2b-256 | 27e2021027b57b363ef8499832ddbe1d27aacf832d11958bf9ab970acc9d15fa |