{"id":13706769,"url":"https://github.com/juniors90/Flask-FomanticUI","last_synced_at":"2025-05-05T23:31:38.396Z","repository":{"id":50424450,"uuid":"423162629","full_name":"juniors90/Flask-FomanticUI","owner":"juniors90","description":"Flask extension to allow easy embedding of Fomantic-UI CSS Framework.","archived":false,"fork":false,"pushed_at":"2023-02-10T02:26:28.000Z","size":7133,"stargazers_count":17,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T10:18:36.182Z","etag":null,"topics":["css3","flask","flask-sqlalchemy","flask-wtf","fomantic-ui","python","semantic-ui"],"latest_commit_sha":null,"homepage":"https://flask-fomanticui.readthedocs.io/en/latest/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juniors90.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.buymeacoffee.com/Juniors90"]}},"created_at":"2021-10-31T13:56:57.000Z","updated_at":"2025-02-12T06:39:30.000Z","dependencies_parsed_at":"2024-03-04T00:34:28.266Z","dependency_job_id":"08eabac7-bfc7-4aeb-8bea-2b1184b1d636","html_url":"https://github.com/juniors90/Flask-FomanticUI","commit_stats":{"total_commits":26,"total_committers":3,"mean_commits":8.666666666666666,"dds":0.1923076923076923,"last_synced_commit":"efbbded1845f3c0c872d94a33407baf62c3a5efd"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniors90%2FFlask-FomanticUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniors90%2FFlask-FomanticUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniors90%2FFlask-FomanticUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniors90%2FFlask-FomanticUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juniors90","download_url":"https://codeload.github.com/juniors90/Flask-FomanticUI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252593098,"owners_count":21773406,"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","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":["css3","flask","flask-sqlalchemy","flask-wtf","fomantic-ui","python","semantic-ui"],"created_at":"2024-08-02T22:01:07.690Z","updated_at":"2025-05-05T23:31:33.386Z","avatar_url":"https://github.com/juniors90.png","language":"CSS","readme":"# Flask-FomanticUI\n\n[![Build status](https://github.com/juniors90/Flask-FomanticUI/actions/workflows/testing-package.yml/badge.svg)](https://github.com/juniors90/Flask-FomanticUI/actions)\n[![codecov](https://codecov.io/gh/juniors90/Flask-FomanticUI/branch/main/graph/badge.svg?token=YNCV9C9GIG)](https://codecov.io/gh/juniors90/Flask-FomanticUI)\n![docstr-cov](https://img.shields.io/endpoint?url=https://jsonbin.org/juniors90/Flask-FomanticUI/badges/docstr-cov)\n![PyPI](https://img.shields.io/pypi/v/Flask-FomanticUI?logoColor=green)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/Flask-FomanticUI)\n[![Documentation Status](https://readthedocs.org/projects/flask-fomanticui/badge/?version=latest)](https://flask-fomanticui.readthedocs.io/en/latest/?badge=latest)\n[![Forks](https://img.shields.io/github/forks/juniors90/Flask-FomanticUI)](https://github.com/juniors90/Flask-FomanticUI/stargazers)\n[![star](https://img.shields.io/github/stars/juniors90/Flask-FomanticUI?color=yellow)](https://github.com/juniors90/Flask-FomanticUI/network/members)\n[![issues](https://img.shields.io/github/issues/juniors90/Flask-FomanticUI?color=teal)](https://github.com/juniors90/Flask-FomanticUI/issues)\n[![GitHub contributors](https://img.shields.io/github/contributors/juniors90/Flask-FomanticUI?color=green)](https://github.com/juniors90/Flask-FomanticUI/graphs/contributors)\n[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nFlask-FomanticUI is a collection of Jinja macros for [Fomantic UI](https://fomantic-ui.com/) and\n[Flask](https://flask.palletsprojects.com/en/2.0.x/) for the global style. Very similar\nto [Bootstrap-Flask](https://github.com/greyli/bootstrap-flask). \n\n## Features\n\n- [x] Table generation: Render data objects (dict or class objects) to Fomantic UI Table.\n- [x] Paginate generation: Render Flask-SQLAlchemy `Pagination` object to Fomantic UI Pagination.\n- [x] Form generation: Render Flask-WTF/WTForms form object to Fomantic UI Form, etc.\n\n\n## Requirements\n\nPython 3.8+\n\n## Dependecies for this project.\n\n- [Flask(\u003e=2.0.2)](https://flask.palletsprojects.com/en/2.0.x/) for build the backend.\n\n## intallation\n\nYou can install via pip:\n\n```cmd\n    $\u003e pip install Flask-FomanticUI\n```\n\n## Example\n\nRegister the extension:\n\n```python\nfrom flask import Flask\n# To follow the naming rule of Flask extension, although\n# this project's name is Flask-FomanticUI, the actual package\n# installed is named `flask_fomanticui`.\nfrom flask_fomanticui import FomanticUI\n\napp = Flask(__name__)\nfomantic = FomanticUI(app)\n```\n\nAssuming you have a Flask-WTF form like this:\n\n```python\nclass LoginForm(FlaskForm):\n    username = StringField('Username', validators=[DataRequired(), Length(1, 20)])\n    password = PasswordField('Password', validators=[DataRequired(), Length(8, 150)])\n    submit = SubmitField()\n    remember = BooleanField('Remember me')\n```\n\nNow with the `render_ui_form` macro:\n\n```html\n{% from 'fomanticui/form_ui.html' import render_ui_form %}\n\u003chtml\u003e\n\u003chead\u003e\n\u003c!-- Fomantic UI - CSS --\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\n\u003ch2\u003eLogin\u003c/h2\u003e\n{{ render_ui_form(form) }}\n\n\u003c!-- Fomantic UI - JS --\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nYou will get a form like this with only one line code (i.e. `{{ render_ui_form(form) }}`):\n\n![form rendering](https://raw.githubusercontent.com/juniors90/Flask-FomanticUI/master/docs/source/_static/form-example.PNG)\n\nWhen the validation fails, the error messages will be rendered with proper style:\n\n![error form rendering](https://raw.githubusercontent.com/juniors90/Flask-FomanticUI/master/docs/source/_static/error-form-example.PNG)\n\nRead the [Basic Usage](https://flask-fomanticui.readthedocs.io/en/latest/notes/basic.html) \ndocs for more details.\n\n## Links\n\n- [Documentation](https://flask-fomanticui.readthedocs.io)\n- [Example Application](https://github.com/juniors90/Flask-FomanticUI/tree/main/sample_app)\n- [PyPI Releases](https://pypi.org/project/Flask-FomanticUI/)\n- [Changelog](https://github.com/juniors90/Flask-FomanticUI/blob/main/CHANGELOG.rst)\n\n\n## Authors\n\n- Ferreira, Juan David\n\nPlease submit bug reports, suggestions for improvements and patches via\nthe (E-mail: juandavid9a0@gmail.com).\n\n## Contributors\n\nCredits goes to these peoples:\n\n\u003ca href=\"https://github.com/juniors90/Flask-FomanticUI/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=juniors90/Flask-FomanticUI\" /\u003e\n\u003c/a\u003e\n\n## Official repository and Issues\n\n- https://github.com/juniors90/Flask-FomanticUI\n\n\n## License\n\n`Flask-FomanticUI` is free software you can redistribute it and/or modify it\nunder the terms of the MIT License. For more information, you can see the\n[LICENSE](https://github.com/juniors90/Flask-FomanticUI/blob/main/LICENSE) file\nfor details.\n","funding_links":["https://www.buymeacoffee.com/Juniors90"],"categories":["CSS"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuniors90%2FFlask-FomanticUI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuniors90%2FFlask-FomanticUI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuniors90%2FFlask-FomanticUI/lists"}