Skip to main content

A python Function / Method delay executing system base on function Decorators.

Project description

A python Function / Method delay executing system base on function Decorators.

Auto delay the Function execution for a certain period time. The new function will replace the older one and reset the countdown of the delay time.

GitHub: https://github.com/bazookapb/delay_decorator.git

特点

  • 兼容各种版本的python,包括python2和python3的个版本;

  • 使用方便:一个装饰器放到方法的头部即可延时执行该方法;

  • MIT 授权协议;

安装说明

代码对 Python 2/3 均兼容

  1. 全自动安装: easy_install delay_decorator 或者 pip install delay_decorator / pip3 install delay_decorator

  2. 半自动安装:先下载 https://pypi.python.org/pypi/wrapcache/ ,解压后运行 python setup.py install

  3. 手动安装:将 delay_decorator 目录放置于当前目录或者 site-packages 目录

通过 import delay_decorator 来引用

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

delay_decorator-1.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

delay_decorator-1.0.1-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file delay_decorator-1.0.1.tar.gz.

File metadata

File hashes

Hashes for delay_decorator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 905986d6b072d67c22fc79a4323adf4261239c5315d204a0578c6088e5f1c763
MD5 a30ee16ab1a89d19c9f35f289d06019f
BLAKE2b-256 db6acf0a88c94fae47aa86f664f0def62892c8303c093d564f9ad5f9d9bc61de

See more details on using hashes here.

File details

Details for the file delay_decorator-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for delay_decorator-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 700f9a05470588a0bc2d71d9a8aefda025fa871e0ea9e994d47447a649e93a44
MD5 9f0f29d9ccbf8489c70a79b5ea3e2eef
BLAKE2b-256 426a282bf38d6709c733fcd950a7a4050507380af7d1a5a29db3249e6a3613ed

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