Open source, MIT license

Offline codebase inventory

One Python file. It counts files and lines per language in a local copy of your code and prints a short JSON report. Your CTO reads it, then decides whether to send it to us.

SHA-256 75cb1dfc83db3f6d65eb34deebe1cef3eb12b2bd4beb5f1ebec24809d0fbbbc1

What it does not do

  • No network access, no upload, no telemetry.
  • No execution of your code: no build, no tests, no child process.
  • No reading of version-control history.
  • No file names, paths, identifiers or code excerpts in the output. Only counts and fixed labels.

Run it

Python 3.8 or later, Linux or macOS. Use a local copy of the code, not your production checkout.

terminal
shasum -a 256 inventory.py   # compare with the value above
python3 -I -S inventory.py /absolute/path/to/local/copy > licensa-inventory.json

What you get

licensa-inventory.json, sample
{
  "schema": "licensa.inventory.v1",
  "status": "complete",
  "languages": { "java": { "files": 4210, "lines": 1204331 }, "sql": { "files": 310, "lines": 88410 } },
  "totals": { "files": 4520, "lines": 1292741 },
  "test_candidates": { "files": 612 },
  "build_files": { "maven": 3 },
  "history": "not_read",
  "execution": "none",
  "network": "none"
}

Then

Review the JSON. If you are comfortable with it, upload it together with the NDA and a short description of your software. Ten minutes. We reply within two business days. Nothing is shared with a buyer without your written approval.