基于Python的懒人包
Project description
lazysdk
介绍
基于Python3的懒人包
软件架构
软件架构说明
-
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.19.tar.gz
(37.2 kB
view details)
Built Distribution
lazysdk-0.1.19-py3-none-any.whl
(45.6 kB
view details)
File details
Details for the file lazysdk-0.1.19.tar.gz
.
File metadata
- Download URL: lazysdk-0.1.19.tar.gz
- Upload date:
- Size: 37.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c263877b394e56053f975639fb659f99aad7441b062731c08fff2f4fb01c873 |
|
MD5 | 2cf740147646958ce9da2878b2ef40aa |
|
BLAKE2b-256 | 576d84c5fbc424616d0badb2a415c7120f994300650cf2800c14a1917d84eee4 |
Provenance
File details
Details for the file lazysdk-0.1.19-py3-none-any.whl
.
File metadata
- Download URL: lazysdk-0.1.19-py3-none-any.whl
- Upload date:
- Size: 45.6 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 | 06cfa9cc9c9055f0ffb6a5d7c8f7bc9b7fc32ba46d7adca615a0cba8d5368017 |
|
MD5 | 638dc1ad993f648cb8dcd96deadbbea3 |
|
BLAKE2b-256 | 1d422b6f0485a739d39713bcf2895aabda1d79f994b2b7870bad0cdf99a60bc1 |