{"id":16544489,"url":"https://github.com/steinitzu/snakefood-python3","last_synced_at":"2025-07-12T05:09:07.416Z","repository":{"id":145996082,"uuid":"132950226","full_name":"steinitzu/snakefood-python3","owner":"steinitzu","description":"Fork of https://bitbucket.org/letmaik/snakefood/src/python3-via-six/","archived":false,"fork":false,"pushed_at":"2018-05-10T20:24:26.000Z","size":2157,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T19:04:31.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steinitzu.png","metadata":{"files":{"readme":"README","changelog":"CHANGES","contributing":null,"funding":null,"license":"COPYING","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":"2018-05-10T20:19:49.000Z","updated_at":"2018-05-10T20:24:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9b90cce-37b5-474e-809c-c0698a32d6b2","html_url":"https://github.com/steinitzu/snakefood-python3","commit_stats":{"total_commits":277,"total_committers":6,"mean_commits":"46.166666666666664","dds":0.2707581227436823,"last_synced_commit":"9105813fbca6e476371bc2ba232d8c62ad95754f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/steinitzu/snakefood-python3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steinitzu%2Fsnakefood-python3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steinitzu%2Fsnakefood-python3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steinitzu%2Fsnakefood-python3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steinitzu%2Fsnakefood-python3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steinitzu","download_url":"https://codeload.github.com/steinitzu/snakefood-python3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steinitzu%2Fsnakefood-python3/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261348269,"owners_count":23145305,"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":[],"created_at":"2024-10-11T19:02:58.443Z","updated_at":"2025-06-22T19:05:49.886Z","avatar_url":"https://github.com/steinitzu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=========================================\n   snakefood: Python Dependency Graphs\n=========================================\n\n.. contents::\n..\n    1  Description\n      1.1  Tools Included\n    2  Dependencies\n    3  Documentation\n    4  Download\n    5  Copyright and License\n    6  Author\n\nDescription\n===========\n\nGenerate dependency graphs from Python code.  This dependency tracker\npackage has a few distinguishing characteristics:\n\n- It uses the AST to parse the Python files. This is **very\n  reliable**, it always runs.\n\n- **No module is loaded**. Loading modules to figure out dependencies\n  is almost always problem, because a lot of codebases run\n  initialization code in the global namespace, which often requires\n  additional setup. Snakefood is guaranteed not to have this problem\n  (it just runs, no matter what).\n\n- It works on a set of files, i.e. you do not have to specify a single\n  script, you can select a directory (package or else) or a set of\n  files.  It finds all the Python files recursively automatically.\n\n- **Automatic/no configuration**: your PYTHONPATH is automatically\n  adjusted to include the required package roots. It figures out the\n  paths that are required from the files/directories given as input.\n  You should not have to setup ANYTHING.\n\n- It does not have to automatically 'follow' dependencies between\n  modules, i.e. by default it only considers the files and directories\n  you specify on the command-line and their immediate dependencies.\n  It also has an option to automatically include only the dependencies\n  within the packages of the files you specify.\n\n- It follows the UNIX philosophy of **small programs that do one thing\n  well**: it consists of a few simple programs whose outputs you\n  combine via pipes. Graphing dependencies always requires the user to\n  filter and cluster the filenames, so this is appropriate. You can\n  combine it with your favourite tools, grep, sed, etc.\n\nA problem with dependency trackers that run code is that they are\nunreliable, due to the dynamic nature of Python (the presence of\nimports within function calls and __import__ hooks makes it almost\nimpossible to always do the right thing). This script aims at being\nright 99% of the time, and we think that given the trade-offs, 99% is\ngood enough for 99% of the uses.\n\nI fully intend that this program work on all codebases.  It has been\ntested on a number of popular open source codes (see the test\ndirectory).\n\nTools Included\n--------------\n\n#. ``sfood``: \n\n     Given a set of input files or root directories, generate a list\n     of dependencies between the files;\n\n#. ``sfood-graph``: \n\n     Read a list of dependencies and produce a Graphviz dot file.\n     (This file can be run through the Graphviz ``dot`` tool to\n     produce a viewable/printable PDF file);\n\n#. ``sfood-cluster``: \n\n     Read a list of dependencies, a list of file clusters, and output\n     a list of simplified (clustered) dependencies.\n\n#. ``sfood-checker``: \n\n     Analyze the source code with the AST and list unused or\n     redundant imports.\n\n#. ``sfood-imports``: \n\n     Find and list import statements in Python files, regardless of\n     whether they can be imported or not.\n\nSee `full documentation \u003c/snakefood/doc/snakefood-doc.html\u003e`_ for more\ndetails.\n\n\nDependencies\n============\n\n- Python 2.5 or higher.  That's it.\n\n\nDocumentation\n=============\n\n- `CHANGES \u003cCHANGES\u003e`_\n- `TODO \u003cTODO\u003e`_\n\n- `User's Manual \u003c/snakefood/doc/snakefood-doc.html\u003e`_\n- `Example Outputs \u003c/snakefood/doc/examples/\u003e`_\n\n\nDownload\n========\n\nA Mercurial repository can be found at:\n\n  http://hg.furius.ca/public/snakefood/\n\n`Click here for download instructions. \u003c/web-furius/downloading.html\u003e`_\n\n\nLinks\n=====\n\n- `dottoxml\n  \u003chttp://www.mydarc.de/dl9obn/programming/python/dottoxml/\u003e`_, a tool\n  by Dirk Bächle, that converts dot files into yEd inputs, useful for\n  large graphs.\n\nCopyright and License\n=====================\n\nCopyright (C) 2001-2007  Martin Blais.  All Rights Reserved.\n\nThis code is distributed under the `GNU General Public License \u003cCOPYING\u003e`_;\n\n\nAuthor\n======\n\nMartin Blais \u003cblais@furius.ca\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteinitzu%2Fsnakefood-python3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteinitzu%2Fsnakefood-python3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteinitzu%2Fsnakefood-python3/lists"}