Project Title

YAML to HTML Converter

Project Description

 A client required assistance with converting a YAML file, containing nested key-value pairs and comments, into a readable HTML format. The project involved developing a script that could accurately parse the YAML structure and generate a user-friendly HTML file that mirrors the demo provided by the client.

Key Responsibilities

  • Analyzed the YAML file structure and the provided HTML demo to understand the desired output.
  • Developed a Python script to parse the YAML file and convert it into an HTML file, preserving the nested structure and comments.
  • Ensured the generated HTML was clean, readable, and matched the client’s specifications.
  • Provided detailed documentation and instructions for running the script.

Technologies Used

  • Languages: Python, HTML/CSS
  • Libraries: PyYAML (Python YAML parser)
  • For HTML templating: Jinja2 

Challenges Faced:

  • Handling deeply nested structures in the YAML file while maintaining readability in the HTML output.
  • Ensuring comments within the YAML file were appropriately included and formatted in the HTML.

Results Achieved

  • Successfully delivered a Python script that accurately converted the YAML file to the specified HTML format.
  • The client was able to generate readable HTML files from their YAML data effortlessly.
  • Received positive feedback from the client for the script’s efficiency and the quality of the documentation provided.

Screenshots/Demo

Feedback

© 2024 Ifrah Shahid. All Rights Reserved.