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

Uploaded Source

Built Distribution

lazysdk-0.1.73-py3-none-any.whl (56.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lazysdk-0.1.73.tar.gz
  • Upload date:
  • Size: 46.5 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.73.tar.gz
Algorithm Hash digest
SHA256 445a472eb4d309f9dcf25c5d954035e7a51dfc85881a4c403b2a0c8329d76646
MD5 1013a5d6c22d41174764d8659855f202
BLAKE2b-256 ceca5ddb6fd11d05af46c856880cd8fd7acb5559a804b8fd6dcb26cf0d67814d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: lazysdk-0.1.73-py3-none-any.whl
  • Upload date:
  • Size: 56.3 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.73-py3-none-any.whl
Algorithm Hash digest
SHA256 e7c681e62546f9e01860300ce36e65661eaa28fc74cc5e112bfaf0a4ff93bc32
MD5 2cf0609367464d4d8fff1a57040109ba
BLAKE2b-256 ce37ff0d06b8268f05173f2b5f0f152af04445db3285b5f7830409df5b6d2047

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