This project provides a web interface for converting XML to KMIP TTLV format using Flask. The interface includes an input box for XML, a button to perform the conversion, and an output box to display the TTLV representation.
- Python 3.x
- Flask
-
Clone the Repository
git clone https://github.com/visionjain/xml_to_kmip-ttlv_converter
-
Set Up a Virtual Environment (Optional but Recommended)
python -m venv venv
-
Activate the Virtual Environment
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install Flask
pip install Flask
-
Run the Flask Application
python xml-to-ttlv.py
-
Open in Browser
Open your web browser and go to
http://127.0.0.1:5000/
. You should see the web interface for converting XML to KMIP TTLV format. Enter your XML in the provided box and click the "Convert" button to see the TTLV output.
xml-to-kmip-ttlv-converter/
│
├── xml-to-ttlv.py
└── templates/
└── index.html
Make sure to place the index.html
file inside the templates
directory.
Feel free to open issues or submit pull requests if you find any bugs or have suggestions for improvements.
This project is licensed under the MIT License. See the LICENSE file for details.