Implements the Versioning Indicators Extension.
A concrete implementation of VersionExtension
on an Asset
that extends the properties of the Asset to include properties defined in the Versioning Indicators Extension.
This class should generally not be instantiated directly. Instead, call VersionExtension.ext()
on an Asset
to extend it.
The properties that this extension wraps.
The extension which implements PropertiesExtension can use _get_property
and _set_property
to get and set values on this instance. Note that _set_properties mutates the properties directly.
A base extension that just gets and sets attributes, not links.
Used for Assets and AssetDefinitions.
Applies attributes to this extension object.
Get or sets whether this object is deprecated.
A value of True
specifies that the object is deprecated with the potential to be removed. It should be transitioned out of usage as soon as possible and users should refrain from using it in new projects. A link with relation type latest-version
SHOULD be added to the links and MUST refer to the resource that can be used instead.
Note
A pystac.DeprecatedWarning
is issued if the deprecated
property is True
when deserializing a dictionary to an object. The ignore_deprecated()
context manager is provided as a convenience to suppress these warnings:
>>> with ignore_deprecated(): ... deprecated_item = pystac.Item.from_dict(deprecated_item_dict)
Get and set whether this object is experimental.
Specifies that the context this field is used in (e.g. Asset or Collection) is experimental with the potential to break or be unstable.
Extends the given STAC Object with properties from the Versioning Indicators Extension.
pystac.ExtensionTypeError – If an invalid object type is passed.
Gets the schema URI associated with this extension.
Get or sets a version string of this object.
A concrete implementation of VersionExtension
on a Catalog
that extends the properties of the Catalog to include properties defined in the Versioning Indicators Extension.
This class should generally not be instantiated directly. Instead, call VersionExtension.ext()
on an Catalog
to extend it.
The properties that this extension wraps.
The extension which implements PropertiesExtension can use _get_property
and _set_property
to get and set values on this instance. Note that _set_properties mutates the properties directly.
A concrete implementation of VersionExtension
on a Collection
that extends the properties of the Collection to include properties defined in the Versioning Indicators Extension.
This class should generally not be instantiated directly. Instead, call VersionExtension.ext()
on an Collection
to extend it.
The properties that this extension wraps.
The extension which implements PropertiesExtension can use _get_property
and _set_property
to get and set values on this instance. Note that _set_properties mutates the properties directly.
The properties that this extension wraps.
The extension which implements PropertiesExtension can use _get_property
and _set_property
to get and set values on this instance. Note that _set_properties mutates the properties directly.
A concrete implementation of VersionExtension
on an Item
that extends the properties of the Item to include properties defined in the Versioning Indicators Extension.
This class should generally not be instantiated directly. Instead, call VersionExtension.ext()
on an Item
to extend it.
The properties that this extension wraps.
The extension which implements PropertiesExtension can use _get_property
and _set_property
to get and set values on this instance. Note that _set_properties mutates the properties directly.
Generalized version of Catalog
, Collection
, Item
, Asset
or ItemAssetDefinition
alias of TypeVar(‘T’, ~pystac.catalog.Catalog, ~pystac.collection.Collection, ~pystac.item.Item, ~pystac.asset.Asset, ~pystac.item_assets.ItemAssetDefinition)
Generalized version of Catalog
, Collection
, or Item
alias of TypeVar(‘U’, ~pystac.catalog.Catalog, ~pystac.collection.Collection, ~pystac.item.Item)
An abstract class that can be used to extend the properties of an Item
, Collection
, or Catalog
with properties from the Versioning Indicators Extension. This class is generic over the type of STAC Object to be extended.
To create a concrete instance of VersionExtension
, use the VersionExtension.ext()
method. For example:
>>> item: pystac.Item = ... >>> version_ext = VersionExtension.ext(item)
Applies version extension properties to the extended Item
or Collection
.
version – The version string for the item.
deprecated – Optional flag set to True
if an Item is deprecated with the potential to be removed. Defaults to False
if not present.
latest – Item representing the latest (e.g., current) version.
predecessor – Item representing the resource containing the predecessor version in the version history.
successor – Item representing the resource containing the successor version in the version history.
Extends the given STAC Object with properties from the Versioning Indicators Extension.
This extension can be applied to instances of Item
or Collection
.
pystac.ExtensionTypeError – If an invalid object type is passed.
A list of rel types defined in the Version Extension.
See the Version Extension Relation types documentation for details.
This link points to a version history or changelog.
This can be for example a Markdown file with the corresponding media type or a STAC Catalog or Collection.
Indicates a link pointing to a resource containing the latest version.
Indicates a link pointing to a resource containing the predecessor version in the version history.
Indicates a link pointing to a resource containing the successor version in the version history.
Context manager for suppressing the pystac.DeprecatedWarning
when creating a deprecated Item
or Collection
from a dictionary.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4