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 import CPG
code_cpg = CPG('C:\Users\Gacoka\Projects\portfolio')
code_cpg.files.count
code_cpg.files.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.8.tar.gz
(42.4 kB
view hashes)
Built Distribution
Close
Hashes for codepropertygraph-0.0.8-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6592c81d16cd4757c7a5df6395b77388d284c0f174f00c02d90740ca85c50877 |
|
MD5 | 7df0bc4188d48e2d3c6dafb446820b32 |
|
BLAKE2b-256 | 3dad4994999893db6d42d12f97618f35506ee1871506262b6363a60a42ae4d41 |