VersionedExtension¶
-
class
lsst.daf.butler.registry.interfaces.
VersionedExtension
¶ Bases:
abc.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. schemaDigest
()Return digest for schema piece managed by this extension. Methods Documentation
-
classmethod
currentVersion
() → Optional[lsst.daf.butler.registry.interfaces._versioning.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 :
-
schemaDigest
() → Optional[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.
-
classmethod