基于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.102.tar.gz
(53.4 kB
view details)
Built Distribution
lazysdk-0.1.102-py3-none-any.whl
(64.5 kB
view details)
File details
Details for the file lazysdk-0.1.102.tar.gz
.
File metadata
- Download URL: lazysdk-0.1.102.tar.gz
- Upload date:
- Size: 53.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4815e2cf5083d26e67921feec99ce1f960243ac6935aafd87064c7cba7d38b47 |
|
MD5 | fda15229d59790928932526f26986e43 |
|
BLAKE2b-256 | e136e723746a73f784ef0783dfbce925357dec829e8dd434031b45920420e080 |
Provenance
File details
Details for the file lazysdk-0.1.102-py3-none-any.whl
.
File metadata
- Download URL: lazysdk-0.1.102-py3-none-any.whl
- Upload date:
- Size: 64.5 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 | 7faa85bf8fe3ad96a23a14f6c4ef6ae66be995262c215a8f35eef05bc5145041 |
|
MD5 | c66b754e4461b449ce380aada44dd068 |
|
BLAKE2b-256 | fc60370252010c5f2cb9f3ac8a509ffc8a383f15d6545879a0068e5767180526 |