Skip to main content

基于Python的懒人包

Project description

lazysdk

介绍

基于Python3的懒人包

软件架构

软件架构说明

  • lazysdk.lazyprocess

    • 多进程控制
  • lazysdk.lazywebhook

    • webhook推送

安装教程

  1. 使用pip安装
  • 普通方式安装
pip3 install lazysdk
  • 使用阿里镜像加速安装
pip3 install lazysdk -i https://mirrors.aliyun.com/pypi/simple

使用说明

  1. 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
)
  1. lazywebhook
  • 目前仅支持企业微信
from lazysdk import lazywebhook
    
lazywebhook.send_text(
    webhook='webhook url'
)

Links

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.23.tar.gz (37.3 kB view details)

Uploaded Source

Built Distribution

lazysdk-0.1.23-py3-none-any.whl (45.6 kB view details)

Uploaded Python 3

File details

Details for the file lazysdk-0.1.23.tar.gz.

File metadata

  • Download URL: lazysdk-0.1.23.tar.gz
  • Upload date:
  • Size: 37.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for lazysdk-0.1.23.tar.gz
Algorithm Hash digest
SHA256 de690e08e5c909edc1645f5d8c2564f6694112dcfaaef335651dcbb439af2b07
MD5 f177ba1ccd1008384d029acda7e3ef1f
BLAKE2b-256 c28bc9873871adf935cbe31f4840c6ab1954844a8cbd8bf846b8cec1417cd0dc

See more details on using hashes here.

Provenance

File details

Details for the file lazysdk-0.1.23-py3-none-any.whl.

File metadata

  • Download URL: lazysdk-0.1.23-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

Hashes for lazysdk-0.1.23-py3-none-any.whl
Algorithm Hash digest
SHA256 5ae5f8e1461f4086089df88d9fc91392cd96625dc2a696796b764d9fc916c953
MD5 ce3d308bc0b67485f7064a248ca27ba3
BLAKE2b-256 eff35a66dd43ae95cd6f382e22b1330652e3f69bdc46732da7229b01f7dcebd7

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page