{"id":15532237,"url":"https://github.com/mindstorm38/pydld","last_synced_at":"2025-04-11T05:36:57.848Z","repository":{"id":95733425,"uuid":"237220309","full_name":"mindstorm38/pydld","owner":"mindstorm38","description":"Python DeadLock Detector","archived":false,"fork":false,"pushed_at":"2020-09-14T19:29:03.000Z","size":30,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T03:34:56.210Z","etag":null,"topics":["dead-lock","deadlock","deadlock-detection","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mindstorm38.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-30T13:36:16.000Z","updated_at":"2024-01-19T10:27:01.000Z","dependencies_parsed_at":"2023-03-16T03:02:35.106Z","dependency_job_id":null,"html_url":"https://github.com/mindstorm38/pydld","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":"0.17647058823529416","last_synced_commit":"854a414c1ed7cb3732a1e142f2f391a55ce3745c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindstorm38%2Fpydld","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindstorm38%2Fpydld/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindstorm38%2Fpydld/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindstorm38%2Fpydld/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mindstorm38","download_url":"https://codeload.github.com/mindstorm38/pydld/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248349579,"owners_count":21089075,"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":["dead-lock","deadlock","deadlock-detection","python"],"created_at":"2024-10-02T11:29:32.751Z","updated_at":"2025-04-11T05:36:57.836Z","avatar_url":"https://github.com/mindstorm38.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python DeadLock Detector\n\nThis is a utility library for python scripts. It simply hooks into `threading` module and change the `Lock` and `RLock` functions to return a custom object that can be automatically checked by a separate thread.\n\n## Usage\n\nTo work efficiently on all your modules you have to init hook and start the thread at the very beginning of your main script.\n\nYou can check out the `deadlock_test.py` example file to understand where import is needed.\n\nThe custom `Lock` and `RLock` function have an optional parameter `name`, it is usefull to recognize the lock faster if deadlock is detected.\n\nIn addition to that, the module `init_hook` function has an optional parameter `only_named` that force use the default behaviour of `Lock` and `RLock` functions if parameter `name` is not specified. It can be usefull if you want to profile only specific locks..","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindstorm38%2Fpydld","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindstorm38%2Fpydld","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindstorm38%2Fpydld/lists"}