PyJoern lifts Joern data and APIs into Pythonic form, focused on graph manipulation.
Project description
PyJoern
A Python frontend and lifter for Joern API, focused on CFG manipulation.
Install
This package requires you to have Java 19, Graphviz, and Unzip installed on your machine before running the pip installer. In you don't have them on your system, use the install_dependencies.sh script found in the source repo.
pip3 install pyjoern && pyjoern --install
Running pyjoern --install
will init the Joern package for this first time, which will download the backend.
Usage
Use PyJoern as a library for lifting source into a CFG. The IL the source is lifted to is described in JIL.
from pyjoern import fast_cfgs_from_source
cfgs = fast_cfgs_from_source("tests/source/simple.c")
main_func = cfgs["main"]
print(main_func.edges)
Versioning
The current version of PyJoern can be found in [pyjoern/__init__.py] as __version__
.
The point in the version is the PyJoern specific updates.
The first three are the current version of Joern that PyJoern is supporting.
Example:
__version__ = "v1.2.18.1"
This would mean Joern version v1.2.18
, with PyJoern update 1
.
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
Built Distribution
File details
Details for the file pyjoern-1.2.18.5.tar.gz
.
File metadata
- Download URL: pyjoern-1.2.18.5.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | deaeca337a116716aac2e7af411d796737cedcbb2dfacaf6db1cbe4e709f0845 |
|
MD5 | 514c21629a9c84fb16afdaf5a8476279 |
|
BLAKE2b-256 | 60b6fe46b4e3983d467a656b2f58fda1e43fa1335ef6f533f6c4be453d2222b5 |
File details
Details for the file pyjoern-1.2.18.5-py3-none-any.whl
.
File metadata
- Download URL: pyjoern-1.2.18.5-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5509314c34a6383cd5a6a5c466d07f0fc6f794a2fff6d5d685dc960a69c33190 |
|
MD5 | 3a917c98c63ccffc85156eb4a3322293 |
|
BLAKE2b-256 | 81893ea1538d538961be85d168c1b85613010deed148ebb34aef6ea8506888f1 |