Skip to content

1.2.0 Documentation

Mealman1551 edited this page Dec 3, 2024 · 2 revisions

ADC Archiver Documentation

ADC Archiver is a Python-based tool for creating and extracting compressed .adc archives.


Features

  • Create archives: Compress and store multiple files in a single .adc archive.
  • Extract archives: Decompress .adc archives to their original files.
  • Cross-platform GUI support: File and folder selection dialogs.
  • Command-line support: Automate extraction via arguments.
  • Interactive console: Intuitive interface for creating and extracting archives.

Prerequisites

  • Python 3.6 or higher
  • Built-in libraries: zlib, tkinter

Functions Overview

1. Read and Compress Files

  • read_binary_file(file_path): Reads binary data from a file.
  • parma_compress(data): Compresses data using zlib.
  • parma_decompress(compressed_data): Decompresses zlib-compressed data.

2. Create and Extract Archives

  • create_adc_archive(file_paths, output_path)
    Compresses multiple files into a .adc archive.
    Parameters:

    • file_paths: List of file paths to include.
    • output_path: Path to save the archive.
  • extract_adc_archive(archive_path, output_dir)
    Extracts files from a .adc archive.
    Parameters:

    • archive_path: Path to the archive.
    • output_dir: Directory for extracted files.

3. GUI Dialog Functions

  • select_files_for_archiving(): Opens a dialog to select files.
  • select_directory_for_extraction(): Opens a dialog to select a folder.
  • save_archive_file(): Prompts for saving an .adc archive.
  • open_archive_file(): Opens a dialog to select an .adc file.

Clone this wiki locally