Skip to main content
Version: 0.6

encoding

superduper.base.encoding

Source code

EncodeContext​

EncodeContext(self,
name: str = '__main__',
builds: Dict[str,
dict] = <factory>,
blobs: Dict[str,
bytes] = <factory>,
files: Dict[str,
str] = <factory>,
db: Optional[ForwardRef('Datalayer')] = None,
leaves_to_keep: Sequence[ForwardRef('Base')] = <factory>,
metadata: bool = True,
defaults: bool = True) -> None
ParameterDescription
buildsA dictionary of builds.
blobsA dictionary of blobs.
filesA dictionary of files.
dbA Datalayer instance.
leaves_to_keepA sequence of Base instances to keep.
metadataWhether to include metadata.
defaultsWhether to include defaults.

Context for encoding and decoding data.