available_schema_classes#

lsst.images.serialization.available_schema_classes(package: str = 'lsst.images') list[type[ArchiveTree]]#

Return every ArchiveTree subclass owned by package, sorted by schema name.

Parameters#

package

Only classes whose defining module is this package (or a subpackage of it) are returned, so a package freezes and publishes exactly the schemas it owns, and schema classes created elsewhere (e.g. test doubles) are never picked up by accident.

Notes#

Candidate schemas come from the in-memory registry, the built-in lazy providers, and the lsst.images.schemas entry point group, so an external package’s schemas are found even when nothing has imported their modules yet.