Skip to main content

Provadyne — local MISRA C:2023, CERT C & CWE static analysis with ISO 26262-6 mapping

Project description

provadyne-engine

The Python analysis engine behind Provadyne — MISRA C:2012 violation detection (via cppcheck), ISO 26262-6 rule mapping, PDF report generation, and optional LLM fix suggestions.

This package is the shared core used by the Provadyne daemon, the GitHub Action, and the IDE extensions. It is normally driven through the daemon, but the modules are runnable directly.

Requirements

  • Python 3.11+
  • cppcheck 2.x on the PATH (provides the MISRA addon). Install via brew install cppcheck / apt-get install cppcheck.

Install

pip install provadyne-engine
# optional: external LLM providers for fix suggestions
pip install "provadyne-engine[llm-api]"

Usage

# Single file — exits 1 when violations are found, 0 when clean, 2 on error.
python -m engine.misra.checker path/to/source.c

# Multiple files, aggregated batch envelope
python -m engine.misra.checker --batch src/*.c

# Console-script equivalents (installed with the package)
provadyne-misra path/to/source.c
provadyne-stubgen --help

Output is JSON on stdout:

{
  "file_path": "/abs/path/source.c",
  "violations": [
    { "rule": "11.3", "severity": "required", "line": 9, "column": 6,
      "message": "Cast shall not be performed between pointer to object and pointer to different object type",
      "suggestion": null }
  ],
  "summary": { "total": 1, "required": 1, "advisory": 0, "mandatory": 0 },
  "analyzed_at": "2026-05-29T05:37:40Z",
  "engine_version": "0.1.0",
  "cppcheck_version": "2.20.0"
}

License

MIT.

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

provadyne_engine-0.3.2.tar.gz (129.6 kB view details)

Uploaded Source

Built Distribution

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

provadyne_engine-0.3.2-py3-none-any.whl (157.1 kB view details)

Uploaded Python 3

File details

Details for the file provadyne_engine-0.3.2.tar.gz.

File metadata

  • Download URL: provadyne_engine-0.3.2.tar.gz
  • Upload date:
  • Size: 129.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for provadyne_engine-0.3.2.tar.gz
Algorithm Hash digest
SHA256 3415d3a17e868407500923f8807a5565e0699f2b274072478e883066323f59ab
MD5 510aea2de5cb9baeca54351bb64d0cd9
BLAKE2b-256 80b6e8164d69c62ccdccc656c01f1bd7a2f3755d259948c3a24013af4195c0d2

See more details on using hashes here.

File details

Details for the file provadyne_engine-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for provadyne_engine-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e1555191d3ac7268c1c028095a07775871280d51bbfa3b994c9cd25afebc19de
MD5 906486cd59016b855dcbad1e359aac74
BLAKE2b-256 c068c207e7d7aa2094a779b6e9407eec6a4dc2d3289ccbeb2eaa66cf6ed0af11

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