Skip to main content
Version: Main branch

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,
keep_variables: bool = False,
defaults: bool = True,
export: bool = False) -> None
ParameterDescription
nameName of the context.
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.
keep_variablesWhether to keep variables.
defaultsWhether to include defaults.
exportWhether in export mode.

Context for encoding and decoding data.