{"id":13771576,"url":"https://github.com/google/importlab","last_synced_at":"2025-05-11T04:30:47.297Z","repository":{"id":39614605,"uuid":"123326542","full_name":"google/importlab","owner":"google","description":"A library that automatically infers dependencies for Python files","archived":false,"fork":false,"pushed_at":"2024-05-03T08:56:10.000Z","size":203,"stargazers_count":172,"open_issues_count":11,"forks_count":24,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-04-19T11:17:21.524Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","contributing":"CONTRIBUTING.md","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":"2018-02-28T18:40:33.000Z","updated_at":"2025-02-13T10:23:03.000Z","dependencies_parsed_at":"2024-01-12T21:19:54.633Z","dependency_job_id":"308cfc3f-bcda-4746-a10f-1c5b6f6be056","html_url":"https://github.com/google/importlab","commit_stats":{"total_commits":142,"total_committers":12,"mean_commits":"11.833333333333334","dds":"0.35915492957746475","last_synced_commit":"4e734df01295dd0dbe7ff63c8e93ba7a22fd8709"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fimportlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fimportlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fimportlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fimportlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","download_url":"https://codeload.github.com/google/importlab/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253518941,"owners_count":21921074,"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-08-03T17:00:52.986Z","updated_at":"2025-05-11T04:30:46.949Z","avatar_url":"https://github.com/google.png","language":"Python","funding_links":[],"categories":["Libraries and refactoring","Tools"],"sub_categories":[],"readme":"importlab\n---------\n\nImportlab is a library for Python that automatically infers dependencies\nand calculates a dependency graph. It can perform dependency ordering of\na set of files, including cycle detection.\n\nImportlab's main use case is to work with static analysis tools that\nprocess one file at a time, ensuring that a file's dependencies are\nanalysed before it is.\n\n(This is not an official Google product.)\n\nLicense\n-------\n\nApache 2.0\n\nInstallation\n------------\n\nImportlab can be installed from pip\n\n::\n\n    pip install importlab\n\nTo check out and install the latest source code\n\n::\n\n    git clone https://github.com/google/importlab.git\n    cd importlab\n    python setup.py install\n\nUsage\n-----\n\nImportlab is primarily intended to be used as a library. It takes one or\nmore python files as arguments, and generates an import graph, typically\nused to process files in dependency order.\n\nIt is currently integrated into\n`pytype \u003chttps://github.com/google/pytype\u003e`__\n\nCommand-line tool\n-----------------\n\nImportlab ships with a small command-line tool, also called\n``importlab``, which can display some information about a project's\nimport graph.\n\n::\n\n    usage: importlab [-h] [--tree] [--unresolved] [filename [filename ...]]\n\n    positional arguments:\n      filename              input file(s)\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      --tree                Display import tree.\n      --unresolved          Display unresolved dependencies.\n\nRoadmap\n-------\n\n-  ``Makefile`` generation, to take advantage of ``make``'s incremental\n   update and parallel execution features\n\n-  Integration with other static analysis tools\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fimportlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle%2Fimportlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fimportlab/lists"}