Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
update storage extension to v2.0.0
  • Loading branch information
tylanderson committed Dec 7, 2025
commit c791f85926570d3845c20feaf3b43d528e2f5b93
24 changes: 18 additions & 6 deletions pystac/extensions/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from pystac.extensions.sar import SarExtension
from pystac.extensions.sat import SatExtension
from pystac.extensions.scientific import ScientificExtension
from pystac.extensions.storage import StorageExtension
from pystac.extensions.storage import StorageRefsExtension, StorageSchemesExtension
from pystac.extensions.table import TableExtension
from pystac.extensions.timestamps import TimestampsExtension
from pystac.extensions.version import BaseVersionExtension, VersionExtension
Expand Down Expand Up @@ -85,7 +85,7 @@
SarExtension.name: SarExtension,
SatExtension.name: SatExtension,
ScientificExtension.name: ScientificExtension,
StorageExtension.name: StorageExtension,
StorageSchemesExtension.name: StorageSchemesExtension,
TableExtension.name: TableExtension,
TimestampsExtension.name: TimestampsExtension,
VersionExtension.name: VersionExtension,
Expand Down Expand Up @@ -172,6 +172,10 @@ def render(self) -> dict[str, Render]:
def sci(self) -> ScientificExtension[Collection]:
return ScientificExtension.ext(self.stac_object)

@property
def storage(self) -> StorageSchemesExtension[Collection]:
return StorageSchemesExtension.ext(self.stac_object)

@property
def table(self) -> TableExtension[Collection]:
return TableExtension.ext(self.stac_object)
Expand Down Expand Up @@ -265,8 +269,8 @@ def sci(self) -> ScientificExtension[Item]:
return ScientificExtension.ext(self.stac_object)

@property
def storage(self) -> StorageExtension[Item]:
return StorageExtension.ext(self.stac_object)
def storage(self) -> StorageSchemesExtension[Item]:
return StorageSchemesExtension.ext(self.stac_object)

@property
def table(self) -> TableExtension[Item]:
Expand Down Expand Up @@ -376,8 +380,8 @@ def sat(self) -> SatExtension[U]:
return SatExtension.ext(self.stac_object)

@property
def storage(self) -> StorageExtension[U]:
return StorageExtension.ext(self.stac_object)
def storage(self) -> StorageRefsExtension[U]:
return StorageRefsExtension.ext(self.stac_object)

@property
def table(self) -> TableExtension[U]:
Expand Down Expand Up @@ -432,6 +436,10 @@ class ItemAssetExt(_AssetExt[ItemAssetDefinition]):
def mlm(self) -> MLMExtension[ItemAssetDefinition]:
return MLMExtension.ext(self.stac_object)

@property
def storage(self) -> StorageRefsExtension[ItemAssetDefinition]:
return StorageRefsExtension.ext(self.stac_object)


@dataclass
class LinkExt(_AssetsExt[Link]):
Expand All @@ -444,3 +452,7 @@ class LinkExt(_AssetsExt[Link]):
@property
def file(self) -> FileExtension[Link]:
return FileExtension.ext(self.stac_object)

@property
def storage(self) -> StorageRefsExtension[Link]:
return StorageRefsExtension.ext(self.stac_object)
Loading