{"id":19364338,"url":"https://github.com/davidfstr/pydeps","last_synced_at":"2025-04-23T14:30:46.728Z","repository":{"id":5272350,"uuid":"6450989","full_name":"davidfstr/pydeps","owner":"davidfstr","description":"Visualizes Python module dependencies.","archived":false,"fork":false,"pushed_at":"2013-02-10T02:45:15.000Z","size":204,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-18T20:05:23.973Z","etag":null,"topics":["code-analysis","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"isteven/angular-multi-select","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidfstr.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":"2012-10-30T02:32:01.000Z","updated_at":"2024-05-08T19:13:23.000Z","dependencies_parsed_at":"2022-09-15T05:04:41.947Z","dependency_job_id":null,"html_url":"https://github.com/davidfstr/pydeps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfstr%2Fpydeps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfstr%2Fpydeps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfstr%2Fpydeps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfstr%2Fpydeps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidfstr","download_url":"https://codeload.github.com/davidfstr/pydeps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250451602,"owners_count":21432852,"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":["code-analysis","python"],"created_at":"2024-11-10T07:37:10.145Z","updated_at":"2025-04-23T14:30:46.455Z","avatar_url":"https://github.com/davidfstr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pydeps\n\nVisualizes dependencies between Python modules.\n\n## Usage\n\nJust run the `pydeps.py` command with a path to a directory containing Python source files.\n\n```\npython pydeps.py ~/Projects/CPM/src output.dot\n```\n\nThe output is a `.dot` file, which can be rendered with [GraphViz].\n\nAnd marvel as your program's modules and their dependencies become visible:\n\n\u003cimg src=\"https://raw.github.com/davidfstr/pydeps/master/docs/sample_output.png\" /\u003e\n\n## Output Notes\n\n* Nodes are Python modules. Edges are `imports` from one module to another.\n* Edge thickness is proportional to the number of imports.\n    * Therefore the thickness approximates the amount of coupling between adjacent modules.\n* Dashed edges (*not depicted*) denote an import that is outside the top-level.\n    * Such imports inside functions are typically used when creating a circular dependency.\n    * Conditional imports at the top level are also displayed in this manner.\n* Yellow modules contain a main function (via the idiom `if __name__ == '__main__':`).\n    * Since modules with main functions are typically standalone programs or commands,\n      it's a good idea to avoid depending on them.\n* System modules are excluded from the graph.\n    * A system module is defined as any module which resides outside the specified source directory.\n\n## Advanced Usage\n\nA small number of command-line options are also supported:\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eOption\u003c/th\u003e\n    \u003cth\u003eDescription\u003c/th\u003e\n    \u003cth\u003eExample\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003e-i, --ignore-modules\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003eComma-separated list of modules to omit from the output graph.\u003c/td\u003e\n    \u003ctd\u003ecrystal.xthreading, crystal.xfutures\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Fun Ideas\n\n* Create an animated history of your program's growth over time:\n    * Write a program that checks out each revision of your program,\n      runs `pydeps.py`, and uses the `dot` tool to generate an image.\n\n## Requirements\n\n* Python 2.7\n    * Earlier versions probably work too, but I haven't tested them.\n* [GraphViz] \u0026mdash; to render the output `.dot` files\n\n\n[GraphViz]: http://www.graphviz.org","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfstr%2Fpydeps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidfstr%2Fpydeps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfstr%2Fpydeps/lists"}