$npx skillfedfor your agent

import-deps

find python module imports

With conditionsPyPI Quality AssuranceReleased Jan 20261.5M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — import_deps-0.5.1-py3-none-any.whl
v0.5.1 · released 2026-01-09 · Python >=3.10

Yes, if you need static import analysis for code quality or architecture review within a single package. The tool is stable (MIT, no vulnerabilities, low install friction) and supports current Python versions. Install with caution if your project depends on frequent updates—maintenance is aging and the last release was 217 days ago, so it may lag behind new Python versions or edge cases.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >=3.10; the package analyzes only imports within a known set of modules you provide, not external dependencies.
  • Low friction install with no runtime dependencies.
  • Maintenance status is aging—last release was 217 days ago and the repository shows minimal recent activity, though it remains archived=false and supports current Python versions (3.10–3.14).

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you may use, modify, and distribute this package freely with minimal restrictions.

last release 2026-01-09 (217 days) · last repo commit 2026-02-07 · 25 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,539,820 downloads/mo, #3,788 on PyPI

Verify before relying

pip install import-deps

# CLI: analyze a package
import_deps foo/ --json

# Library: track imports within a module set
from import_deps import ModuleSet
module_set = ModuleSet(['foo/foo_a.py', 'foo/foo_b.py'])
for imp in module_set.mod_imports('foo.foo_a'):
    print(imp)
  • Whether the aging maintenance status (217 days since last release) affects reliability for new Python versions beyond 3.14.
  • Performance characteristics on large codebases (the fact sheet does not specify scalability limits).
Same gist for agents: .md · .json

What it is and what it does

import_deps is a static import analyzer built on the ast module from the standard library that maps which modules import which other modules within a package, without executing any code. It works as both a CLI tool and a library, letting you discover direct and transitive import relationships, detect patterns like circular dependencies, re-imports, and inner imports, and visualize dependency graphs in DOT format.

The tool is designed for code quality workflows: you give it a set of Python files or a package directory, and it reports what each module imports from the others. It can output results as plain text, JSON, or a dependency graph, and includes checks useful for enforcing import patterns in CI/CD pipelines. It also supports topological sorting to order modules by their dependency depth.

Use it for

  • Detect circular dependencies in a package to identify and refactor problematic import cycles.
  • Enforce import patterns by checking for re-imports or inner imports within a codebase.
  • Visualize internal module dependencies as a graph for documentation or architecture review.
  • Generate a topological sort of modules for build systems or dependency-aware execution order.
  • Run checks in CI/CD pipelines to enforce consistent import style across a package.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need static import analysis for code quality or architecture review within a single package.

The tool is stable (MIT, no vulnerabilities, low install friction) and supports current Python versions. Install with caution if your project depends on frequent updates—maintenance is aging and the last release was 217 days ago, so it may lag behind new Python versions or edge cases.

Install

import-deps on PyPI

Before you install

Low friction install with no runtime dependencies. Maintenance status is aging—last release was 217 days ago and the repository shows minimal recent activity, though it remains archived=false and supports current Python versions (3.10–3.14).

Requires Python >=3.10; the package analyzes only imports within a known set of modules you provide, not external dependencies.

License in practice

MIT license is permissive; you may use, modify, and distribute this package freely with minimal restrictions.

Quickstart

pip install import-deps

# CLI: analyze a package
import_deps foo/ --json

# Library: track imports within a module set
from import_deps import ModuleSet
module_set = ModuleSet(['foo/foo_a.py', 'foo/foo_b.py'])
for imp in module_set.mod_imports('foo.foo_a'):
    print(imp)

Verify before relying

  • Whether the aging maintenance status (217 days since last release) affects reliability for new Python versions beyond 3.14.
  • Performance characteristics on large codebases (the fact sheet does not specify scalability limits).

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 217 days since the last release
Last repo commit
First released
Downloads1,539,820 / month, #3,788 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentOperating System :: POSIXProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Quality Assurance

Evidence: import_deps-0.5.1-py3-none-any.whl

Tags

Capabilities
python import analysisstatic code importsmodule dependenciescircular importsast import scannerimport visualizationcode quality checks
Topics
code-qualitystatic-analysis
PyPI keywords
graphimportquality

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “module dependencies”

  • import-depsAnalyzes Python module imports statically using the ast module,…
  • PyQt6-sipPyQt6-sip provides the runtime support module for PyQt6, enabling…
  • lazy-importsDefers loading of module attributes and their dependencies until…

Give your agent the search over MCP, or paste the wish link into any chat.

More Quality Assurance packages

coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
ruff Worth it
PyPI · Python Modules · released Aug 2026

Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.

MITcompiled wheel · 3.7+
316.1Mdownloads / mo
pexpect With conditions
PyPI · Software Development · released Nov 2023

Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.

ISCpure Pythonaging
200.8Mdownloads / mo
black Worth it
PyPI · Python Modules · released May 2026

Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.

MITpure Python · 3.10+
179.9Mdownloads / mo
pytest-xdist Worth it
PyPI · Utilities · released Jul 2025

pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.

Install it if your test suite takes long enough that parallelization would save meaningful time.

MITpure Python · 3.9+
177.1Mdownloads / mo
cfn-lint Worth it
PyPI · Quality Assurance · released Aug 2026

Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.

Install it if you work with CloudFormation templates.

MIT-0pure Python
114.9Mdownloads / mo

See also py-import-cycles · pyan3 · importlab · mo-imports · tach · aspy.refactor-imports · pydeps · pytest-archon · cyclic · modulegraph