Linting and validation tool for STAC assets
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file stac_check-0.1.2.tar.gz
.
File metadata
- Download URL: stac_check-0.1.2.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4774390796750144d9389591c03a13d342b037ec420b7daf6fbec53b6d2932c1 |
|
MD5 | e0ed7381ebd38ffb6d1d057c0bcb77cd |
|
BLAKE2b-256 | 203430ea443affb65ee55ae7a9d00ff28093379336d0b8569dd5edaaa40c39bf |
File details
Details for the file stac_check-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: stac_check-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 990c5b971ee0330de7324309a70c1ebbf8f8758346dc5d0af6cd8e9d25a42400 |
|
MD5 | c94e3495188331f4878eb76293743802 |
|
BLAKE2b-256 | 443991f183cafea9e2863d796c3df71c43bc67ea2f984330b384ac3635bbab69 |