ddpy.utils package¶
Submodules¶
ddpy.utils.utils module¶
-
ddpy.utils.utils.calculate_checksum(self, headers)¶ Calculate the header checksum used for authentication.
-
ddpy.utils.utils.generate_meta_file_contents(orig_file_name: str, sample_file_sha1: str, archive_password: str, client_uuid: str, source_id: str, sample_file_exists: int = 1, sample_type: int = 0)¶
-
ddpy.utils.utils.get_challenge()¶ Get the unique challenge UUID value for the Challenge header.
-
ddpy.utils.utils.get_epoch_time()¶ Get the epoch time (for the X-DTAS-Time header value.
-
ddpy.utils.utils.get_system_hostname()¶ Get the hostname of the system from which the script is being run
-
ddpy.utils.utils.hash_file(filename)¶ Calculate the SHA1 of a file