Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xjtu-enre/enre-py
Entities and dependencies extractor for Python based on Python Language Services of The Standard Library
https://github.com/xjtu-enre/enre-py
Last synced: 5 days ago
JSON representation
Entities and dependencies extractor for Python based on Python Language Services of The Standard Library
- Host: GitHub
- URL: https://github.com/xjtu-enre/enre-py
- Owner: xjtu-enre
- License: lgpl-2.1
- Created: 2021-12-11T05:31:04.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T08:18:46.000Z (over 1 year ago)
- Last Synced: 2024-05-18T03:50:06.225Z (9 months ago)
- Language: Python
- Homepage:
- Size: 16.4 MB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# ENRE-py
ENRE (ENtity Relationship Extractor) is a tool for extraction of code entity dependencies or relationships from source code. The resolved python entity types include:
For more detailed information on python entities and dependencies, see the [doc](./docs) to get definitions and examples.
## Features
- Control flow analysis for python## Supported Language
|Language|Supported Version|
|-|-|
|Python|3.x|## Getting Started
> ENRE-python has been tested to be worked with python3.x.## Usage
Use `-h` or `--help` option to check usable options.
```shell
usage: enre.exe [-h] [--profile] [--cfg] [--compatible] [--builtins BUILTINS] [--cg] [root path]positional arguments:
root path root package pathoptions:
-h, --help show this help message and exit
--profile output consumed time in json format
--cfg run control flow analysis and output module summaries
--compatible output compatible format
--builtins BUILTINS builtins module path
--cg dump call graph in json```
- You can use enre to analyze a python package:
```
enre.exe
```- Analyzing a single python module:
```
enre.exe
```- Use control flow functionality to get more accurate dependency.
```shell
enre.exe --cfg
```- Output call graph when after control flow analysis
```shell
enre.exe --cfg --cg
```## Documentation
Check the [doc](./docs) to get detail about entities and dependencies.
## Building
Use Pyinstaller to build enre into executable binary:
```shell
pyinstaller -F .\enre\__main__.py
```