Skip to main content

stac-check

Linting and validation tool for STAC assets

This project is a work in progress. The intent is to provide a validation tool that also follows the official STAC Best Practices document: https://github.com/radiantearth/stac-spec/blob/master/best-practices.md

pip install -e .

stac_check https://raw.githubusercontent.com/stac-utils/pystac/main/tests/data-files/examples/0.9.0/collection-spec/examples/landsat-collection.json --recursive

 ____  ____  __    ___       ___  _  _  ____  ___  __ _ 
/ ___)(_  _)/ _\  / __)___  / __)/ )( \(  __)/ __)(  / )
\___ \  )( /    \( (__(___)( (__ ) __ ( ) _)( (__  )  ( 
(____/ (__)\_/\_/ \___)     \___)\_)(_/(____)\___)(__\_)
    
stac-check: STAC spec validaton and linting tool

Please upgrade from version 0.9.0 to version 1.0.0!

Validator: pystac 1.1.0
    Recursive: Validate all assets in a collection or catalog

Valid COLLECTION: True
Schemas validated: 
    https://cdn.staclint.com/v0.9.0/collection.json

Recursive validation has failed!
Validation error message: 
    Exception Could not read uri https://landsat-stac.s3.amazonaws.com/landsat-8-l1/paths/catalog.json

WARNING: STAC Best Practices asks for a summaries field in a STAC collection
    https://github.com/radiantearth/stac-spec/blob/master/collection-spec/collection-spec.md

This object has 4 links

stac_check sample_files/0.9.0/landsat8-sample.json

stac-check: STAC spec validaton and linting tool
Please upgrade from version 0.9.0 to version 1.0.0!

Validator: stac-validator 2.4.0

Valid ITEM: True

STAC Best Practices: Item names should match their ids
    'landsat8-sample' not equal to 'LC81530252014153LGN00'

Schemas validated: 
    https://cdn.staclint.com/v0.9.0/extension/eo.json
    https://cdn.staclint.com/v0.9.0/extension/view.json
    https://cdn.staclint.com/v0.9.0/item.json

This object has 4 links

stac_check sample_files/1.0.0/core-item.json --assets

stac-check: STAC spec validaton and linting tool
Thanks for using STAC version 1.0.0!

Validator: stac-validator 2.4.0

Valid ITEM: True

STAC Best Practices: Item names should match their ids
    'core-item' not equal to '20201211_223832_CS2'

Schemas validated: 
    https://schemas.stacspec.org/v1.0.0/item-spec/json-schema/item.json

No ASSET format errors!

ASSET request errors: 
    http://cool-sat.com/catalog/20201211_223832_CS2/20201211_223832_CS2.EPH

This object has 4 links

stac_check sample_files/1.0.0/core-item-bad-links.json --links --assets

stac-check: STAC spec validaton and linting tool
Thanks for using STAC version 1.0.0!

Validator: stac-validator 2.4.0

Valid ITEM: True

STAC Best Practices: Item names should match their ids
    'core-item-bad-links' not equal to '20201211_223832_CS2'

Schemas validated: 
    https://schemas.stacspec.org/v1.0.0/item-spec/json-schema/item.json

ASSET format errors: 
    https:/storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.jpg

ASSET request errors: 
    https:/storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.jpg
    http://cool-sat.com/catalog/20201211_223832_CS2/20201211_223832_CS2.EPH

LINK format errors: 
    http:/remotdata.io/catalog/20201211_223832_CS2/index.html

LINK request errors: 
    http://catalog/collection.json
    http:/remotdata.io/catalog/20201211_223832_CS2/index.html

This object has 4 links

stac_check sample_files/0.9.0/bad-item.json

stac-check: STAC spec validaton and linting tool
Please upgrade from version 0.9.0 to version 1.0.0!

Validator: stac-validator 2.4.0

Valid : False
Schemas validated: 
    https://cdn.staclint.com/v0.9.0/item.json
Validation error type: 
    ValidationError
Validation error message: 
    'id' is a required property of the root of the STAC object

This object has 5 links

Metadata

Release files for stac_check 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stac_check 0.2.0
File Size Uploaded Provenance Actions
stac_check-0.2.0.tar.gz 7.4 kB Without provenance Details for stac_check-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stac_check 0.2.0
File Interpreter ABI Platform Actions
stac_check-0.2.0-py3-none-any.whl Python 3 none any Details for stac_check-0.2.0-py3-none-any.whl

Total release size: 15.0 kB

Release files / stac_check-0.2.0.tar.gz

Download URL stac_check-0.2.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c585b62731fb872cf104b7a32c8a8ee5e0e1dce2182fb1d03af4452bffdae2d5
BLAKE2b-256 checksum
How to use checksums
72b449cc7dc2d1601e3a6737b10f03f6e4cba13ff47b6be32a42b8904feb9c61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release files / stac_check-0.2.0-py3-none-any.whl

Download URL stac_check-0.2.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f19ef613e12d677666113d61219bb46d04be443930e30f07c5b0143f02d6b0d
BLAKE2b-256 checksum
How to use checksums
21cdcd09d9c76b3da8ba0661f65e471b1d914b121981a9ee10c998c003006df0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Security for stac_check 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page