Skip to main content

SURFIN 封装一些通用的方法, 要求python3

测试版本

pypi地址

https://pypi.org/project/test-sf-etl-py3/

依赖

发送图片(必须):需安装wkhtmltopdf,下载地址如下(windows需加入环境变量)

https://wkhtmltopdf.org/downloads.html

使用案例

示例:钉钉机器人发送消息

# pip install test_sf_etl_py3
from sf_etl_py3.bot import DingBot 

# ------ 发送文本 ------
ding_obj = DingBot()
ding_obj.set_kwargs(url='*机器人的url',sec='机器人的加签')
ding_obj.send_text('需要发送的消息')

# ------ 发送图片(pg数据库查询到的数据, 以图片形式发送) ------
ding_obj = 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.9

Test version: kettle xml

Release files for test-sf-etl-py3 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for test-sf-etl-py3 0.0.11
File Size Uploaded
test_sf_etl_py3-0.0.11.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for test-sf-etl-py3 0.0.11
File Interpreter ABI Platform
test_sf_etl_py3-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 24.5 kB

Release files / test_sf_etl_py3-0.0.11.tar.gz

Download URL test_sf_etl_py3-0.0.11.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
acaa2b46f53d84260864edf62f67dc03cb53dc232e8c389f9924341dc9523421
BLAKE2b-256 checksum
How to use checksums
e277ccf0fd4d84c0c5a892482e5c6ed018ca6708a8077fb8b7dd819d02e16531
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.13

Release files / test_sf_etl_py3-0.0.11-py3-none-any.whl

Download URL test_sf_etl_py3-0.0.11-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d28023a1c7e40cf94b83d8e5c392cb8d024745da0bf083a825619c6fd1b4c9a1
BLAKE2b-256 checksum
How to use checksums
68ed4339c3dbf5669131c877c970e2ccb7798be778d87a570bf8eef7fb229199
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.13

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page