Files
mrvacommander/client/qldbtools
Michael Hohn d64522d168 Collect CodeQL database information from the file system and save as CSV
This collection already provides significant meta-information

    ctime : str = '2024-05-13T12:04:01.593586'
    language : str = 'cpp'
    name : str = 'nanobind'
    owner : str = 'wjakob'
    path : Path = Path('/Users/hohn/work-gh/mrva/mrva-open-source-download/repos/wjakob/nanobind/code-scanning/codeql/databases/cpp/db.zip')
    size : int = 63083064

There is some more in the db.zip files, to be added
2024-07-22 11:07:00 -07:00
..
2024-07-10 15:38:59 -07:00
2024-07-10 15:04:09 -07:00

qldbtools

qldbtools is a Python package for working with CodeQL databases

Installation

  • Set up the virtual environment and install tools

    cd ~/work-gh/mrva/mrvacommander/client/qldbtools/
    python3.11 -m venv venv
    source venv/bin/activate
    pip install --upgrade pip
    
    # From requirements.txt
    pip install -r requirements.txt
    # Or explicitly
    pip install jupyterlab pandas ipython
    pip install lckr-jupyterlab-variableinspector
    
  • Run jupyterlab

    cd ~/work-gh/mrva/mrvacommander/client
    source venv/bin/activate
    jupyter lab &
    

    The variable inspector is a right-click on an open console or notebook.

    The jupyter command produces output including

    Jupyter Server 2.14.1 is running at:
    http://127.0.0.1:8888/lab?token=4c91308819786fe00a33b76e60f3321840283486457516a1
    

    Use this to connect multiple front ends

  • Local development

    cd ~/work-gh/mrva/mrvacommander/client/qldbtools
    pip install -e .
    
  • Full installation

    pip install qldbtools
    

Usage

import qldbtools as ql