Skip to main content

基于Python的懒人包

Project description

lazysdk

介绍

基于Python3的懒人包 详细文档见:https://gzcaxecc4u.feishu.cn/docx/EaymdTdIQolphcxgD2jcMsjJn6c

软件架构

软件架构说明

  • 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.87.tar.gz (52.4 kB view details)

Uploaded Source

Built Distribution

lazysdk-0.1.87-py3-none-any.whl (63.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lazysdk-0.1.87.tar.gz
  • Upload date:
  • Size: 52.4 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.87.tar.gz
Algorithm Hash digest
SHA256 189499578e29df1f7e0403d79626201a479e857c80fe95265fee9cdfa3aa95a1
MD5 646a1a2b78e844e76bb73ab8a912e700
BLAKE2b-256 a666a723c2a6bdf61dffba4d806f595aa4a26b74fdc3a8ccf0e96b401767f92e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: lazysdk-0.1.87-py3-none-any.whl
  • Upload date:
  • Size: 63.2 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.87-py3-none-any.whl
Algorithm Hash digest
SHA256 32c43eb2f4726718155f92a552232e989c5f3eaa0e5fe642cad82e33d4da3dd7
MD5 0894a46457163e9111febd06e9490f75
BLAKE2b-256 ab69095f6a2b641ffb19425b85c9f306a43bfeffc250784464b5d8aa8d422faa

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