VersionedExtension

class lsst.daf.butler.registry.interfaces.VersionedExtension

Bases: ABC

Interface for extension classes with versions.

Methods Summary

currentVersion()

Return extension version as defined by current implementation.

extensionName()

Return full name of the extension.

Methods Documentation

abstract classmethod currentVersion() VersionTuple | None

Return extension version as defined by current implementation.

This method can return None if an extension does not require its version to be saved or checked.

Returns:
versionVersionTuple

Current extension version or None.

classmethod extensionName() str

Return full name of the extension.

This name should match the name defined in registry configuration. It is also stored in registry attributes. Default implementation returns full class name.

Returns:
namestr

Full extension name.