codegraph-python 0.4.1

Python parser plugin for CodeGraph - extracts code entities and relationships from Python source files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Simple Python module for testing basic parsing."""


def greet(name: str) -> str:
    """Greet someone by name."""
    return f"Hello, {name}!"


class Person:
    """A simple person class."""
    
    def __init__(self, name: str, age: int):
        self.name = name
        self.age = age
    
    def introduce(self) -> str:
        """Return introduction string."""
        return f"My name is {self.name} and I am {self.age} years old."