A 360° open-source platform from Python pilots to production-ready web apps.
Project description
Data and AI algorithms into production-ready web apps
featuring what-if analyses, smart pipeline execution, built-in scheduling, and deployment tools.
Explore the docs »
Discord support
·
Demos & Examples
⭐️ What's Taipy?
Taipy is designed for data scientists and machine learning engineers to build full-stack apps.
⭐️ Enables building production-ready web applications.
⭐️ No need to learn new languages or full-stack frameworks.
⭐️ Concentrate on Data and AI algorithms without development and deployment complexities.
User Interface Generation | Scenario and Data Management |
---|---|
✨ Features
-
Python-Based UI Framework: Taipy is designed for Python users, particularly those working in AI and data science. It allows them to create full stack applications without needing to learn additional skills like HTML, CSS, or JavaScript.
-
Pre-Built Components for Data Pipelines: Taipy includes pre-built components that allow users to interact with data pipelines, including visualization and management tools.
-
Scenario and Data Management Features: Taipy offers features for managing different business scenarios and data, which can be useful for applications like demand forecasting or production planning.
-
Version Management and Pipeline Orchestration: It includes tools for managing application versions, pipeline versions, and data versions, which are beneficial for multi-user environments.
⚙️ Quickstart
To install Taipy stable release run:
pip install taipy
To install Taipy on a Conda Environment or from source, please refer to the Installation Guide.
To get started with Taipy, please refer to the Getting Started Guide.
🔌 Scenario and Data Management
Let's create a 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, 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.
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 Taipy Studio Documentation
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.
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 frontend and backend of the application.
import taipy as tp
import pandas as pd
from taipy import Config, Scope, Gui
# Taipy Scenario & Data Management
# 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
# Load the configuration made with Taipy Studio
Config.load("config.toml")
scenario_cfg = Config.scenarios["scenario"]
# Start Taipy Core service
tp.Core().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
# 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()
# Get 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"
## Set initial value to Action
def on_init(state):
on_genre_selected(state)
# 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:
☁️ Taipy cloud
With Taipy Cloud, you can deploy your Taipy applications in a few clicks and for free! To learn more about Taipy Cloud, please refer to the Taipy Cloud Documentation.
⚒️ Contributing
Want to help build Taipy? Check out our Contributing Guide.
🪄 Code of conduct
Want to be part of the Taipy community? Check out our Code of Conduct
🪪 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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file taipy-3.1.0.tar.gz
.
File metadata
- Download URL: taipy-3.1.0.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c68d1eda358953c7e5aefaff7a9a347382148381f38c70e4172841ba18042f13 |
|
MD5 | 02a9c4b9573b8153087d6a041d5f412e |
|
BLAKE2b-256 | 65fb3b36e57cd8b8ec5b2d087dcd9482670cfb4f6227105a5de3ee4f1fe2f5fa |
File details
Details for the file taipy-3.1.0-py3-none-any.whl
.
File metadata
- Download URL: taipy-3.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42e941f3c3baac0315666db664d726806cb56bd8c43ad5e89547e34bcb3d4913 |
|
MD5 | b10b3ca1ab7da081d423675b3cb82cee |
|
BLAKE2b-256 | f90a15d934c4eff8eece8e71efc468e71c734d7c3c7a949bb513cb65f13cb7d1 |