{"id":25176659,"url":"https://github.com/benitmulindwa/fletifyhtml","last_synced_at":"2025-08-11T22:41:13.897Z","repository":{"id":213185014,"uuid":"733258769","full_name":"Benitmulindwa/FletifyHTML","owner":"Benitmulindwa","description":"FletifyHTML is a versatile Python tool designed to convert HTML content into Flet code. ","archived":false,"fork":false,"pushed_at":"2024-01-18T18:38:54.000Z","size":69,"stargazers_count":38,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-22T21:04:33.877Z","etag":null,"topics":["design","flet","flet-dev","fletifyhtml","html5","python","ui"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Benitmulindwa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-18T23:27:02.000Z","updated_at":"2025-05-12T14:38:49.000Z","dependencies_parsed_at":"2024-01-04T22:35:17.741Z","dependency_job_id":"876168c2-3b6a-4366-87f9-02dde770ffac","html_url":"https://github.com/Benitmulindwa/FletifyHTML","commit_stats":null,"previous_names":["benitmulindwa/fletifyhtml"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Benitmulindwa/FletifyHTML","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benitmulindwa%2FFletifyHTML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benitmulindwa%2FFletifyHTML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benitmulindwa%2FFletifyHTML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benitmulindwa%2FFletifyHTML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Benitmulindwa","download_url":"https://codeload.github.com/Benitmulindwa/FletifyHTML/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benitmulindwa%2FFletifyHTML/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269969821,"owners_count":24505437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["design","flet","flet-dev","fletifyhtml","html5","python","ui"],"created_at":"2025-02-09T13:17:49.401Z","updated_at":"2025-08-11T22:41:13.842Z","avatar_url":"https://github.com/Benitmulindwa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FletifyHTML\n\nFletifyHTML is a Python package for converting HTML content into Flet code. It allows you to embed HTML code in your Flet app\n\n## Installation\n### (Not avalaible for now,...) \n```bash\npip install fletify\n```\n### Alternative\nInstall via Github and use the `example.py` to test Fletify\n\n```bash\npip install git+https://github.com/Benitmulindwa/FletifyHTML.git\n```\n## Usage\n```python\nimport flet as ft\nfrom fletify import FletifyHTML\n\n# Example HTML content\nhtml_content = \"\u003cp\u003eThis is a \u003cb\u003eparagraph\u003c/b\u003e with \u003ca href='#'\u003ea link\u003c/a\u003e\u003c/p\u003e\"\n\n# Create a FletifyHTML instance\nfletify = FletifyHTML(html_content)\n\n# Get the Flet code\nflet_code = fletify.get_flet()\n\ndef main(page: ft.Page):\n\n    #Display the output, by adding it on the page \n    page.add(flet_code)\n    page.update()\n\nft.app(target=main)\n```\n# OutPut:\n![test1](test1.PNG)\n\n`FletifyHTML()` can receive the HTML file containing the content to be displayed, `FletifyHTML(html=\u003cpath-to-your-html-file\u003e)` \n\n## Features\n\nFor now, **Fletify** support the following HTML tags:\n\n`img`, `ul`, `ol`, `li`, `a`, `b`, `strong`, `i`, `em`, `u`, `mark`, `span`, `div`, `p`, `code`, `h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `table`, `tr`, `th`, `td`\nFletify doesn't support CSS style however, it supports inline style using the `style` attribute.\n#### eg:\n```html\n\u003cimg style=\"width: 200; height: 200; background-color:yellow; border-radius: 5; border: 3 solid #336699; margin:40\" src=\"https://picsum.photos/200/200?10\" alt=\"Example Image\"\u003e\n```\nthese are the supported style properties\n`color`, `background-color`, `font-family`, `font-size`, `text-align`, `text-decoration`, `display`, `justify-content`, `margin`, `padding`, `border-radius`, `border`, `width`, `height`\n\n## Contributing\nIf you'd like to contribute to FletifyHTML, please open an issue or submit a pull request.\n\n🚨 Give FletifyHTML a try and tell us what you think about it.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenitmulindwa%2Ffletifyhtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenitmulindwa%2Ffletifyhtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenitmulindwa%2Ffletifyhtml/lists"}