Metadata-Version: 2.1
Name: inui
Version: 0.1.2
Summary: Powerful and Highly Customizable Python Library for UI
Home-page: https://github.com/MohammadrezaAmani/INUI/
Author: Mohammadreza Amani
Author-email: Mohammadreza Amani <more.amani@yahoo.com>
License: MIT License
        
        Copyright (c) 2023 Mohammadreza Amani
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/MohammadrezaAmani/
Keywords: framework,ui,frontend,engine
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: beautifulsoup4
Provides-Extra: dev

# INUI

<p align="center">
    <a>
        <img src="./assets/images/inui.png" alt="UniLand" width="256">
    </a>
    <br>
    <b>Powerful and Highly Customizable Python Library for UI</b>
    <br>
    <a href="https://github.com/MohammadrezaAmani/INUI">
        GitHub
    </a>
    •
    <a href="#">
        Documentation
    </a>
    •
    <a href="https://t.me/PyINUI">
        Channel
    </a>
    •
    <a href="mailto:More.amani@yahoo.com">
        Support
    </a>
</p>

<br>

# Py INUI

**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.

## Contents

<!-- vscode-markdown-toc -->

- [INUI](#inui)
- [Py INUI](#py-inui)
  - [Contents](#contents)
  - [Requirements](#requirements)
    - [**Python Compatibility**](#python-compatibility)
    - [**Dependencies**](#dependencies)
  - [In A Nutshell](#in-a-nutshell)
  - [How to Use?](#how-to-use)
  - [LICENSE](#license)

<!-- vscode-markdown-toc-config
	numbering=false
	autoSave=true
	/vscode-markdown-toc-config -->

<!-- /vscode-markdown-toc -->

## Requirements

### **Python Compatibility**

This Library is written entirely in python. tested versions are `python 3.11, 3.10, 3.9, 3.8, 3.7` while older versions
should not cause any problem, we recommend using the latest version of `python3`.

### **Dependencies**

This package requires the following packages:

* [BeautifulSoup](https://pypi.org/project/beautifulsoup4/ "BeautifulSoup4") - for Prettifing Code

## In A Nutshell

> you can find more examples in [examples](./examples) directory

```python3
from inui.elements import (
    Body,
    Head,
    Html,
    Title,
    H1,
    Div,
    Button,
    Link,
    Meta,
    Span,
    Form,
    Input,
    Script,
    Comment,
)

h = Html(data=(
    Comment("this is black door =`) "),
    Head(
        (
            Title("Wiki Clone"),
            Meta(charset="utf-8"),
            Meta(
                name="viewport",
                content="width=device-width, initial-scale=1.0",
            ),
            Link(rel="stylesheet", href="./style.css"),
        )
    ),
    Body(
        (

            Div(
                (
                    Div(
                        (
                            H1("search wiki"),
                            Span("light", id="theme-toggler"),
                        ),
                        classs="header-container",
                    )
                ),
                classs="container",
            ),
            Form(
                (
                    Input(
                        typee="text", placeholder="search wiki", id="search-input"
                    ),
                    Button(typee="submit", text="search",
                           id="search-button"),
                ),
                id="search-form",
            ),
            Div(id="search-results"),
            Script(src="./script.js"),
        ),
    ),
),)

```

## How to Use?

> read the [documentation](https://inui.readthedocs.io/en/latest/) for more information



```bash
pip install inui --upgrade
```

## LICENSE

Distributed under the MIT License. See `LICENSE` for more information.
