Skip to main content

A CLI tool for analyzing Java class dependencies using javap.

Project description

Java Dependency Viewer

A command-line tool for analyzing and visualizing Java class dependencies using javap.

Installation

pip install java-dependency-viewer

Usage

Basic command format:

jdv [class_dir] [output_dir] [options]

Arguments:

  • class_dir: Directory containing Java class files to analyze (required)
  • output_dir: Directory to output the analysis results (optional, default: output)

Options:

  • --preview: Generate HTML visualization preview
  • --gexf: Export graph in GEXF format

Examples:

# Basic usage (creates data.json in output/)
jdv path/to/classes

# Specify output directory
jdv path/to/classes output/

# Generate GEXF file
jdv path/to/classes --gexf

# Generate HTML preview
jdv path/to/classes --preview

# All options
jdv path/to/classes output/ --preview --gexf

Output Files

  • data.json: Graph data in JSON format (always created)
  • data.gexf: Graph data in GEXF format (created with --gexf)
  • graph.html: Interactive visualization (created with --preview)

Requirements

  • Python 3.6+
  • Java Development Kit (JDK) with javap command available
  • NetworkX 2.5+

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

java_dependency_viewer-0.1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

java_dependency_viewer-0.1.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file java_dependency_viewer-0.1.0.tar.gz.

File metadata

  • Download URL: java_dependency_viewer-0.1.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for java_dependency_viewer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e6f891850a795e08ac969d410b510071af68ffb7a975dcfa4767178270fd7ce8
MD5 0b1c47093758016c9aa780fcf948b89d
BLAKE2b-256 3a078c78fe7884c8e018eea34ae8088258f6530ac6a2e2e8332bf678bc05da8f

See more details on using hashes here.

File details

Details for the file java_dependency_viewer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for java_dependency_viewer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7d9bc2328583761e308a826a172a0e416804baa548e3ae9e510b53734987e7c
MD5 81a55f8a57797258fb449ef9790098b2
BLAKE2b-256 12a296b974c379827df3311f896e69ecb25aeb10b19eb1b07a167638b6020996

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page