taps.data.file¶
PickleFileTransformerConfig ¶
Bases: DataTransformerConfig
Pickle file transformer config.
add_argument_group()
classmethod
¶
add_argument_group(
parser: ArgumentParser,
*,
argv: Sequence[str] | None = None,
required: bool = True
) -> None
Add model fields as arguments of an argument group on the parser.
Parameters:
-
parser
(ArgumentParser
) –Parser to add a new argument group to.
-
argv
(Sequence[str] | None
, default:None
) –Optional sequence of string arguments.
-
required
(bool
, default:True
) –Mark arguments without defaults as required.
Source code in taps/config.py
get_transformer() ¶
get_transformer() -> PickleFileTransformer
Identifier ¶
PickleFileTransformer ¶
Pickle file object transformer.
Parameters:
Source code in taps/data/file.py
close() ¶
is_identifier() ¶
transform() ¶
transform(obj: T) -> Identifier
Transform the object into an identifier.
Parameters:
-
obj
(T
) –Object to transform.
Returns:
-
Identifier
–Identifier object that can be used to resolve
obj
.
Source code in taps/data/file.py
resolve() ¶
resolve(identifier: Identifier) -> Any
Resolve an object from an identifier.
Parameters:
-
identifier
(Identifier
) –Identifier to an object.
Returns:
-
Any
–The resolved object.