Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

grat

Latest version: v0.3.3

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: andybell
0 Stars
1 Forks
4 Versions
116 Downloads
Python Repo language

Scan summary

grat was last scanned on 24 Nov 2026 at version 0.3.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest was published on 24 Nov 2026.
  • Findings: No rules fired in version 0.3.3.
  • Downloads: 116 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.3.3

Findings

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.

README

The publisher’s own README, as collected from the registry.

grat

CI PyPI License: MIT

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.

Installation

pip install grat

Usage

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"]

Documentation

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
  • docs/model.md — grat.model: sites, allocation order, bottlenecks, transfers, and running the year loop yourself.
  • docs/reports.md — grat.reports: the report catalog, what each report contains, and how to read one back.

Development

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

License

MIT — see LICENSE.

OX Radar and Response Center

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.

Where it’s listed

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).

  • pypi-releases grat

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229