Skip to main content

py-heart-locker

python 进程锁定器,避免同一时间重复执行相同的脚本


运行环境

使用说明

  1. 安装: python -m pip install py-heart-locker
  2. 在代码中使用:
from lock import locker

def main() :
    if locker.islocked() :
        return
    locker.lock()

    core()


def core() :
    # 业务核心代码


if __name__ == '__main__' :
    main()
    

Metadata

Release files for py-heart-locker 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-heart-locker 1.1
File Size Uploaded Provenance Actions
py_heart_locker-1.1.tar.gz 9.0 kB Without provenance Details for py_heart_locker-1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-heart-locker 1.1
File Interpreter ABI Platform Actions
py_heart_locker-1.1-py3-none-any.whl Python 3 none any Details for py_heart_locker-1.1-py3-none-any.whl

Total release size: 13.0 kB

Release files / py_heart_locker-1.1.tar.gz

Download URL py_heart_locker-1.1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d600304ff1e50c4338d17f067d61eef5eb2dd76873dd5d9c6f42f26047be767a
BLAKE2b-256 checksum
How to use checksums
60593a433ec5eccd7e6a8f6bb7914f08dcbc0f6212ef2cd7f38bb36b62edc224
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / py_heart_locker-1.1-py3-none-any.whl

Download URL py_heart_locker-1.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98d6a3a5acd93e1d967a08164046dad708dbaa286a851a718bc9c8b592f11f33
BLAKE2b-256 checksum
How to use checksums
b50c21123297fb2066b4222a8f0131070cd843d05aa611dbabbe3f49ea1cfaa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for py-heart-locker 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page