pystac-ext-file
File extension for PySTAC
What it is and what it does
pystac-ext-file is a PySTAC extension package that implements the STAC File Info Extension specification (v2.1.0). It allows developers working with STAC catalogs to attach standardized file metadata to assets—including byte order, checksums, header size, and data type information. This is particularly useful when cataloging raster imagery or other file-based data where these properties are important for downstream processing or validation.
The package is a thin wrapper around the extension specification, designed to integrate seamlessly with PySTAC's asset and item models. It targets Python 3.10 and later, depends only on pystac-core, and is actively maintained by the STAC community. It carries no known security vulnerabilities and uses a permissive Apache-2.0 license.
Use it for:
- Add standardized file metadata (checksums, byte order) to raster imagery assets in a STAC catalog.
- Validate that file properties conform to the STAC File Info Extension v2.1.0 schema.
- Build STAC-compliant data catalogs where file-level details are required for reproducibility or data integrity checks.
- Extend existing PySTAC items with file metadata without manually managing extension fields.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Extends PySTAC to add File Info Extension support, enabling description of file metadata like byte order, checksum, header size, and data type for catalog assets.
Yes. The package is actively maintained, has no vulnerabilities, installs with minimal friction, and is licensed permissively. Install it if you are building or extending STAC catalogs and need to attach standardized file metadata to assets.
Install
pystac-ext-file on PyPI
pip
pip install pystac-ext-fileuv
uv add pystac-ext-filepoetry
poetry add pystac-ext-fileInstalling pystac-ext-file
Before you install
Low friction install with a single runtime dependency (pystac-core). Active maintenance with a recent release (4 days old) and no known vulnerabilities.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install pystac-ext-file
from pystac_ext_file import FileExtension
# Use FileExtension to add file metadata to STAC assets
file_ext = FileExtension.ext(asset, add_if_missing=True)
Requires Python 3.10 or later.
Verify before relying
- Whether the package provides direct methods to read/write file checksums or if it only defines the schema structure.
- Whether it handles validation of file metadata against the v2.1.0 specification automatically.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pystac-core |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,981,700/month — #2,421 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pystac_ext_file-2.1.1-py3-none-any.whl
Keywords: STAC, catalog, file, imagery, pystac, raster
Tags
More Information Analysis packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyarrowpyarrow provides Python bindings to Apache…
permissive · top 100 on PyPI
networkxNetworkX provides data structures and…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
contourpyContourPy calculates contours of 2D…
permissive · top 1,000 on PyPI
snowflake-snowpark-pythonSnowpark Python provides APIs to query and…
permissive · top 1,000 on PyPI
pystac-ext-rasterExtends PySTAC with the Raster Extension…
permissive · top 5,000 on PyPI
pystac-ext-tableExtends PySTAC to describe tabular data assets…
permissive · top 5,000 on PyPI
pystac-ext-timestampsAdds support for the Timestamps Extension to…
permissive · top 5,000 on PyPI
pystac-ext-versionAdds version tracking and deprecation status…
permissive · top 5,000 on PyPI
pystac-ext-xarray-assetsExtends PySTAC to support the Xarray Assets…
permissive · top 5,000 on PyPI
pystac-ext-renderExtends PySTAC to support the Render Extension…
permissive · top 5,000 on PyPI
pystac-ext-storageExtends PySTAC to add cloud storage metadata…
permissive · top 5,000 on PyPI
pystac-ext-scientificExtends PySTAC to add scientific publication…
permissive · top 5,000 on PyPI
pystac-ext-datacubeExtends PySTAC to support the Datacube…
permissive · top 5,000 on PyPI
pystac-ext-item-assetsExtends PySTAC to support the Item Assets…
permissive · top 5,000 on PyPI