Source code for satorbis_kit.pgstac.uploader.base

"""Abstract definitions for STAC raster upload helpers."""

from __future__ import annotations

from abc import ABC, abstractmethod
from typing import Optional


[docs] class AbstractRasterUploadHandler(ABC): """Defines how to build remote paths for raster uploads."""
[docs] @abstractmethod def build_remote_path( self, collection: str, filename: str, subfolder: Optional[str] = None, ) -> str: """Return the remote object path (excluding bucket) for a raster."""