
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
A Python package for parsing and analyzing code dependency graphs.
pip install dg-parser
git clone https://github.com/nmd2k/DG-parser.git
cd DG-parser
pip install -e .
The package provides a convenient CLI for quick analysis:
dp-parser analyze tests/test_data/sample_project
>>> Analyzing project: tests/test_data/sample_project
Function Signature: validate_input
Dependencies:
Calls: from utils import validate_input, transform_data
Parameters: ['data']
----------------------------------------------------------------------------------------------------
Function Signature: transform_data
Dependencies:
Calls: from utils import validate_input, transform_data
Parameters: ['data']
----------------------------------------------------------------------------------------------------
Function Signature: ValueError
Dependencies:
Calls: ValueError
Parameters: []
----------------------------------------------------------------------------------------------------
Function Signature: process_data
Dependencies:
transform_data
ValueError
validate_input
Calls: def process_data(data):
Parameters: ['data']
----------------------------------------------------------------------------------------------------
Dependency graph saved to: output/sample_project_graph.pkl
from dp_graph import PythonParser
# Create a dependency graph instance
parser = PythonParser()
# Parse a Python project
graph = parser.parse("/path/to/project")
# Get all dependencies
for node in graph.nodes.values():
print("\tFunction Signature:", node.signature)
print("\tDependencies:")
for dep in node.dependencies:
print(f"\t\t{dep.signature}")
print("\tCalls:", node.code.split("\n")[0])
print("\tParameters:", node.parameters)
print("-" * 100)
# Export the graph
# Comming soon
MIT License
FAQs
A package for parsing and analyzing code dependency graphs
We found that dp-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.