Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avaiga/taipy
Turns Data and AI algorithms into production-ready web applications in no time.
https://github.com/avaiga/taipy
automation data-engineering data-integration data-ops data-visualization datascience developer-tools hacktoberfest hacktoberfest2023 job-scheduler mlops orchestration pipeline pipelines python scenario scenario-analysis taipy-core taipy-gui workflow
Last synced: 4 days ago
JSON representation
Turns Data and AI algorithms into production-ready web applications in no time.
- Host: GitHub
- URL: https://github.com/avaiga/taipy
- Owner: Avaiga
- License: apache-2.0
- Created: 2022-02-18T15:55:45.000Z (almost 3 years ago)
- Default Branch: develop
- Last Pushed: 2024-11-05T07:04:06.000Z (about 2 months ago)
- Last Synced: 2024-11-05T09:06:05.745Z (about 2 months ago)
- Topics: automation, data-engineering, data-integration, data-ops, data-visualization, datascience, developer-tools, hacktoberfest, hacktoberfest2023, job-scheduler, mlops, orchestration, pipeline, pipelines, python, scenario, scenario-analysis, taipy-core, taipy-gui, workflow
- Language: Python
- Homepage: https://www.taipy.io
- Size: 149 MB
- Stars: 15,274
- Watchers: 76
- Forks: 1,844
- Open Issues: 171
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Build Python Data & AI web applications
From simple pilots to production-ready web applications in no time.
No more compromises on performance, customization, and scalability.
Go beyond existing libraries## Table of Contents
- [What's Taipy?](#%EF%B8%8F-whats-taipy)
- [Key Features](#-key-features)
- [Quickstart](#️-quickstart)
- [Scenario and Data Management](#-scenario--data-management)
- [Taipy Studio](#taipy-studio)
- [User Interface Generation and Scenario & Data Management](#user-interface-generation-and-scenario--data-management)
- [Contributing](#%EF%B8%8F-contributing)
- [Code of Conduct](#-code-of-conduct)
- [License](#-license)
## ⭐️ What's Taipy?
Taipy is designed for data scientists and machine learning engineers to build data & AI web applications.
⭐️ Enables building production-ready web applications.
⭐️ No need to learn new languages; only Python is needed.
⭐️ Concentrate on data and AI algorithms without the complexities of development and deployment.
Taipy is a Two-in-One Tool for UI Generation and Scenario & Data Management
| User Interface Generation | Scenario & Data Management |
| ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| | |
## ✨ Key Features
## ⚙️ Quickstart
To install the stable release of Taipy, run:
```bash
pip install taipy
```### Ready to Install Taipy? 🚀
Get everything set up in no time! Whether you're using a Conda environment or installing from
source, follow our [Installation Guide](https://docs.taipy.io/en/latest/tutorials/getting_started/installation/) for
step-by-step instructions.### Excited to Dive In? 💡
Start building with Taipy today! Our
[Getting Started Guide](https://docs.taipy.io/en/develop/tutorials/getting_started/)
is the perfect place to begin your journey and unlock the full potential of Taipy.
## 🔌 Scenario & Data Management
Let's create a simple scenario in Taipy that allows you to filter movie data based on your chosen genre.
This scenario is designed as a straightforward pipeline.
Every time you change your genre selection, the scenario runs to process your request.
It then displays the top seven most popular movies in that genre.
> ⚠️ Keep in mind that in this example, we're using a very basic pipeline that consists of just one task. However,
> Taipy is capable of handling much more complex pipelines 🚀
Below is our filter function. This is a typical Python function, and it's the only task used in this scenario.
```python
def filter_genre(initial_dataset: pd.DataFrame, selected_genre):
filtered_dataset = initial_dataset[initial_dataset['genres'].str.contains(selected_genre)]
filtered_data = filtered_dataset.nlargest(7, 'Popularity %')
return filtered_data
```This is the execution graph of the scenario we are implementing:
### Taipy Studio
You can use the Taipy Studio extension in Visual Studio Code to configure your scenario with no code.
Your configuration is automatically saved as a TOML file.
Check out the Taipy Studio [Documentation](https://docs.taipy.io/en/latest/userman/ecosystem/studio/).For more advanced use cases or if you prefer coding your configurations instead of using Taipy Studio,
check out the movie genre demo scenario creation with this [Demo](https://docs.taipy.io/en/latest/gallery/articles/movie_genre_selector/).
## User Interface Generation and Scenario & Data Management
This simple Taipy application demonstrates how to create a basic film recommendation system using Taipy.
The application filters a dataset of films based on the user's selected genre and displays the top seven films in that genre by popularity.
Here is the full code for both the front end and back end of the application.
```python
import taipy as tp
import pandas as pd
from taipy import Config, Scope, Gui# Defining the helper functions
# Callback definition - submits scenario with genre selection
def on_genre_selected(state):
scenario.selected_genre_node.write(state.selected_genre)
tp.submit(scenario)
state.df = scenario.filtered_data.read()## Set initial value to Action
def on_init(state):
on_genre_selected(state)# Filtering function - task
def filter_genre(initial_dataset: pd.DataFrame, selected_genre):
filtered_dataset = initial_dataset[initial_dataset["genres"].str.contains(selected_genre)]
filtered_data = filtered_dataset.nlargest(7, "Popularity %")
return filtered_data# The main script
if __name__ == "__main__":
# Taipy Scenario & Data Management# Load the configuration made with Taipy Studio
Config.load("config.toml")
scenario_cfg = Config.scenarios["scenario"]# Start Taipy Orchestrator
tp.Orchestrator().run()# Create a scenario
scenario = tp.create_scenario(scenario_cfg)# Taipy User Interface
# Let's add a GUI to our Scenario Management for a full application# Get the list of genres
genres = [
"Action", "Adventure", "Animation", "Children", "Comedy", "Fantasy", "IMAX",
"Romance", "Sci-Fi", "Western", "Crime", "Mystery", "Drama", "Horror", "Thriller", "Film-Noir", "War", "Musical", "Documentary"
]# Initialization of variables
df = pd.DataFrame(columns=["Title", "Popularity %"])
selected_genre = "Action"# User interface definition
my_page = """
# Film Recommendation## Choose Your Favorite Genre
<|{selected_genre}|selector|lov={genres}|on_change=on_genre_selected|dropdown|>## Here are the Top Seven Picks by Popularity
<|{df}|chart|x=Title|y=Popularity %|type=bar|title=Film Popularity|>
"""Gui(page=my_page).run()
```And the final result:
## ⚒️ Contributing
Want to help build Taipy? Check out our [**Contributing Guide**](https://github.com/Avaiga/taipy/blob/develop/CONTRIBUTING.md).
## 🪄 Code of Conduct
Want to be part of the Taipy community? Check out our [**Code of Conduct**](https://github.com/Avaiga/taipy/blob/develop/CODE_OF_CONDUCT.md)
## 🪪 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
[Apache License](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.