Skip to content

Files

Latest commit

 

History

History
66 lines (46 loc) · 2.17 KB

README.md

File metadata and controls

66 lines (46 loc) · 2.17 KB

WDB to Excel Conversion

This Python program converts Microsoft Works Database (WDB) files to Excel (XLSX) format. The program utilizes the WorksDatabaseConverter.jar Java library for extracting header fields and LibreOffice for the actual conversion. It can be run both in a standalone environment or within a Docker container.

Standalone Requirements

Installation

  1. Clone the repository:
git clone https://gitea.mbd-inc.io/michael.dages/wdb_excel_conversion.git
  1. Install the required Python package:
pip install openpyxl 
  1. Download and install Java Runtime Environment (JRE) if not already installed.
  2. Download and install LibreOffice.
  3. Place the WorksDatabaseConverter.jar file in the source directory.

Usage

  1. Adjust the following variables in the script according to your system and requirements:

    • source_dir: The directory where the WDB files are located.
    • converter_path: The path to the WorksDatabaseConverter.jar file.
    • libreoffice_path: The path to the LibreOffice executable.
  2. Run the script:

 python main.py

Replace path/to/source, /path/to/WorksDatabaseConverter.jar, and /path/to/soffice with the appropriate paths on your system.

Docker Compose (Preferred Method)

  wdb_excel_conversion:
    container_name: wdb_excel_conversion
    image: gitea.mbd-inc.io/michael.dages/wdb_excel_conversion:latest
    environment:
      - CONVERTER_PATH=/path/to/WorksDatabaseConverter.jar #optional
      - LIBREOFFICE_PATH=/path/to/soffice #optional
    volumes:
      - /path/to/source:/app/source

Replace path/to/source, /path/to/WorksDatabaseConverter.jar, and /path/to/soffice with the appropriate paths on your system.

License

This project is licensed under the MIT License. See the LICENSE file for details.