Skip to content

turizspace/python-parsing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Parsing with Tree-Sitter

This Rust-based project uses the tree-sitter parser to analyze Python code and generate a graph representation of functions, classes, endpoints, and their relationships.

Features

  • Parses Python files to detect:
    • Functions
    • Classes
    • Endpoints (via decorators like @app.route)
  • Creates a graph of nodes (classes, functions, endpoints) and edges (relationships between them).

Running Tests

To run the tests and see detailed output, use the -- --nocapture flag:

cargo test -- --nocapture

This will display logs, & information about:

  • Classes and functions found in Python files
  • Created endpoints and their relationships

About

Python code parsing using tree-sitter and Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors