Df Archive

dffml.df.archive.create_archive_dataflow(seed: set) DataFlow[source]

A function to create appropriate dataflow to extract/create an archive if it is supported.

dffml.df.archive.create_chained_archive_dataflow(action, first_op, second_op, seed, temp_dir) DataFlow[source]

A function to create chained dataflows for archive extraction/creation.

dffml.df.archive.deduce_archive_action(seed: Dict) Tuple[str][source]

A function to deduce archive action as ‘extract’ or ‘archive’ based on the seed and find type and compression of the archive.

dffml.df.archive.get_archive_path_info(path: str) Tuple[str][source]

A function to find type of archive from the given path if the file does not exists.

dffml.df.archive.get_archive_type(file_path: str) Tuple[str][source]

A function to get archive type if the file exists.

dffml.df.archive.get_key_substr(string: str, dict: dict, return_value: bool = True) Any[source]

A function to find dictionary items whose key matches a substring.

dffml.df.archive.get_operations(archive_action: str, archive_type: str, compression_type: str) Tuple[Operation][source]

A function to fetch relevant operations based on type of archive and compression if any.