skillfed

stac-fastapi-types

Core API for stac-fastapi modules.

stac-fastapi-types v6.5.0 96.9K downloads/30d#13,187 on PyPI321
Permissive license MIT Active released

What it is and what it does

stac-fastapi-types is a core library that defines the type system and Pydantic data models for the STAC FastAPI implementation. It sits at the foundation of STAC API servers, providing standardized schemas for spatiotemporal asset catalogs—collections of geospatial data indexed by time and location. The package depends on FastAPI, Pydantic, attrs, iso8601, and starlette to deliver these models, and is designed to be used by other stac-fastapi modules that build complete server implementations on top of it.

Developers typically install this package as a dependency when building STAC API services or when integrating with other stac-fastapi components. It is not a standalone application but rather a foundational library that enforces schema consistency across STAC catalog implementations.

Use it for:

  • Building a STAC API server that indexes geospatial datasets by time and location
  • Integrating STAC catalog validation into a geospatial data pipeline using Pydantic models
  • Extending stac-fastapi with custom STAC API endpoints while maintaining schema compliance
  • Consuming STAC API responses in a client application that validates catalog structure

Worth the install?

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

Provides core type definitions and data models for building STAC API servers using FastAPI, enabling standardized geospatial catalog interfaces.

Yes, if you are building or extending a STAC API server or integrating with stac-fastapi components. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and carries low install friction. Install it as a dependency of a larger STAC implementation.

Install

stac-fastapi-types on PyPI

pip

pip install stac-fastapi-types

uv

uv add stac-fastapi-types

poetry

poetry add stac-fastapi-types

Installing stac-fastapi-types

Before you install

Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release 11 days ago and last commit on 2026-08-13. Supports current Python versions 3.11–3.14.

License in practice

MIT license permits commercial and private use with minimal restrictions, making it suitable for most deployment scenarios.

Quickstart

pip install stac-fastapi-types

from stac_fastapi_types import core
import fastapi

app = fastapi.FastAPI()
# Use stac-fastapi-types models in your STAC API implementation

Requires Python 3.11 or later.

Verify before relying

  • Whether this package is intended for end-user applications or primarily as a dependency for other STAC server implementations
  • What specific STAC API specification version(s) this release implements

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.11)
Install friction low — pure-Python wheel
Runtime dependencies 6 — attrs, fastapi, iso8601, pydantic-settings, stac-pydantic, starlette
Maintenance actively maintained — 11 days since the last release
Last repo commit
First released
Downloads 96,904/month — #13,187 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: stac_fastapi_types-6.5.0-py3-none-any.whl

Keywords: FastAPI, STAC, STAC-API

Intended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

stac api fastapi typesspatiotemporal asset catalog apifastapi geospatial catalogstac server implementationstac pydantic modelsgeospatial data api framework
geospatialstac-catalogfastapi-framework

More Application Frameworks packages