Scan your whole stack
From OX Research Newsroom
Are you using grat?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.3.3
grat was last scanned on 24 Nov 2026 at version 0.3.3. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.3.3 LATEST | 24 Nov 2026 | No rules fired |
| 0.3.2 | 10 Nov 2026 | No rules fired |
| 0.3.1 | 23 Oct 2026 | No rules fired |
| 0.3.0 | 22 Oct 2026 | Not shown |
Findings for v0.3.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.3.3; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
GRAT is a groundwater recharge assessment tool. It models how water available for recharge is allocated, day by day across a span of water years, to canals, basins and farm fields, and reports the resulting groundwater recharge.
pip install grat
Load the sites layer from a shapefile, file geodatabase, geopackage, geojson or csv. ArcGIS is not needed; only the attribute table is read.
from grat.loaders.get_sites import load_sites
rows = load_sites("OakValley/oakvalley.shp")
rows = load_sites("project.gdb", layer="sites", where="R_TYPE = 'OFR'")
rows = load_sites("sites.csv", attribute_renamer={"GRATID": "grat_id", "R_TYPE": "recharge_type"})
Run the model and produce reports:
from grat import read_report, run_grat
result = run_grat(sites, wafr, bottlenecks, crop_calendar, precip)
result["zip_path"] # the results archive
result["reports"] # the report names that were produced
result["series"]["unused_wafr"] # the frontend visualisation data
run_grat returns a plain dict. To look at any report it produced, read it back by
name as a pandas dataframe:
df = read_report(result["output_folder"], "annual_summary_recharge")
df = read_report(result["output_folder"], "daily_recharge_by_site", year=2001)
Reports are asked for by name, and a run only builds what those reports need:
result = run_grat(..., reports=["annual_summary_recharge", "acres_available_and_used"])
grat.reports.catalog.ALL_REPORTS lists everything available.
To drive the year loop yourself and work with the dataframes directly, without writing
any csv files, pass None as the output folder:
from grat.model.engine import process_year
from grat.reports import report_picker
year = process_year(sites, bottlenecks, wafr, crop_calendar, precip)
reports = report_picker(
["annual_summary_recharge"], None, 2001, year["sites"], raw_wafr, year["wafr"], year["bottlenecks"]
)
reports["annual_summary_recharge"]
Full docs, including an API reference generated from the docstrings, are published at https://blueraster.github.io/earth-genome-grat/. To preview them locally:
uv sync --group docs
uv run mkdocs serve
grat.model: sites, allocation order, bottlenecks,
transfers, and running the year loop yourself.grat.reports: the report catalog, what each
report contains, and how to read one back.This project uses uv for dependency management.
uv sync # install dependencies (incl. dev group) into .venv
uv run pytest # run tests
uv run ruff check . # lint
uv run ruff format . # format
MIT — see LICENSE.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.