Skip to content

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.

License

Notifications You must be signed in to change notification settings

hevel86/wdb_excel_conversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages