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 Distribution

kryptorious_depguard-1.1.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file kryptorious_depguard-1.1.0.tar.gz.

File metadata

  • Download URL: kryptorious_depguard-1.1.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for kryptorious_depguard-1.1.0.tar.gz
Algorithm Hash digest
SHA256 149e7cc61ddb7b823ef88287a7acc84b3b776a47b181513ccead998a08a34922
MD5 3dc10ee6ce254853bc7ad529d348d843
BLAKE2b-256 9ae14b53dbec557065400391e1a96afb73b6ef256fd23f732c44238f20c09467

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kryptorious_depguard-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b92149b1f08cef83d5e3452755bdaa35741ae44cda4e4e989813ec6c837eb26
MD5 7238ffb17ec8894e60f3872d1d82c77f
BLAKE2b-256 dcc59cee0512f518cef0269ddc20616caebbe9bbe5f637fe3bdda17327a3c76b

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