Dcc XMLJSONConvGUI
This is a simple GUI for converting XML to JSON DCC and vice versa. It uses the xmltodict
and json
libraries to convert the files.
The Gui looks like This:
Usage
Edit XML or JSON in the Text Areas / Tree Views and click the Convert button to convert the data to the other format. To Download the converted file click the Download button.
Installation
There are two ways to install/deploy the application:
- Using the docker container
- Using the python package and running the application locally
Using the docker container
To use the docker container, you need to have docker installed on your machine. If you don't have docker installed, you can download it from here. Once you have docker installed, you can run the following commands to pull the repository and biuld docker image and run the container:
docker pull benesee/dccxmljsonconvgui:latest
docker run --name dccxmljsonconvgui -d benesee/dccxmljsonconvgui
To access the application, open your browser and go to http://localhost:5008/dccxmljsonconvgui/
The DCC XMLJSONConverter REST Api is also available at http://localhost:5009/
Using the python package and running the application locally
To run the application locally, you need to have python installed on your machine. If you don't have python installed, you can download it from here. Once you have python installed, you can run the following commands to download the package install all dependencies and run the application:
git clone https://gitlab1.ptb.de/digitaldynamicmeasurement/dcc_XMLJSONConvGUI.git
cd dcc_XMLJSONConvGUI
pip install -r requirements.txt
chmod +x ./start_server.sh
./start_server.sh
To access the application, open your browser and go to http://localhost:5008/dccxmljsonconvgui/
The DCC XMLJSONConverter REST Api is also available at http://localhost:5009/