skillfed

pystac-ext-file

File extension for PySTAC

pystac-ext-file v2.1.1 4.0M downloads/30d#2,421 on PyPI454
Permissive license Apache-2.0 Active released

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-file

uv

uv add pystac-ext-file

poetry

poetry add pystac-ext-file

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

Tags

STAC file metadata extensionPySTAC file infoasset file propertiesSTAC file checksumraster file metadatacatalog file details
stacmetadatageospatial

More Information Analysis packages

regex

A drop-in replacement for Python's standard…

permissive · top 100 on PyPI

pyarrow

pyarrow provides Python bindings to Apache…

permissive · top 100 on PyPI

networkx

NetworkX provides data structures and…

permissive · top 1,000 on PyPI

snowflake-connector-python

Connects Python applications to Snowflake data…

permissive · top 1,000 on PyPI

contourpy

ContourPy calculates contours of 2D…

permissive · top 1,000 on PyPI

snowflake-snowpark-python

Snowpark Python provides APIs to query and…

permissive · top 1,000 on PyPI

pystac-ext-raster

Extends PySTAC with the Raster Extension…

permissive · top 5,000 on PyPI

pystac-ext-table

Extends PySTAC to describe tabular data assets…

permissive · top 5,000 on PyPI

pystac-ext-timestamps

Adds support for the Timestamps Extension to…

permissive · top 5,000 on PyPI

pystac-ext-version

Adds version tracking and deprecation status…

permissive · top 5,000 on PyPI

pystac-ext-xarray-assets

Extends PySTAC to support the Xarray Assets…

permissive · top 5,000 on PyPI

pystac-ext-render

Extends PySTAC to support the Render Extension…

permissive · top 5,000 on PyPI

pystac-ext-storage

Extends PySTAC to add cloud storage metadata…

permissive · top 5,000 on PyPI

pystac-ext-scientific

Extends PySTAC to add scientific publication…

permissive · top 5,000 on PyPI

pystac-ext-datacube

Extends PySTAC to support the Datacube…

permissive · top 5,000 on PyPI

pystac-ext-item-assets

Extends PySTAC to support the Item Assets…

permissive · top 5,000 on PyPI