Skip to content

Module stac_fastapi.core.extensions

elasticsearch extensions modifications.

Sub-modules

Classes

Operator

class Operator(
    /,
    *args,
    **kwargs
)

Defines the set of operators supported by the API.

Ancestors (in MRO)

  • builtins.str
  • stac_pydantic.utils.AutoValueEnum
  • enum.Enum

Class variables

eq
gt
gte
lt
lte
ne

QueryExtension

class QueryExtension(
    conformance_classes: List[str] = NOTHING,
    schema_href: Union[str, NoneType] = None
)

Query Extenson.

Override the POST request model to add validation against supported fields

Ancestors (in MRO)

  • stac_fastapi.extensions.core.query.query.QueryExtension
  • stac_fastapi.types.extension.ApiExtension
  • abc.ABC

Class variables

GET
POST

Methods

get_request_model

def get_request_model(
    self,
    verb: Union[str, NoneType] = 'GET'
) -> Union[pydantic.main.BaseModel, NoneType]

Return the request model for the extension.method.

The model can differ based on HTTP verb

register

def register(
    self,
    app: fastapi.applications.FastAPI
) -> None

Register the extension with a FastAPI application.

Parameters:

Name Type Description Default
app None target FastAPI application. None

Returns:

Type Description
None None

QueryableTypes

class QueryableTypes(

)

Defines a set of queryable fields.