Metadata-Version: 2.1
Name: taipy-gui
Version: 4.0.2
Summary: Low-code library to create graphical user interfaces on the Web for your Python applications.
Author-email: Avaiga <dev@taipy.io>
License: Apache License 2.0
Project-URL: homepage, https://github.com/avaiga/taipy
Keywords: taipy-gui
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: charset-normalizer<=3.3.2,>=3.3.2
Requires-Dist: flask<3.2,>=3.1.0
Requires-Dist: flask-cors<5.1,>=5.0.0
Requires-Dist: flask-socketio<5.5,>=5.4.1
Requires-Dist: gevent<24.12,>=24.11.1
Requires-Dist: gevent-websocket<=0.10.1,>=0.10.1
Requires-Dist: gitignore-parser<=0.1.11,>=0.1
Requires-Dist: kthread<=0.2.3,>=0.2.3
Requires-Dist: markdown<=3.6,>=3.4.4
Requires-Dist: pandas<=2.2.2,>=1.3.5
Requires-Dist: python-dotenv<=1.0.1,>=1.0.0
Requires-Dist: pytz<=2024.1,>=2021.3
Requires-Dist: simple-websocket<=1.0.0,>=0.10.1
Requires-Dist: taipy-common==4.0.2
Requires-Dist: twisted<24.8.0,>=24.7.0
Requires-Dist: tzlocal<=5.2,>=3.0
Requires-Dist: watchdog<=4.0.1,>=4.0.0
Provides-Extra: ngrok
Requires-Dist: pyngrok<6.0,>=5.1; extra == "ngrok"
Provides-Extra: image
Requires-Dist: python-magic<0.5,>=0.4.24; platform_system != "Windows" and extra == "image"
Requires-Dist: python-magic-bin<0.5,>=0.4.14; platform_system == "Windows" and extra == "image"
Provides-Extra: arrow
Requires-Dist: pyarrow<19.0,>=16.0.0; extra == "arrow"

# Taipy GUI

## License

Copyright 2021-2024 Avaiga Private Limited

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License at
[http://www.apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0.txt)

Unless required by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific language governing permissions
and limitations under the License.

## What is Taipy GUI

Taipy is a Python library for creating Business Applications. More information on our
[website](https://www.taipy.io). Taipy is split into multiple packages including *taipy-gui* to let users
install the minimum they need.

Taipy GUI provides Python classes that make it easy to create powerful web apps in minutes.

## Installation

There are different ways to install Taipy GUI, depending on how
you plan to use it:

- [Installing the latest release](#installing-the-latest-release)
- [Installing the development version](#installing-the-development-version)
  - [1 - Clone the repository](#1---clone-the-repository)
  - [2 - Install Node.js](#2---install-nodejs)
  - [3 - Build the JavaScript bundle](#3---build-the-javascript-bundle)
  - [4 - Install the package as editable](#4---install-the-package-as-editable)
- [Debugging the JavaScript bundle](#debugging-the-javascript-bundle)
- [Running the tests](#running-the-tests)

Taipy GUI needs your system to have **Python 3.9** or above installed.

### Installing the latest release

The easiest way to install Taipy GUI is using pip

Run the command:
```bash
pip install taipy-gui
```

### Installing the development version

The development version of Taipy GUI is updated daily with changes from the
Taipy R&D and external contributors that we praise for their input.

You should also install this version if you want to contribute to the development of Taipy GUI. Here are the steps to follow:

#### 1 - Clone the Taipy repository

Clone the Taipy repository using the following command:
```bash
git clone https://github.com/Avaiga/taipy.git
```

This creates the 'taipy' directory holding all the package's source code, and the 'taipy-gui'
source code is in the 'taipy/gui' directory.

#### 2 - Install Node.js

Taipy GUI has some code dealing with the client side of the web applications.
This code is written in <a href="https://www.typescriptlang.org/" target="_blank">TypeScript</a>, relies on <a href="https://reactjs.org/" target="_blank">React</a> components, and is packaged into a JavaScript bundle
that is sent to browsers when they connect to all Taipy GUI applications.

This bundle needs to be built before being usable by Taipy GUI.

First you need to install <a href="https://nodejs.org/" target="_blank">Node.js</a> on your system.

**Select the "Recommended For Most Users" version, and follow the instructions for your system.**

**Select "Automatically install the necessary tools" when asked.**

#### 3 - Build the JavaScript bundle

Open a new terminal and run the following commands:

- Install the DOM dependencies
```bash
cd gui
cd dom
npm i
```
- Install the web app dependencies
```bash
cd ..
npm i
```
- Build the web app
```bash
npm run build
```

After a few minutes, this creates the directory `taipy/gui/webapp` in the root directory of the repository
where the front-end code for Taipy GUI is split into a set of JavaScript bundles.

#### 4 - Install the package as editable

In a terminal, **at the root of the repository**, run:
```bash
pip install -e . --user
```

This should install the dev version of Taipy GUI as editable. You are now ready to use it.
