Skip to main content

supports the extraction of entities and their dependencies from systems written in multiple languages, enables the customization of dependencies of interest to the user, and makes implicit dependencies explicit.

Project description

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 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.

usage: enre.exe [-h] [--profile] [--cfg] [--compatible] [--builtins BUILTINS] [--cg] [root path]

positional arguments:
  root path            root package path

options:
  -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 <dir>
  • Analyzing a single python module:
enre.exe <py-file>
  • Use control flow functionality to get more accurate dependency.
enre.exe <dir> --cfg
  • Output call graph when after control flow analysis
enre.exe <dir> --cfg --cg

Documentation

Check the doc to get detail about entities and dependencies.

Building

Use Pyinstaller to build enre into executable binary:

pyinstaller -F .\enre\__main__.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xjtu_enre-0.1.0.tar.gz (47.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xjtu_enre-0.1.0-py3-none-any.whl (58.4 kB view details)

Uploaded Python 3

File details

Details for the file xjtu_enre-0.1.0.tar.gz.

File metadata

  • Download URL: xjtu_enre-0.1.0.tar.gz
  • Upload date:
  • Size: 47.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for xjtu_enre-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5253f338ec2007f020dbe97d5d5e3e1e7ea0ff9aeef8283749faa1c9e7489da0
MD5 fbfe51ad1d9454f3f3abe2cfc10e4726
BLAKE2b-256 c9198268e5a8c153864baf80b8dca6f03e203d6b886c378bae18a887ec31a220

See more details on using hashes here.

File details

Details for the file xjtu_enre-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: xjtu_enre-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 58.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for xjtu_enre-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2326512347534c0368bed246fa02a81fee5c559806581413d2bef8b0e7288970
MD5 2f63ca75a579956e1b9b6b1c52c162ff
BLAKE2b-256 c2c4316582c943eba0ffcd017a4128f4075c4e0f675fa02f91398122c7f8b7c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page