Coder Social home page Coder Social logo

hevel86 / wdb_excel_conversion Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

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: MIT License

Python 100.00%

wdb_excel_conversion's Introduction

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.

wdb_excel_conversion's People

Contributors

hevel86 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.