A Python implementation of a Code Property Graph.
Project description
Code Property Graph
This library is an implementation of a Code Property Graph as seen in the paper published by Fabian Yamaguchi on Modeling and Discovering Vulnerabilities with Code Property Graphs
A code property graph is a highly efficient data structure designed to mine large codebases for similar programming patterns. The data structure can be loaded into a graph database where properties of code can be queried. Code property graphs are intended to be code-agnostic and highly scalable making it one of the best choices for code representation.
Installation
pip install codepropertygraph
Usage
from codepropertygraph.core import CPG
code_cpg = CPG('C:/Users/Gacoka/python_project/')
code_cpg.files.count
code_cpg.files.l
code.cpg.methods.l
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
codepropertygraph-0.0.3.tar.gz
(11.8 kB
view hashes)