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.1.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.1-py3-none-any.whl (157.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: provadyne_engine-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 75c0a1eb813a6cf71a957a7f7bfc54c585bf044575e388bb6180a0adf86be303
MD5 53719a255106c2232cfac9004b8ba5b2
BLAKE2b-256 5af8c32991a6411f8cff489e6ad6d3333bc11ac7d56d2a529fe1037c65d9326a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for provadyne_engine-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b8438552d99a93b1f37658dedeeb2fc4d11c5961ca4d3d08186683f12872ac7
MD5 f9c90000a2847be47f8ffebdc579b9bc
BLAKE2b-256 98f6c8d4d7b9de827a079a7f9e9eb15c8b9c7d8405baf39261c5f601d046e781

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