pystac-ext-classification
Classification extension for PySTAC
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-classificationuv
uv add pystac-ext-classificationpoetry
poetry add pystac-ext-classificationInstalling 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
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-renderExtends PySTAC to support the Render Extension…
permissive · top 5,000 on PyPI
pystac-ext-projectionExtends PySTAC to add geospatial projection…
permissive · top 5,000 on PyPI
pystac-ext-eoExtends PySTAC to add Electro-Optical extension…
permissive · top 5,000 on PyPI
pystac-ext-gridExtends PySTAC to describe gridded data…
permissive · top 5,000 on PyPI
pystac-ext-mlmAdds Machine Learning Model extension support…
permissive · top 5,000 on PyPI
pystac-ext-storageExtends PySTAC to add cloud storage metadata…
permissive · top 5,000 on PyPI
pystac-ext-pointcloudExtends PySTAC to support the Point Cloud…
permissive · top 5,000 on PyPI
rio-stacrio-stac creates valid STAC Items from raster…
permissive · top 15,000 on PyPI
mapclassifyMapclassify implements classification schemes…
permissive · top 5,000 on PyPI