基于Python的懒人包
Project description
lazysdk
介绍
基于Python3的懒人包 详细文档见:https://gzcaxecc4u.feishu.cn/docx/EaymdTdIQolphcxgD2jcMsjJn6c
软件架构
软件架构说明
-
lazysdk.lazyprocess
- 多进程控制
-
lazysdk.lazywebhook
- webhook推送
安装教程
- 使用pip安装
- 普通方式安装
pip3 install lazysdk
- 使用阿里镜像加速安装
pip3 install lazysdk -i https://mirrors.aliyun.com/pypi/simple
使用说明
- lazyprocess
import lazysdk
task_list = [1,2,3,4,5,6,7,8]
def process_task(
task_index,
task_info
):
print(f'task_index:{task_index}, task_info:{task_info}')
lazysdk.lazyprocess.run(
task_list=task_list,
task_function=process_task,
subprocess_limit=2
)
- lazywebhook
- 目前仅支持企业微信
from lazysdk import lazywebhook
lazywebhook.send_text(
webhook='webhook url'
)
Links
- PyPI Releases: https://pypi.org/project/lazysdk/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lazysdk-0.1.83.tar.gz
(51.7 kB
view details)
Built Distribution
lazysdk-0.1.83-py3-none-any.whl
(61.9 kB
view details)
File details
Details for the file lazysdk-0.1.83.tar.gz
.
File metadata
- Download URL: lazysdk-0.1.83.tar.gz
- Upload date:
- Size: 51.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2c00cdffe5f47f7f85b95205b702f20f9867cd78bb87ab74d2174756c942c29 |
|
MD5 | e17073b973919c0ad8cb265e87f8a534 |
|
BLAKE2b-256 | fa0d67b9e4874197b6b51cb6c85df68c6ca8fac1803a0d588a02dae951ec989c |
Provenance
File details
Details for the file lazysdk-0.1.83-py3-none-any.whl
.
File metadata
- Download URL: lazysdk-0.1.83-py3-none-any.whl
- Upload date:
- Size: 61.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee8ad97fee8ca4c5612a23c8d0da14684c3596a9bd94dbf7d19ece523185c5ef |
|
MD5 | 86c52e16dfae2536f3ed7ecf0da0da02 |
|
BLAKE2b-256 | 81e8949114a377c9c298840b3b9e16b636f8ac6b66bf8faf6d28596ae89d7e82 |