Skip to main content

A STAC command-line interface written in Rust

Project description

stac-cli

GitHub Workflow Status docs.rs Crates.io Crates.io Contributor Covenant

Command Line Interface (CLI) for STAC, named stacrs.

Installation

cargo install stac-cli

Or:

# NOTE: The version from PyPI does not include GDAL or DuckDB support. If you
# need to use these features, install via `cargo install` (GDAL is enabled by
# default) or `cargo install -F duckdb` (DuckDB is not).
pip install stacrs-cli

Then:

stacrs --help

Usage

stacrs provides the following subcommands:

  • stacrs item: create STAC items and combine them into item collections
  • stacrs migrate: migrate a STAC object to another version
  • stacrs search: search STAC APIs (and geoparquet, with the experimental duckdb feature)
  • stacrs serve: serve a STAC API (optionally, with a pgstac backend)
  • stacrs translate: convert STAC values from one format to another
  • stacrs validate: validate STAC items, catalogs, and collections using json-schema

Use the --help flag to see all available options for the CLI and the subcommands:

Features

This crate has five features, three of them on by default:

  • duckdb: experimental support for querying stac-geoparquet files using DuckDB
  • gdal: read geospatial data from rasters (enabled by default)
  • geoparquet: read and write stac-geoparquet (enabled by default)
  • pgstac: enable a pgstac backend for stacrs serve (enabled by default)
  • python: create an entrypoint that can be called from Python (used to enable pip install stacrs-cli)

If you don't want to use GDAL or any of the other default features:

cargo install stac-cli --no-default-features

Other info

This crate is part of the stac-rs monorepo, see its README for contributing and license information.

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

stacrs_cli-0.2.0.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

stacrs_cli-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.12 macOS 10.12+ x86-64

File details

Details for the file stacrs_cli-0.2.0.tar.gz.

File metadata

  • Download URL: stacrs_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.1

File hashes

Hashes for stacrs_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 68f373eb2d595b8181e06c5c62d246d3b5f93134c6d764d5123031dfffb826a9
MD5 3e1d10bcbd9bf10542b39f0a5f03691a
BLAKE2b-256 51d5e41d83e31f28776851e560e5fa7a73c9b06d163e20e41f6a8999fe03ee0f

See more details on using hashes here.

File details

Details for the file stacrs_cli-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for stacrs_cli-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b6996daec259f389feb7966616d79463d99a699459eaf63277ab9ee1fad0dc8e
MD5 3ae78a2f12f553490aa863244cb53f3d
BLAKE2b-256 42cf32203660f35cd96b9eaf53c1e44edd9499fad5c0795709b066cd7461f868

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page