Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
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
3 changes: 2 additions & 1 deletion docs/api/extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ pystac.extensions
sar.SarExtension
sat.SatExtension
scientific.ScientificExtension
storage.StorageExtension
storage.StorageSchemesExtension
storage.StorageRefsExtension
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the docs need to be reverted back to a single class?

table.TableExtension
timestamps.TimestampsExtension
version.VersionExtension
Expand Down
12 changes: 12 additions & 0 deletions pystac/extensions/ext.py
Original file line number Diff line number Diff line change
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) -> StorageExtension[Collection]:
return StorageExtension.ext(self.stac_object)

@property
def table(self) -> TableExtension[Collection]:
return TableExtension.ext(self.stac_object)
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) -> StorageExtension[ItemAssetDefinition]:
return StorageExtension.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) -> StorageExtension[Link]:
return StorageExtension.ext(self.stac_object)
Loading
Loading