Skip to content

mnau23/etrade_xml2xlsx

Repository files navigation

Xml2Xlsx

code style: black linting: pylint security: bandit

Small project to convert an XML file (Fattura Elettronica) into an Excel file.

Usage

The app is available both as CLI and as GUI, respectively run:

  • python src/cli.py
  • python src/gui.py

Build

MacOS

py2app was used in order to build and create a MacOS app for this project.

Debug: python src/setup.py py2app -A
Release: python src/setup.py py2app

In both cases, the app will be available in dist/ folder.

Create DMG

Once the release version is ready:

  • install brew install create-dmg
  • run
    mkdir -p dist/dmg
    cp -r "dist/Xml2Xlsx.app" dist/dmg
    create-dmg --volname "Xml2Xlsx" --volicon "assets/icon_512x512@[email protected]" --window-pos 200 120 \
      --window-size 600 300 --icon-size 100 --icon "Xml2lsx.app" 175 120 \
      --hide-extension "Xml2Xlsx.app" --app-drop-link 425 120 "dist/Xml2Xlsx.dmg" "dist/dmg/"

Windows

(Currently disabled)

PyInstaller was used in order to build and create an executable for this project.
NB: Option --add-data loads some required non-binary files into the executable.

python -m PyInstaller --add-data 'files/;.' --onefile src/cli.py

Finally, the .exe file will be available in dist/ folder.

License

GPL v3 - Copyright 2021 © mnau23

About

App for converting XML to XLSX

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project