Skip to main content

Code Change Impact Analyzer

A Python package and CLI that predicts which Python modules are impacted when a file changes.

What it does

Given a changed file (for example auth/login.py), the analyzer:

  1. Parses project files.
  2. Detects function definitions.
  3. Builds import and call dependency graphs.
  4. Maps function usage across modules.
  5. Shows impacted modules.

Why engineers use it

  • Understand blast radius before merging changes.
  • Speed up code reviews in large codebases.
  • Decide where to add or run tests.

Installation

pip install code-change-impact-analyzer

For local development:

pip install -e .[dev]

CLI Usage

impact-analyzer --root . --changed auth/login.py

Options:

  • --root: project root directory to analyze (default: current directory)
  • --changed: changed file path relative to root (required)
  • --json: print JSON output

Example Output

Editing: auth/login.py
Impacted modules:
- api/routes.py
- user/service.py
- tests/test_login.py

How it works

The tool performs static analysis over Python source files:

  • Collects module imports (import x, from x import y)
  • Collects function definitions per module
  • Collects function calls per module
  • Builds reverse dependency graph to find modules depending on the changed module
  • Expands impact by function-level usage signals

Limitations

  • Dynamic imports and metaprogramming are not fully resolved.
  • Runtime dispatch and monkey patching are not modeled.
  • Best for conventional Python codebases.

Metadata

Release files for code-change-impact-analyzer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for code-change-impact-analyzer 0.1.0
File Size Uploaded Provenance Actions
code_change_impact_analyzer-0.1.0.tar.gz 6.3 kB Without provenance Details for code_change_impact_analyzer-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for code-change-impact-analyzer 0.1.0
File Interpreter ABI Platform Actions
code_change_impact_analyzer-0.1.0-py3-none-any.whl Python 3 none any Details for code_change_impact_analyzer-0.1.0-py3-none-any.whl

Total release size: 13.9 kB

Release files / code_change_impact_analyzer-0.1.0.tar.gz

Download URL code_change_impact_analyzer-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0671cbbdeb33bdb8487492ed5aa803cef25797d6ebba58c818521ec12f052b4b
BLAKE2b-256 checksum
How to use checksums
3db07824b70fa12113ec613f841dbba1f42e0ff69686eb410125228a79d1ddcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / code_change_impact_analyzer-0.1.0-py3-none-any.whl

Download URL code_change_impact_analyzer-0.1.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e07ea821dffdc709f0f52cf9c38a3d1c9eae93e4d84762593ad567e5eaabbd95
BLAKE2b-256 checksum
How to use checksums
42704d2b0d0ec38df66fd5a47dc109ba8613ab6abe91fce63c0185209566d7d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for code-change-impact-analyzer 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page