Skip to main content

evgraph-cli

PyPI License Python

The evgraph command-line tool for Evgraph.

What is it

evgraph-cli gives shell scripts, CI pipelines, and pre-commit hooks the same governance scan the evgraph Python API exposes, without writing any Python. It is intentionally a thin wrapper: this package contains no logic of its own beyond argument parsing and output-format selection — scanning and reporting are entirely delegated to evgraph.scan() / evgraph.scan_dataset_manifest() / Report, so the CLI and the library can never drift in behavior. A missing approval timestamp stays inconclusive. The scan does not invent the field.

Main features

  • evgraph scan MODEL_CARD APPROVAL DEPLOYMENT — runs the Model Card adapter across the three linked artifacts and prints a Report.
  • evgraph scan-dataset-manifest MANIFEST — runs the dataset-manifest adapter over a CSV file and prints a Report.
  • --format {json,markdown,sarif,oscal} — selects how the report is rendered (default json); sarif for CI annotations, markdown for a human-readable review, oscal for compliance tooling.
  • --gate — after printing the report, return exit code 1 when gate evaluation finds evidence expectations not met.
  • --gate --strict — also return exit code 1 when gate evaluation finds inconclusive evidence.

Exit codes

By default, completed scans are report-only: findings are printed and the CLI returns 0, even when the report contains unmet evidence expectations. Use --gate when a shell script or CI pipeline should trip on those findings, and --gate --strict when inconclusive findings should also trip the gate.

  • 0 — the command completed and no requested gate tripped.
  • 1 — --gate was requested and gate evaluation tripped.
  • 2 — usage, tool, adapter, or input error.

Gate exit codes are automation signals over evidence findings, not legal or regulatory compliance verdicts.

Where to get it

The source is hosted on GitHub at: https://github.com/SVamseekar/evgraph

Binary installers for the latest released version are available at the Python Package Index (PyPI):

pip install evgraph-cli

From source, for contributing:

git clone https://github.com/SVamseekar/evgraph.git
cd evgraph
pip install -e reference/python/evgraph-core
pip install -e reference/python/evgraph-rules
pip install -e reference/python/evgraph
pip install -e reference/python/evgraph-cli

Dependencies

  • evgraph — installed automatically as a dependency, which in turn pulls in evgraph-core and evgraph-rules.

pytest>=7 is required for the test suite (pip install "evgraph-cli[test]").

Quickstart

evgraph scan model_card.json approval.json deployment.json --format markdown
evgraph scan-dataset-manifest dataset_manifest.csv --format json

In a CI pipeline, emitting SARIF lets findings show up as inline annotations in tools that already consume that format:

evgraph scan model_card.json approval.json deployment.json --format sarif > evgraph.sarif

Documentation

For Start here
The Python API this CLI wraps evgraph package README
Output format details (SARIF, OSCAL) docs/specs/
Runnable examples examples/
The full library stack Main project README

Getting help

Ask questions and report bugs via GitHub Issues on the main repository.

Contributing

All contributions, bug reports, and feature requests are welcome on the main repository. See CONTRIBUTING.md and the Code of Conduct. Security reports: SECURITY.md.

License

BSD 3-Clause.

Metadata

Release files for evgraph-cli 0.1.3

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

Source distribution (sdist)

Source distribution for evgraph-cli 0.1.3
File Size Uploaded
evgraph_cli-0.1.3.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for evgraph-cli 0.1.3
File Interpreter ABI Platform
evgraph_cli-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / evgraph_cli-0.1.3.tar.gz

Download URL evgraph_cli-0.1.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1659676dbbda2276e87f44d2bb5b0dd7c536edae3efdbb002d440b0c19ee2194
BLAKE2b-256 checksum
How to use checksums
39df252a3d82fd8f3ea37ef9fcd55fd82f390ae2d5a411a20bdd61ecba010bed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / evgraph_cli-0.1.3-py3-none-any.whl

Download URL evgraph_cli-0.1.3-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9f2b0538d53900afcc51085c42d19cdd819be426c957ab87ea46fde72e2d160
BLAKE2b-256 checksum
How to use checksums
6a58f8e98f704c1865858a788dc5faab61f5f74455c3aa03ab371c01eeb0b2d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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