Skip to main content

A Python implementation of a Code Property Graph.

Project description

Code Property Graph

Github Stars GitHub release (latest SemVer) Maintenance

Code Property Graph Logo

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


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.6.tar.gz (42.3 kB view details)

Uploaded Source

Built Distribution

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

codepropertygraph-0.0.6-py2-none-any.whl (7.4 kB view details)

Uploaded Python 2

File details

Details for the file codepropertygraph-0.0.6.tar.gz.

File metadata

  • Download URL: codepropertygraph-0.0.6.tar.gz
  • Upload date:
  • Size: 42.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for codepropertygraph-0.0.6.tar.gz
Algorithm Hash digest
SHA256 de637acf4174d49dfc76ac91e15f65a462208d2bd36b58100adc704750c37530
MD5 daf0e1cdb573d7fd5bf613b97f38c204
BLAKE2b-256 7e22f11484e3c2f60fdf8a636e81f0a4849a3e10602bb7f3c5c61b533d14322a

See more details on using hashes here.

File details

Details for the file codepropertygraph-0.0.6-py2-none-any.whl.

File metadata

  • Download URL: codepropertygraph-0.0.6-py2-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for codepropertygraph-0.0.6-py2-none-any.whl
Algorithm Hash digest
SHA256 e59782ab172f4feaf0fbf611668f25ffd27ce43f69a10d0212b621ac1eaa8515
MD5 5d6aa632b9d4693884aee4f0bdeb2c6a
BLAKE2b-256 d14197a2458ce7b1f792e1972ff02e7551755a172f43db59114e3d6f89139a36

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