codepropertygraph-0.0.8
توضیحات
A Python implementation of a Code Property Graph.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | codepropertygraph-0.0.8 |
| نام | codepropertygraph |
| نسخه کتابخانه | 0.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gacoka Mbui |
| ایمیل نویسنده | <markgacoka@gmail.com> |
| آدرس صفحه اصلی | https://github.com/markgacoka/codepropertygraph |
| آدرس اینترنتی | https://pypi.org/project/codepropertygraph/ |
| مجوز | Apache License 2.0 |
## Code Property Graph
<div style="width: 100%; text-align:center">
<a href="https://github.com/markgacoka/codepropertygraph/blob/main/LICENSE" alt="License"><img src="https://img.shields.io/github/license/markgacoka/codepropertygraph?style=flat-square" /></a>
<a href="https://github.com/markgacoka/codepropertygraph/pulse" alt="Stars"><img alt="Github Stars" src="https://img.shields.io/github/stars/markgacoka/codepropertygraph?style=flat-square" alt="Stars"></a>
<a href="https://github.com/markgacoka/codepropertygraph/releases" alt="Release"><img alt="GitHub release (latest SemVer)" src="https://img.shields.io/github/v/release/markgacoka/codepropertygraph?style=flat-square"></a>
<a href="https://github.com/markgacoka/codepropertygraph/graphs/contributors" alt="Maintained"><img alt="Maintenance" src="https://img.shields.io/maintenance/yes/2022?style=flat-square"></a>
</div>

This library is an implementation of a Code Property Graph as seen in the paper published by [Fabian Yamaguchi](https://fabianyamaguchi.com/) on *Modeling and Discovering Vulnerabilities with [Code Property Graphs](https://www.sec.cs.tu-bs.de/pubs/2014-ieeesp.pdf)*
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
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.0 | Python |
نحوه نصب
نصب پکیج whl codepropertygraph-0.0.8:
pip install codepropertygraph-0.0.8.whl
نصب پکیج tar.gz codepropertygraph-0.0.8:
pip install codepropertygraph-0.0.8.tar.gz