{"id":34079825,"url":"https://github.com/gu321/single_process","last_synced_at":"2026-03-09T16:02:46.609Z","repository":{"id":57467853,"uuid":"100915509","full_name":"gu321/single_process","owner":"gu321","description":"Limit python script just run a single process, support python3","archived":false,"fork":false,"pushed_at":"2017-08-21T07:13:38.000Z","size":25,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-16T13:09:33.810Z","etag":null,"topics":["singleton"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gu321.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-21T05:25:42.000Z","updated_at":"2022-07-26T00:14:14.000Z","dependencies_parsed_at":"2022-09-19T09:01:49.525Z","dependency_job_id":null,"html_url":"https://github.com/gu321/single_process","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gu321/single_process","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gu321%2Fsingle_process","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gu321%2Fsingle_process/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gu321%2Fsingle_process/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gu321%2Fsingle_process/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gu321","download_url":"https://codeload.github.com/gu321/single_process/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gu321%2Fsingle_process/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30301521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["singleton"],"created_at":"2025-12-14T11:03:07.225Z","updated_at":"2026-03-09T16:02:46.566Z","avatar_url":"https://github.com/gu321.png","language":"Python","readme":"README\n=============\n\nSETUP\n-------------\n\n:: \n\n    pip install -U single_process\n\n\nUSE\n-------------\n\nLimit python script just run a single process, support python3\n\nUse only need to directly import single_process.init module (no need for any function call)\n\n::\n\n    import single_process.init\n\n\nOf course, you can also manually call the single_process function\n\n::\n\n    from single_process import single_process\n\n    single_process()\n\n    def main():\n        from time import sleep\n        sleep(6000)\n\n    if __name__ == \"__main__\":\n        main()\n\n中文说明\n=============\n\n安装\n-------------\n\n:: \n\n    pip install -U single_process\n\n\n使用\n-------------\n\n限制一个python脚本只运行一个进程，支持python3\n使用只需要直接 import single_process.init 模块(不需要任何函数调用)\n\n::\n    \n    import single_process.init\n\n当然，你也可以手工调用 single_process 函数\n\n::\n\n    from single_process import single_process\n\n    single_process()\n\n    def main():\n        from time import sleep\n        sleep(6000)\n\n    if __name__ == \"__main__\":\n        main()\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgu321%2Fsingle_process","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgu321%2Fsingle_process","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgu321%2Fsingle_process/lists"}