AbsaOSS / AbsaOSS/spline-python-agent

Recursive source code inspection

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

The source code inspector should run recursively and inspect all called functions, including ones from other modules.
The result of the inspection should be a DAG where node represent functions (with their source code) and edges represent invocations.
The resulted DAG should be serialised as a plain pseudo python file in the format, and included into the `source_code` property of the `python_function` operation:
```python
$The_source_code_of_the_root_function_fn_here

### ==============================================
### module: AAA
### ==============================================

from BBB import xxx

### func: f1
def f1():
...
f2()
...

### func: f2
def f2():
...
xxx()
...

### ==============================================
### module: BBB
### ==============================================

### func: xxx
def xxx():
...
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.