VersionedExtension¶
- class lsst.daf.butler.registry.interfaces.VersionedExtension¶
Bases:
ABC
Interface for extension classes with versions.
Methods Summary
Return extension version as defined by current implementation.
Return full name of the extension.
Return digest for schema piece managed by this 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:
- version
VersionTuple
Current extension version or
None
.
- version
- 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:
- name
str
Full extension name.
- name
- abstract schemaDigest() str | None ¶
Return digest for schema piece managed by this extension.
- Returns:
Notes
There is no exact definition of digest format, any string should work. The only requirement for string contents is that it has to remain stable over time if schema does not change but it should produce different string for any change in the schema. In many cases default implementation in
_defaultSchemaDigest
can be used as a reasonable choice.