Skip to main content

A client library for CPG servers

Project description

A Python client library for Joern Server

A library to script code analyzers based on code property graphs (e.g., Joern/Ocular) via Python.



To download and install the latest version, issue the following command:

pip install cpgclientlib


Assuming that joernd is running locally, the following short scripts creates a code property graph and runs a query to retrieve all methods in JSON format.

#!/usr/bin/env python3

from cpgclient.CpgClient import CpgClient

server = ''
port = 8080
client = CpgClient(server, port)
methods = client.query('cpg.method.toJson')


Project details

Release history Release notifications

Download files

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

Files for cpgclientlib, version 0.11.91
Filename, size File type Python version Upload date Hashes
Filename, size cpgclientlib-0.11.91.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page