Discover & Download,
USGS LANDFIRE Data.

Unofficial CLI and SDK for LANDFIRE data.

A simple set of tools for discovering, filtering, searching, and downloading datasets. Built with Pydantic, Click, and Rich.

Landpyre Circular Logo

What's new in v0.2.0

Typed SDK & Pydantic

Full LandpyreClient with search, download, and verify. Robust models built entirely on Pydantic.

Fuzzy Search

landpyre search provides full-text search ranked by relevance across product, theme, region, and version.

Checksum Verification

MD5 verified during download. Command validates checksums and existence against generated manifests.

Resumable & Dry-runs

Preview file sizes with --dry-run. Partial ZIPs are resumed automatically without data loss.

Manifests & JSON

Save reproducible state to manifest files. Every command supports machine-readable output for pipelines.

Diagnostics

landpyre doctor checks environment, Python version, disk, network, SSL, and cache validity.

Installation

Requires Python ≥ 3.10. Internet access needed for refresh (all other commands work offline).

# With pip
pip install landpyre

# With Parquet export support
pip install "landpyre[parquet]"

# From source (recommended during development)
git clone https://github.com/samapriya/landpyre.git
cd landpyre
pip install -e ".[dev]"

Quick Start Workflow

  1. Fetch & cache catalogue:
    landpyre refresh
  2. Fuzzy search:
    landpyre search "hawaii fuel 2022"
  3. Browse with filters:
    landpyre list --version "LF 2022" --region Hawaii
  4. Save a manifest:
    landpyre manifest -V "LF 2022" -r Hawaii -o hawaii.json
  5. Preview & Download:
    landpyre download -m hawaii.json --dry-run
bash — landpyre
$ landpyre search "hawaii fuel 2022"
🔎 Searching 842 records...

1.00 LF2022_FBFM40_220_HI.zip (1.2 GB)
Hawaii • LF 2022 • Fire Behavior
0.92 LF2022_FBFM13_220_HI.zip (850 MB)
Hawaii • LF 2022 • Fire Behavior

$ landpyre stats
📊 LANDFIRE Catalogue Statistics
Total Files: 842
Total Size: 415.2 GB

CLI Command Reference

landpyre search QUERY

Fuzzy full-text search across product, theme, region, and version. Results are ranked by relevance score.

landpyre search "hawaii fuel"
landpyre search "CONUS LF 2022" --limit 10
landpyre search "fire behavior" --threshold 0.5
landpyre list & stats

Browse the catalogue with exact/substring filters or view aggregate statistics.

landpyre list --version "LF 2022" --region "Hawaii" --limit 20
landpyre stats --version "LF 2022"
landpyre manifest & download

Save selections to a portable manifest, then perform multi-threaded, resumable downloads.

landpyre manifest --version "LF 2022" --region Hawaii -o hawaii.json
landpyre download --manifest hawaii.json --dry-run
landpyre download --manifest hawaii.json --output ./data --workers 6
landpyre doctor

Run environment diagnostics (Python version, disk space, network, SSL/TLS, cache, zip support).

landpyre doctor
landpyre doctor --json