{"id":23087635,"url":"https://github.com/exp-codes/py-heart-locker","last_synced_at":"2025-04-03T16:45:44.845Z","repository":{"id":198033068,"uuid":"697832233","full_name":"EXP-Codes/py-heart-locker","owner":"EXP-Codes","description":"python 进程锁定器，避免同一时间重复执行相同的脚本","archived":false,"fork":false,"pushed_at":"2023-10-03T23:30:28.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-10T10:44:53.777Z","etag":null,"topics":["lock","locker","programming","pypi"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/py-heart-locker/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EXP-Codes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"lyy289065406","patreon":null,"open_collective":null,"ko_fi":"exppoc","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://lyy289065406.github.io/sponsor/"]}},"created_at":"2023-09-28T15:07:02.000Z","updated_at":"2023-10-03T23:33:25.000Z","dependencies_parsed_at":"2023-10-04T05:31:44.628Z","dependency_job_id":null,"html_url":"https://github.com/EXP-Codes/py-heart-locker","commit_stats":null,"previous_names":["exp-codes/py-heart-locker","exp-codes/py-locker"],"tags_count":1,"template":false,"template_full_name":"EXP-Codes/pypi-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EXP-Codes%2Fpy-heart-locker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EXP-Codes%2Fpy-heart-locker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EXP-Codes%2Fpy-heart-locker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EXP-Codes%2Fpy-heart-locker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EXP-Codes","download_url":"https://codeload.github.com/EXP-Codes/py-heart-locker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247043250,"owners_count":20874084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lock","locker","programming","pypi"],"created_at":"2024-12-16T19:59:25.814Z","updated_at":"2025-04-03T16:45:44.820Z","avatar_url":"https://github.com/EXP-Codes.png","language":"Python","readme":"# py-heart-locker\n\n\u003e python 进程锁定器，避免同一时间重复执行相同的脚本\n\n------\n\n## 运行环境\n\n![](https://img.shields.io/badge/Python-3.8%2B-brightgreen.svg)\n\n\n## 使用说明\n\n1. 安装: `python -m pip install py-heart-locker`\n2. 在代码中使用：\n\n```python\nfrom lock import locker\n\ndef main() :\n    if locker.islocked() :\n        return\n    locker.lock()\n\n    core()\n\n\ndef core() :\n    # 业务核心代码\n\n\nif __name__ == '__main__' :\n    main()\n    \n```\n","funding_links":["https://github.com/sponsors/lyy289065406","https://ko-fi.com/exppoc","https://lyy289065406.github.io/sponsor/"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexp-codes%2Fpy-heart-locker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexp-codes%2Fpy-heart-locker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexp-codes%2Fpy-heart-locker/lists"}