{"id":16545536,"url":"https://github.com/MohammadrezaAmani/INUI","last_synced_at":"2025-10-28T15:31:34.762Z","repository":{"id":188237387,"uuid":"678351829","full_name":"MohammadrezaAmani/INUI","owner":"MohammadrezaAmani","description":"Powerful and Highly Customizable Python Library for UI","archived":false,"fork":false,"pushed_at":"2024-01-12T12:33:45.000Z","size":2204,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-14T16:15:29.990Z","etag":null,"topics":["bootstrap","frontend","html","inui","jinja2","library","pyhton","python3","template","ui"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/inui/","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/MohammadrezaAmani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-08-14T10:59:19.000Z","updated_at":"2024-04-03T00:19:58.000Z","dependencies_parsed_at":"2023-08-14T12:24:20.850Z","dependency_job_id":"ac7df970-16c7-4d8a-8b93-3b88f7fdcc3c","html_url":"https://github.com/MohammadrezaAmani/INUI","commit_stats":null,"previous_names":["mohammadrezaamani/inui"],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohammadrezaAmani%2FINUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohammadrezaAmani%2FINUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohammadrezaAmani%2FINUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohammadrezaAmani%2FINUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MohammadrezaAmani","download_url":"https://codeload.github.com/MohammadrezaAmani/INUI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219859195,"owners_count":16556036,"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":["bootstrap","frontend","html","inui","jinja2","library","pyhton","python3","template","ui"],"created_at":"2024-10-11T19:07:04.194Z","updated_at":"2025-10-28T15:31:29.429Z","avatar_url":"https://github.com/MohammadrezaAmani.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":["General HTML Generation"],"readme":"# INUI\n\n\u003ca href='https://inui.readthedocs.io/en/latest/?badge=latest'\u003e\n    \u003cimg src='https://readthedocs.org/projects/inui/badge/?version=latest' alt='Documentation Status' /\u003e\n\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/MohammadrezaAmani/INUI/main/assets/images/inui.png\" alt=\"UniLand\" width=\"256\"\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    \u003cb\u003ePowerful and Highly Customizable Python Library for UI\u003c/b\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://github.com/MohammadrezaAmani/INUI\"\u003e\n        GitHub\n    \u003c/a\u003e\n    •\n    \u003ca href=\"#\"\u003e\n        Documentation\n    \u003c/a\u003e\n    •\n    \u003ca href=\"https://t.me/PyINUI\"\u003e\n        Channel\n    \u003c/a\u003e\n    •\n    \u003ca href=\"mailto:More.amani@yahoo.com\"\u003e\n        Support\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n## Py INUI\n\n**INUI** is a powerful and highly customizable Python language library for **UI**, which supports all the components and elements of the html markup language in [Python](https://python.org/), as well as the ability to use libraries such as [Bootstrap](https://getbootstrap.com/), etc. And it brings a new experience of easier work with frontend in Python.\n\n### Contents\n\n\u003c!-- vscode-markdown-toc --\u003e\n\n- [INUI](#inui)\n  - [Py INUI](#py-inui)\n    - [Contents](#contents)\n    - [Requirements](#requirements)\n      - [**Python Compatibility**](#python-compatibility)\n      - [**Dependencies**](#dependencies)\n    - [How to Use?](#how-to-use)\n      - [Installation](#installation)\n      - [Syntax](#syntax)\n    - [Supported Elements](#supported-elements)\n    - [Supported Attributes for each Element](#supported-attributes-for-each-element)\n    - [LICENSE](#license)\n\n\u003c!-- vscode-markdown-toc-config\n\tnumbering=false\n\tautoSave=true\n\t/vscode-markdown-toc-config --\u003e\n\n\u003c!-- /vscode-markdown-toc --\u003e\n\n### Requirements\n\n#### **Python Compatibility**\n\nThis Library is written entirely in python. tested versions are `python 3.11, 3.10, 3.9, 3.8, 3.7` while older versions\nshould not cause any problem, we recommend using the latest version of `python3`.\n\n#### **Dependencies**\n\nThis package requires the following packages:\n\n- [BeautifulSoup](https://pypi.org/project/beautifulsoup4/ \"BeautifulSoup4\") - for Prettifing Code\n\n### How to Use?\n\n\u003e read the [documentation](https://inui.readthedocs.io/en/latest/) for more information\n\n#### Installation\n\nJust run following command in the Terminal or CMD\n\n```bash\npip install inui --upgrade\n```\n\n#### Syntax\n\nThe syntax of `INUI` package is very easy, you have some building blocks like HTML tags and you have to\norder them to create a new bigger block and in the last, you have your full project.\n\nSupppose that the you want to create `Hello World!` project. your buildin block is:\n\n```python\nH1(\"Hello World!\")\n```\n\nNow you want to create application that contains `N` times `Hello World!`, in here we just put it in the\nBody tag and use our python code to create our goal. See here:\n\n```python\nn = 10\nlist_of_h1 = [H1(\"Hello World!\"+str(i)) for i in range(1,n+1) ]\nBody(list_of_h1)\n\n```\n\nIn the big picture we have some classes that take some values, first one is data that couldbe peice of text, or HTML code or another Elements\n(if the lentgh of giving data is bigger than one, we have to put them in the list,tuple or set and after use them) and second one is attribues,\nlike this:\n\n```python\noutput = Html(data=(\n    Comment(\"this is black door =`) \"),\n    Head(\n        (\n            Title(\"Wiki Clone\"),\n            Meta(charset=\"utf-8\"),\n            Meta(\n                name=\"viewport\",\n                content=\"width=device-width, initial-scale=1.0\",\n            ),\n            Link(rel=\"stylesheet\", href=\"./style.css\"),\n        )\n    ),\n    Body(\n        (\n\n            Div(\n                (\n                    Div(\n                        (\n                            H1(\"search wiki\"),\n                            Span(\"light\", id=\"theme-toggler\"),\n                        ),\n                        classs=\"header-container\",\n                    )\n                ),\n                classs=\"container\",\n            ),\n            Form(\n                (\n                    Input(\n                        typee=\"text\", placeholder=\"search wiki\", id=\"search-input\"\n                    ),\n                    Button(typee=\"submit\", text=\"search\",\n                           id=\"search-button\"),\n                ),\n                id=\"search-form\",\n            ),\n            Div(id=\"search-results\"),\n            Script(src=\"./script.js\"),\n        ),\n    ),\n),)\n\nprint(output)\n```\n\n### Supported Elements\n\n| id  | HTML          | INUI            | id  | HTML     | INUI     | id  | HTML     | INUI     |\n| --- | ------------- | --------------- | --- | -------- | -------- | --- | -------- | -------- |\n| 1   | '\u003c\u003e \u003c/\u003e '     | BaseElement     | 45  | figure   | Figure   | 89  | em       | Em       |\n| 2   | \u003c/\u003e           | BaseVoidElement | 46  | font     | Font     | 90  | pre      | Pre      |\n| 3   | !DOCTYPE html | Doctype         | 47  | footer   | Footer   | 91  | progress | Progress |\n| 4   | abbr          | Abbr            | 48  | form     | Form     | 92  | q        | Q        |\n| 5   | acronym       | Acronym         | 49  | frame    | Frame    | 93  | rp       | Rp       |\n| 6   | address       | Address         | 50  | frameset | Frameset | 94  | rt       | Rt       |\n| 7   | a             | A               | 51  | head     | Head     | 95  | ruby     | Ruby     |\n| 8   | applet        | Applet          | 52  | header   | Header   | 96  | s        | S        |\n| 9   | area          | Area            | 53  | h1       | H1       | 97  | samp     | Samp     |\n| 10  | article       | Article         | 54  | h2       | H2       | 98  | script   | Script   |\n| 11  | aside         | Aside           | 55  | h3       | H3       | 99  | section  | Section  |\n| 12  | audio         | Audio           | 56  | h4       | H4       | 100 | small    | Small    |\n| 13  | base          | Base            | 57  | h5       | H5       | 101 | source   | Source   |\n| 14  | basefont      | Basefont        | 58  | h6       | H6       | 102 | spacer   | Spacer   |\n| 15  | bdi           | Bdi             | 59  | hgroup   | Hgroup   | 103 | span     | Span     |\n| 16  | bdo           | Bdo             | 60  | hr       | Hr       | 104 | strike   | Strike   |\n| 17  | bgsound       | Bgsound         | 61  | html     | Html     | 105 | strong   | Strong   |\n| 18  | big           | Big             | 62  | iframe   | Iframe   | 106 | style    | Style    |\n| 19  | blockquote    | Blockquote      | 63  | img      | Img      | 107 | sub      | Sub      |\n| 20  | body          | Body            | 64  | input    | Input    | 108 | sup      | Sup      |\n| 21  | b             | B               | 65  | ins      | Ins      | 109 | summary  | Summary  |\n| 22  | br            | Br              | 66  | isindex  | Isindex  | 110 | svg      | Svg      |\n| 23  | button        | Button          | 67  | i        | I        | 111 | table    | Table    |\n| 24  | caption       | Caption         | 68  | kbd      | Kbd      | 112 | tbody    | Tbody    |\n| 25  | canvas        | Canvas          | 69  | keygen   | Keygen   | 113 | td       | Td       |\n| 26  | center        | Center          | 70  | label    | Label    | 114 | template | Template |\n| 27  | cite          | Cite            | 71  | legend   | Legend   | 115 | tfoot    | Tfoot    |\n| 28  | code          | Code            | 72  | li       | Li       | 116 | th       | Th       |\n| 29  | colgroup      | Colgroup        | 73  | main     | Main     | 117 | thead    | Thead    |\n| 30  | col           | Col             | 74  | mark     | Mark     | 118 | time     | Time     |\n| 31  | comment       | Comment         | 75  | marquee  | Marquee  | 119 | title    | Title    |\n| 32  | data          | Data            | 76  | menuitem | Menuitem | 120 | tr       | Tr       |\n| 33  | datalist      | Datalist        | 77  | meta     | Meta     | 121 | track    | Track    |\n| 34  | dd            | Dd              | 78  | meter    | Meter    | 122 | tt       | Tt       |\n| 35  | dfn           | Dfn             | 79  | nav      | Nav      | 123 | u        | U        |\n| 36  | del           | Del             | 80  | nobr     | Nobr     | 124 | var      | Var      |\n| 37  | details       | Details         | 81  | noembed  | Noembed  | 125 | video    | Video    |\n| 38  | dialog        | Dialog          | 82  | noscript | Noscript | 126 | wbr      | Wbr      |\n| 39  | dir           | Dir             | 83  | object   | Object   | 127 | xmp      | Xmp      |\n| 40  | div           | Div             | 84  | ol       | Ol       |\n| 41  | dl            | Dl              | 85  | optgroup | Optgroup |\n| 42  | embed         | Embed           | 86  | option   | Option   |\n| 43  | fieldset      | Fieldset        | 87  | output   | Output   |\n| 44  | figcaption    | Figcaption      | 88  | p        | P        |\n\n### Supported Attributes for each Element\n\n| id  | HTML            | INUI            | id  | HTML                  | INUI                  | id  | HTML             | INUI             |\n| --- | --------------- | --------------- | --- | --------------------- | --------------------- | --- | ---------------- | ---------------- |\n| 1   | class           | classs          | 22  | itemid                | itemid                | 89  | elementtiming    | elementtiming    |\n| 2   | id              | id              | 23  | itemprop              | itemprop              | 90  | for              | forr             |\n| 3   | src             | src             | 24  | itemref               | itemref               | 91  | max              | max              |\n| 4   | name            | name            | 25  | itemscope             | itemscope             | 92  | maxlength        | maxlength        |\n| 5   | content         | content         | 26  | itemtype              | itemtype              | 93  | min              | min              |\n| 6   | charset         | charset         | 27  | lang                  | lang                  | 94  | minlength        | minlength        |\n| 7   | style           | style           | 28  | nonce                 | nonce                 | 95  | multiple         | multiple         |\n| 8   | href            | href            | 29  | part                  | part                  | 96  | pattern          | pattern          |\n| 9   | autocapitalize  | autocapitalize  | 30  | popover               | popover               | 97  | readonly         | readonly         |\n| 10  | accesskey       | accesskey       | 31  | slot                  | slot                  | 98  | rel              | rel              |\n| 11  | accessskey      | accessskey      | 32  | spellcheck            | spellcheck            | 99  | required         | required         |\n| 12  | autofocus       | autofocus       | 33  | tabindex              | tabindex              | 100 | size             | size             |\n| 13  | contenteditable | contenteditable | 34  | title                 | title                 | 101 | step             | step             |\n| 14  | dir             | dir             | 35  | translate             | translate             | 102 | typee            | typee            |\n| 15  | draggable       | draggable       | 36  | virtualkeyboardpolicy | virtualkeyboardpolicy | 103 | placeholder      | placeholder      |\n| 16  | enterkeyhint    | enterkeyhint    | 37  | accept                | accept                | 104 | text             | text             |\n| 17  | exportparts     | exportparts     | 38  | autocomplete          | autocomplete          | 105 | scope            | scope            |\n| 18  | hidden          | hidden          | 39  | capture               | capture               | 106 | colspan          | colspan          |\n| 19  | inert           | inert           | 40  | crossorigin           | crossorigin           | 107 | aria-describedby | aria_describedby |\n| 20  | inputmode       | inputmode       | 41  | dirname               | dirname               | 108 | aria-label       | aria_label       |\n| 21  | is              | iss             | 42  | disabled              | disabled              | 109 | selected         | selected         |\n\n### LICENSE\n\nDistributed under the MIT License. See `LICENSE` for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMohammadrezaAmani%2FINUI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMohammadrezaAmani%2FINUI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMohammadrezaAmani%2FINUI/lists"}