skillfed

pystac-ext-classification

Classification extension for PySTAC

pystac-ext-classification v2.0.1 4.0M downloads/30d#2,414 on PyPI454
Permissive license Apache-2.0 Active released

What it is and what it does

pystac-ext-classification is a PySTAC extension package that adds support for the STAC Classification Extension specification. It enables developers to attach categorical metadata to raster and vector data items, describing classification schemes with class names, descriptions, color hints, and regional mappings. The package targets multiple versions of the Classification Extension specification (v2.0.0, v1.1.0, v1.0.0) and is versioned to match the extension specification it implements.

The package depends on pystac-core for core STAC functionality and pystac-ext-raster for raster-specific support. It is actively maintained, with a production-stable status and support for Python 3.10 through 3.13. Installation is straightforward via a pure-Python wheel with no compiled dependencies.

Use it for:

  • Annotate raster imagery with classification metadata (e.g., land cover classes, confidence scores) in STAC catalogs.
  • Define and document classification schemes for machine learning training datasets with class names and color hints.
  • Map regional classification variants to the same STAC item for multi-region geospatial workflows.
  • Extend PySTAC items with categorical data descriptions for vector features or segmentation masks.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides PySTAC extension support for describing categorical data and classification schemes in raster and vector data, including class names, descriptions, color hints, and regional mappings.

Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive license, and provides essential extension support for STAC-based classification workflows. Install friction is low and Python version support is current. Suitable for projects that need to catalog and describe classified raster or vector data within PySTAC.

Install

pystac-ext-classification on PyPI

pip

pip install pystac-ext-classification

uv

uv add pystac-ext-classification

poetry

poetry add pystac-ext-classification

Installing pystac-ext-classification

Before you install

Low install friction with a pure-Python wheel. Active maintenance with a recent release (4 days old) and a commit history through 2026-08-10. Requires pystac-core and pystac-ext-raster as runtime dependencies.

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.

Quickstart

pip install pystac-ext-classification

from pystac_ext_classification import Classification

# Use Classification extension with PySTAC items
classification = Classification.from_dict(item_dict)

Requires Python 3.10 or later.

Verify before relying

  • Whether the extension integrates seamlessly with existing PySTAC workflows or requires specific setup steps.
  • Performance characteristics when working with large classification schemes or many regional mappings.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — pystac-core, pystac-ext-raster
Maintenance actively maintained — 4 days since the last release
Last repo commit
First released
Downloads 3,981,875/month — #2,414 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pystac_ext_classification-2.0.1-py3-none-any.whl

Keywords: STAC, catalog, classification, 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 classification extensionPySTAC categorical dataraster classification metadataSTAC class descriptionsclassification scheme for imageryPySTAC extensionvector data classification
geospatial-metadatastac-extensionraster-classification

More Information Analysis packages