Skip to main content

FastAPI REST server + bundled React web UI for Evidentia

Project description

evidentia-api

FastAPI REST server and bundled React web UI for Evidentia, the open-source GRC tool.

This package is not typically installed directly. The preferred way is via the [gui] extra on the meta-package:

uv tool install "evidentia[gui]"
# or
pip install "evidentia[gui]"

Then run:

evidentia serve
# -> FastAPI + React UI at http://127.0.0.1:8000

What's inside

  • FastAPI app (evidentia_api.app:app) — REST endpoints mirroring every CLI capability.
  • SPA — React/Vite/shadcn/ui frontend, bundled as static assets inside the wheel under evidentia_api/static/.
  • SSE streaming — long-running LLM calls (risk generate, explain) stream progress to the browser without blocking.

REST surface

Every endpoint is typed with Pydantic models reused from evidentia-core. All endpoints bind to 127.0.0.1 by default; --host 0.0.0.0 emits a security warning.

Method Path Purpose
GET /api/health Health probe
GET /api/version Evidentia version info
GET /api/doctor Diagnostic summary
POST /api/doctor/check-air-gap Air-gap validator
GET /api/config Read evidentia.yaml
PUT /api/config Write evidentia.yaml
GET /api/frameworks List all 89 bundled catalogs
GET /api/frameworks/{id} Framework detail
GET /api/frameworks/{id}/controls/{control_id} Single control
POST /api/gap/analyze Run GapAnalyzer, save to gap store
GET /api/gap/reports List saved reports
GET /api/gap/reports/{key} Load a saved report
POST /api/gap/diff Compute diff between two reports
POST /api/risk/generate SSE: per-gap risk statement generation
POST /api/explain/{framework}/{control_id} Plain-English control explanation
POST /api/init/wizard Generate starter YAML files
GET /api/llm-status LLM provider configuration state

Air-gapped mode

Running evidentia serve --offline wires the air-gap guard into every /api/* call. LLM features gracefully degrade with a pointer to Ollama. See docs/air-gapped.md.

Development

# From the repo root:
uv sync --all-packages
cd packages/evidentia-ui && npm install && npm run dev  # Vite dev server at :5173
# In another terminal:
evidentia serve --dev  # FastAPI at :8000 proxies /api/* to itself, / to Vite :5173

License

Apache-2.0 — see LICENSE.

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

evidentia_api-0.9.8.tar.gz (619.4 kB view details)

Uploaded Source

Built Distribution

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

evidentia_api-0.9.8-py3-none-any.whl (639.3 kB view details)

Uploaded Python 3

File details

Details for the file evidentia_api-0.9.8.tar.gz.

File metadata

  • Download URL: evidentia_api-0.9.8.tar.gz
  • Upload date:
  • Size: 619.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for evidentia_api-0.9.8.tar.gz
Algorithm Hash digest
SHA256 e0c0976e14dc6b96749d39be6d13873310087bb08bb03cc14e08d1d470c04ba2
MD5 9b17588bc5dab2b14a4c3b26f6d0e299
BLAKE2b-256 9375c9c3e0caf8ba2e680f605268d7c4560dd1fb5336e5244f600824f42785e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for evidentia_api-0.9.8.tar.gz:

Publisher: release.yml on Polycentric-Labs/evidentia

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file evidentia_api-0.9.8-py3-none-any.whl.

File metadata

  • Download URL: evidentia_api-0.9.8-py3-none-any.whl
  • Upload date:
  • Size: 639.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for evidentia_api-0.9.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b6d82c1593728621f30950b1c0a35d3de3650a1fb22a81ec1c700be81f687137
MD5 5f6925cf7409ecc2e7e848c80247c42e
BLAKE2b-256 1ae0560c65dd30fcbfe34014c31aa47249b82e4cbc9ccbc069994f3282909fad

See more details on using hashes here.

Provenance

The following attestation bundles were made for evidentia_api-0.9.8-py3-none-any.whl:

Publisher: release.yml on Polycentric-Labs/evidentia

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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