Skip to main content

CodeXP (Code Explorer)

Python License: MIT PyPI version Code style: black

A CLI tool to analyze Python packages and visualize their structure and dependencies in the terminal.

Features

  • Package Structure Analysis 📦

    • Identifies entry points
    • Lists all modules in the package
    • Shows top-level symbols and their definitions
  • Dependency Analysis 🔍

    • Maps internal imports between package modules
    • Tracks external package dependencies
    • Shows import locations with source code context
  • Symbol Usage Tracking 🎯

    • Traces both internal and external symbol usage
    • Shows where symbols are defined and used
    • Provides source code context for each usage
  • Flexible Output 📊

    • Rich terminal visualization with syntax highlighting
    • JSON output for programmatic analysis

Installation

pip install codexp

Usage

codexp <source_directory> [options]

Arguments:
  source_directory    Directory containing source code to analyze

Options:
  --no-line-info, -n    Hide file and line information
  --json, -j           Output results in JSON format
  --help               Show help message and exit

Examples

# Analyze current directory with visual output
codexp .

# Analyze without line information
codexp ./my_package --no-line-info

# Get JSON output for programmatic use
codexp ./my_package --json > analysis.json

The default output provides a rich terminal visualization with syntax highlighting and tree-style formatting. For programmatic analysis, use the --json flag to get structured data output.

License

MIT License - see the LICENSE file for details.

Metadata

Release files for codexp 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 codexp 0.1.0
File Size Uploaded
codexp-0.1.0.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for codexp 0.1.0
File Interpreter ABI Platform
codexp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.5 kB

Release files / codexp-0.1.0.tar.gz

Download URL codexp-0.1.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
42cb06fb939fd45f5bc663166212e15c2a275048f3e45ea4ec74685d07285538
BLAKE2b-256 checksum
How to use checksums
834bed64474f767f139e72cd046d155b64341475c7eedda52dbc9e9e32e39e02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.0

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

Download URL codexp-0.1.0-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bc57de04c179e3f2baedb0b205f10267a3993c3b72be8c289a79c1407a486fe
BLAKE2b-256 checksum
How to use checksums
5825395ab39dbf94ff1d9bdcdc8d250242f6c0070ee7f594a4af48f29360406d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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