Skip to main content

A STAC command-line interface written in Rust

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

stac-cli

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

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

Installation

python -m pip install stacrs-cli

Or:

cargo install stac-cli

Then:

# Search
$ stacrs search https://landsatlook.usgs.gov/stac-server \
    --collections landsat-c2l2-sr \
    --intersects '{"type": "Point", "coordinates": [-105.119, 40.173]}' \
    --sortby='-properties.datetime' \
    --max-items 1000 \
    items.parquet

# Translate formats
$ stacrs translate items.parquet items.ndjson
$ stacrs translate items.ndjson items.json

# Migrate STAC versions
$ stacrs translate item-v1.0.json item-v1.1.json --migrate

# Search stac-geoparquet (no API server required)
$ stac search items.parquet

# Server
$ stacrs serve items.parquet  # Opens a STAC API server on http://localhost:7822

# Validate
$ stacrs validate item.json

Usage

stacrs provides the following subcommands:

  • stacrs search: searches STAC APIs and geoparquet files
  • stacrs serve: serves a STAC API
  • stacrs translate: converts STAC from one format to another
  • stacrs validate: validates a STAC value

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

Features

This crate has two features:

  • pgstac: enable a pgstac backend for stacrs serve (enabled by default)
  • python: create an entrypoint that can be called from Python (used to enable python -m pip install stacrs-cli)

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.5.0.tar.gz (1.7 MB view details)

Uploaded Source

Built Distributions

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

stacrs_cli-0.5.0-py3-none-musllinux_1_2_x86_64.whl (177.2 kB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

stacrs_cli-0.5.0-py3-none-musllinux_1_2_i686.whl (191.3 kB view details)

Uploaded Python 3musllinux: musl 1.2+ i686

stacrs_cli-0.5.0-py3-none-musllinux_1_2_armv7l.whl (269.7 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARMv7l

stacrs_cli-0.5.0-py3-none-musllinux_1_2_aarch64.whl (187.3 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

stacrs_cli-0.5.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (237.6 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

stacrs_cli-0.5.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (5.9 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARMv7l

stacrs_cli-0.5.0-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.2 kB view details)

Uploaded Python 3manylinux: glibc 2.5+ x86-64

stacrs_cli-0.5.0-py3-none-manylinux_2_5_i686.manylinux1_i686.whl (5.2 kB view details)

Uploaded Python 3manylinux: glibc 2.5+ i686

stacrs_cli-0.5.0-py3-none-macosx_11_0_arm64.whl (3.8 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

stacrs_cli-0.5.0-py3-none-macosx_10_12_x86_64.whl (3.6 kB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: stacrs_cli-0.5.0.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.8.1

File hashes

Hashes for stacrs_cli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 2428436c4c5331f0eea1ca22daa2c64b5b21958eefed21bef5e24b6dd8288e46
MD5 15368a9938245e876d6bde52cf5d902d
BLAKE2b-256 6de8d5351333ee6f01ed8d794706170e16a8dd0b015dacb4d923d9860da8a912

See more details on using hashes here.

File details

Details for the file stacrs_cli-0.5.0-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for stacrs_cli-0.5.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e6300e656e3e6fdd9acf1e41e4a8e8b0266765df7485e651fc7d63ebc3e58926
MD5 fcc529561b1bf17636d00a80727cbd26
BLAKE2b-256 1d0fe5ebc3f8e8940f28beb47969156bfb47baffe117ff82d8488b8fb7ac9747

See more details on using hashes here.

File details

Details for the file stacrs_cli-0.5.0-py3-none-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for stacrs_cli-0.5.0-py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 d6c1c509aefc9a45df3838397ff87abd6ba23ac6adca2d817529c8bd339e9c2b
MD5 b501910201f2e8240ec7db4da9ccc160
BLAKE2b-256 9a104a2688a737737fbc260fb4c022a6bfbdf94e77e91edb33c3941bcf278026

See more details on using hashes here.

File details

Details for the file stacrs_cli-0.5.0-py3-none-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for stacrs_cli-0.5.0-py3-none-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 6e5a46f46393b79e8c12b6baf8a85cdbdc029158eb301d28826187d8aac1a8d4
MD5 60f4b49d9741781eaf6e2f913d4279d8
BLAKE2b-256 aacc9b890d2e4baa64e7072499572ff0cc4ef6cc572f2bf7b0fdfe9b22d7027b

See more details on using hashes here.

File details

Details for the file stacrs_cli-0.5.0-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for stacrs_cli-0.5.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d3783a5db97cc5fdd890a86e96a9ca9f668005b87bd3f4da25ec4c5c8d29bea9
MD5 9cfe4d9c64cbbc19b88ab1df792218ce
BLAKE2b-256 3bf814f3bd56b7cfab5f1ba7c04b7715c1a7c0f891f4c62a2d1f7e35dc4d6fa9

See more details on using hashes here.

File details

Details for the file stacrs_cli-0.5.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for stacrs_cli-0.5.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 4dad396a726d12b782d3be17d2fb509cc7b036d0c28071d4a40364fd86c421f5
MD5 a519383e81898e54cf83274b37dcd12b
BLAKE2b-256 bcd3232f302ff6ba0b64f4156fc1f584096d18b15e51eefb307533166c734871

See more details on using hashes here.

File details

Details for the file stacrs_cli-0.5.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for stacrs_cli-0.5.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 0029325376a85335a8415cbb6d2ad19de114720304fdde7106c59ffdf79ce2d0
MD5 ea6692f4e0dafc6217db82b9cac4492f
BLAKE2b-256 ff093296c61a9259de779fe5c04ee8ca3020c7bbfa070c3c12bc67878f2afa97

See more details on using hashes here.

File details

Details for the file stacrs_cli-0.5.0-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for stacrs_cli-0.5.0-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e18c7558135d95657fa43bcb3593c46ffa28dd037f2ea4563c42eb3f44854905
MD5 2304735cd6f63f42e0b68ec9ae4ab625
BLAKE2b-256 bdf958e1282d544a68533710b2a0520412da6fbc7e2af1a3932bb3c5edc63491

See more details on using hashes here.

File details

Details for the file stacrs_cli-0.5.0-py3-none-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for stacrs_cli-0.5.0-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 fc4e77ddaf9cf4f80cdd4b302ff207b787671d7faf2fb093d342d335e382bb4d
MD5 cec529f5368570c6d02e7e846a37a770
BLAKE2b-256 1e9d850f805f31db12ebf26d984da6feaec77cedc274110e87a2330e4a16e82a

See more details on using hashes here.

File details

Details for the file stacrs_cli-0.5.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for stacrs_cli-0.5.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d459bb6b6e0de8450ca30b0eb262197b64b30f594a8b8fe95e7be07868eec65f
MD5 22919af890d70984a4ceed6a522edadd
BLAKE2b-256 70512173f1bd63ca736e38c4d1d97593df8bd6d4d55096cdd8fc231d63906166

See more details on using hashes here.

File details

Details for the file stacrs_cli-0.5.0-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for stacrs_cli-0.5.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d73d77a02824a9437fef631529bab03485c86034a36ccae3c040f2f76f7d79e0
MD5 7f29a7a2925a93a1a03956ec98abe091
BLAKE2b-256 8afd76852ad6406e9c43e501cdd21a1abb9f7da8af0e4c5d749929faf33488a6

See more details on using hashes here.

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