YamlRepoImportBackend

class lsst.daf.butler.YamlRepoImportBackend(stream: IO)

Bases: lsst.daf.butler.RepoImportBackend

A repository import implementation that reads from a YAML file.

Parameters
stream

A readable file-like object.

Methods Summary

load(registry, datastore, *[, directory, …])

Import all information associated with the backend into the given registry and datastore.

Methods Documentation

load(registry: Registry, datastore: Datastore, *, directory: Optional[str] = None, transfer: Optional[str] = None)

Import all information associated with the backend into the given registry and datastore.

Import backends are expected to be constructed with a description of the objects that need to be imported (from, e.g., a file written by the corresponding export backend).

Parameters
registryRegistry

Registry to import into.

datastoreDatastore

Datastore to import into.

directorystr, optional

File all dataset paths are relative to.

transferstr, optional

Transfer mode forwarded to Datastore.ingest.