Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyjoern-1.2.18.5.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

pyjoern-1.2.18.5-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

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

Hashes for pyjoern-1.2.18.5.tar.gz
Algorithm Hash digest
SHA256 deaeca337a116716aac2e7af411d796737cedcbb2dfacaf6db1cbe4e709f0845
MD5 514c21629a9c84fb16afdaf5a8476279
BLAKE2b-256 60b6fe46b4e3983d467a656b2f58fda1e43fa1335ef6f533f6c4be453d2222b5

See more details on using hashes here.

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

Hashes for pyjoern-1.2.18.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5509314c34a6383cd5a6a5c466d07f0fc6f794a2fff6d5d685dc960a69c33190
MD5 3a917c98c63ccffc85156eb4a3322293
BLAKE2b-256 81893ea1538d538961be85d168c1b85613010deed148ebb34aef6ea8506888f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page