Skip to main content

Cross-ecosystem dependency auditor for Python + Node: catches undeclared imports, unused deps, unpinned specifiers, and lockfile drift in one offline, CI-ready command.

Project description

kryptorious-depguard

Cross-ecosystem dependency auditor for Python + Node. One command, offline, CI-ready — catches the dependency problems your linter can't see:

  • Undeclared imports — code imports a package you never declared (import requests with no requests in requirements.txt). Breaks in a clean install.
  • Unused dependencies — declared in requirements.txt / package.json but never imported. Bloats installs and attack surface.
  • Unpinned specifiersnumpy (any) or ^1.2.3 (floating). Non-reproducible builds.
  • Lockfile driftpackage.json disagrees with package-lock.json / yarn.lock.

Why this exists

node-depcheck is Node-only. pipreqs regenerates a requirements file but doesn't audit it. pyflakes F401 only catches unused local names. No lightweight, offline, single-tool audits both ecosystems and emits SARIF for GitHub code-scanning in one pass. depguard does.

Install

pip install kryptorious-depguard

Usage

Audit the current directory (both ecosystems):

depguard check .

Python only, fail CI on any high-severity finding:

depguard check . --python --no-node --fail-on high

Emit SARIF for GitHub code-scanning:

depguard check . --format sarif --output depguard.sarif

JSON for custom pipelines:

depguard check . --format json

GitHub Action (inline)

- name: Dependency audit
  run: |
    pip install kryptorious-depguard
    depguard check . --format sarif --output depguard.sarif --fail-on high
- name: Upload SARIF
  uses: github/codeql-action/upload-sarif@v3
  with:
    sarif_file: depguard.sarif

Exit codes

--fail-on {high,medium,low,never} controls the CI gate. Default high: exits 1 when any high-severity finding exists (undeclared imports).

Premium

Free tier includes everything above. Premium ($9 lifetime) adds cloud SARIF upload to code-scanning dashboards, scheduled baseline diffs, and HTML trend reports: https://kryptorious.gumroad.com/l/jbvet

License

MIT — Kryptorious Quantum Biosciences, Inc.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kryptorious_depguard-1.0.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file kryptorious_depguard-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kryptorious_depguard-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2999b73aa896645ad09b43c585f2dff7df4f9a8d9f1534c6b733019531d7b3cb
MD5 3805e9c9727e2c1d63cab896905250d3
BLAKE2b-256 c9efc732dd31b396155581971e6d707024ae596e47de68aa0185ead3ff1d5ffe

See more details on using hashes here.

Supported by

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