Skip to content

Commit

Permalink
backends -> stac
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Dec 4, 2024
1 parent 1883260 commit 34c3453
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions titiler/openeo/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from titiler.core.factory import BaseFactory
from titiler.openeo import __version__ as titiler_version
from titiler.openeo import models
from titiler.openeo.backends import BaseBackend
from titiler.openeo.models import OPENEO_VERSION
from titiler.openeo.stac import STACBackend

STAC_VERSION = "1.0.0"

Expand All @@ -20,7 +20,7 @@
class EndpointsFactory(BaseFactory):
"""OpenEO Endpoints Factory."""

stac_backend: BaseBackend
stac_backend: STACBackend

def register_routes(self):
"""Register Routes."""
Expand Down
2 changes: 1 addition & 1 deletion titiler/openeo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

from titiler.core.middleware import CacheControlMiddleware
from titiler.openeo import __version__ as titiler_version
from titiler.openeo.backends import get_stac_backend
from titiler.openeo.factory import EndpointsFactory
from titiler.openeo.settings import ApiSettings, STACSettings
from titiler.openeo.stac import get_stac_backend

STAC_VERSION = "1.0.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from urllib.parse import urlparse

from .base import BaseBackend # noqa
from .base import STACBackend # noqa


def get_stac_backend(url: str, **kwargs):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


@define(kw_only=True)
class BaseBackend(metaclass=abc.ABCMeta):
class STACBackend(metaclass=abc.ABCMeta):
"""ABC Class defining STAC Backends."""

url: str = field()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
from psycopg_pool import ConnectionPool

from ..settings import PgSTACSettings
from .base import BaseBackend
from .base import STACBackend


@define
class pgStacBackend(BaseBackend):
class pgStacBackend(STACBackend):
"""PgSTAC Backend."""

url: str = field()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
from urllib3 import Retry

from ..settings import PySTACSettings
from .base import BaseBackend
from .base import STACBackend


@define
class stacApiBackend(BaseBackend):
class stacApiBackend(STACBackend):
"""PySTAC-Client Backend."""

url: str = field()
Expand Down

0 comments on commit 34c3453

Please sign in to comment.