Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Changed

- Remove unused pystac.validation import ([#1583](https://github.com/stac-utils/pystac/pull/1583))
- Updated storage extension to v2.0.0

### Fixed

Expand Down
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
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