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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lazysdk-0.2.23-py3-none-any.whl (76.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lazysdk-0.2.23.tar.gz
  • Upload date:
  • Size: 62.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for lazysdk-0.2.23.tar.gz
Algorithm Hash digest
SHA256 4b6b1f0249f29fb95e30a52e331939babd670a1b0ec8578a57562cf0f2ef06d0
MD5 07d2a2e30cc07987a8bd419ba583c179
BLAKE2b-256 e46314e3362ad691392bb6bc67a66592e6be66d4be45623195efee1204502734

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lazysdk-0.2.23-py3-none-any.whl
  • Upload date:
  • Size: 76.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for lazysdk-0.2.23-py3-none-any.whl
Algorithm Hash digest
SHA256 f770ed1c888ff437f7d47c5e90d3dec951e04d86e3a2fb1522e0ad9888be0ecc
MD5 8bdd2d31ee34d998576b85b1721e2211
BLAKE2b-256 7058daba0c4dda7c0b303815e196359def4ece9bd53d28789bcb31f1acf7f65b

See more details on using hashes here.

Supported by

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