Skip to main content

devguard-core

devguard-core is a Python static analysis engine for security and reliability checks in application code.

It is designed for local developer workflows, CI pull request gates, and SARIF-based security tooling.

Install

python -m pip install devguard-core

Features

  • Rule metadata model (id, severity, match_type, description, fix)
  • File walker with language detection
  • Built-in checks for common AI-code risks
  • AST-backed Python checks for SQL injection, unsafe deserialization, and hardcoded secrets
  • JSON and SARIF output
  • Baseline input/output for incremental CI rollout

Built-In Rules

  • DG001: potential SQL injection patterns
  • DG002: potential unsafe deserialization calls
  • DG003: potential hardcoded secrets
  • DG004: potential expensive allocations in loops
  • DG005: potential async/network calls without local error handling

Quick Run

devguard-core scan ./src --format json

Scan with CI-friendly filters:

devguard-core scan ./src --min-severity medium --min-confidence 0.7 --format sarif --output devguard.sarif

Scan changed files only:

git diff --name-only --diff-filter=ACMR origin/main...HEAD > changed-files.txt
devguard-core scan . --file-list changed-files.txt --format json

Baseline workflow:

devguard-core scan ./src --baseline-out .devguard-baseline.json --format json
devguard-core scan ./src --baseline-in .devguard-baseline.json --format json

Output Formats

  • json: machine and script friendly output
  • sarif: GitHub Code Scanning and security platform integration

Release files for devguard-core 0.1.3.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for devguard-core 0.1.3.post1
File Size Uploaded
devguard_core-0.1.3.post1.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for devguard-core 0.1.3.post1
File Interpreter ABI Platform
devguard_core-0.1.3.post1-py3-none-any.whl Python 3 none any Details

Total release size: 28.0 kB

Release files / devguard_core-0.1.3.post1.tar.gz

Download URL devguard_core-0.1.3.post1.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7b67dee12138f11b60f9a6de107aaacfd7136ae575c01bb9a4a3fcd73a4e0ec7
BLAKE2b-256 checksum
How to use checksums
774bb1b0ff64aac852b141ee1577dabdd4b2a75eb827488e0bcc2a5d4a467087
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / devguard_core-0.1.3.post1-py3-none-any.whl

Download URL devguard_core-0.1.3.post1-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
024f0f2c4b0ea80cbe4fe26e0d54037f5f5b5d201d5718b10885608d8afc7581
BLAKE2b-256 checksum
How to use checksums
f8c297bea7f78c1b4f3858ca19b6baef4fc07d09c1986445d2eac438afee6f59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.3.post1 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page