{"id":17928478,"url":"https://github.com/hartwork/import-watch","last_synced_at":"2025-09-18T16:30:32.576Z","repository":{"id":43291480,"uuid":"182459816","full_name":"hartwork/import-watch","owner":"hartwork","description":"Trace module imports and detect/deny cyclic imports at runtime","archived":false,"fork":false,"pushed_at":"2022-03-09T17:51:10.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-29T22:36:48.132Z","etag":null,"topics":["development","library","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/import-watch/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hartwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-20T22:22:26.000Z","updated_at":"2022-03-09T17:48:03.000Z","dependencies_parsed_at":"2022-07-22T05:32:16.012Z","dependency_job_id":null,"html_url":"https://github.com/hartwork/import-watch","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fimport-watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fimport-watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fimport-watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fimport-watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hartwork","download_url":"https://codeload.github.com/hartwork/import-watch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233496587,"owners_count":18684942,"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":["development","library","python"],"created_at":"2024-10-28T21:03:21.161Z","updated_at":"2025-09-18T16:30:31.940Z","avatar_url":"https://github.com/hartwork.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome!\n\n**import-watch** allows to\ntrace module imports\nand\ndetect/deny cyclic imports\n*at runtime*\nwith Python 2 and 3.\nIt is licensed under the MIT license.\n\nEnjoy!\n\n\n# Installation\n```console\n# pip install import-watch\n```\n\n\n# Usage\n\n## Trace imports\n```python\nimport import_watch\nimport_watch.trace_imports(depth=2)  # default depth is unlimited\n```\n\n## Detect and warn about cyclic imports (at runtime)\n```python\nimport import_watch\nimport_watch.warn_about_cyclic_imports()\n```\n\n## Deny cyclic imports (at runtime)\n```python\nimport import_watch\nimport_watch.deny_cyclic_imports()\n```\n\n## Start fresh\n```python\nimport import_watch\n[..]\nimport_watch.reset()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartwork%2Fimport-watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhartwork%2Fimport-watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartwork%2Fimport-watch/lists"}