Skip to content

Commit

Permalink
Merge branches 'feat/#692-Add_progress_bar_visual_element' and 'feat/#…
Browse files Browse the repository at this point in the history
…692-Add_progress_bar_visual_element' of https://github.com/yaten2302/taipy into feat/#692-Add_progress_bar_visual_element
  • Loading branch information
yaten2302 committed Jun 14, 2024
2 parents db535ab + 1df2d98 commit 0340bd0
Show file tree
Hide file tree
Showing 24 changed files with 413 additions and 181 deletions.
9 changes: 5 additions & 4 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,12 @@ body:
validations:
required: false

- type: markdown
- type: textarea
id: acceptance_criteria
attributes:
value: |
### Acceptance Criteria
label: "Acceptance Criteria"
description: Do not edit the text area below.
value: |
- [ ] Ensure new code is unit tested, and check code coverage is at least 90%.
- [ ] Create related issue in taipy-doc for documentation and Release Notes.
Expand Down
11 changes: 6 additions & 5 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,16 @@ body:
validations:
required: false

- type: markdown
- type: textarea
id: acceptance_criteria
attributes:
value: |
### Acceptance Criteria
label: "Acceptance Criteria"
description: Do not edit the text area below.
value: |
- [ ] Ensure new code is unit tested, and check code coverage is at least 90%.
- [ ] Create related issue in taipy-doc for documentation and Release Notes.
- [ ] Check if a new demo could be provided based on this, or if legacy demos could be benefit from it.
- [ ] Ensure any change is well documented.
- [ ] Ensure any change is well documented.
- type: checkboxes
id: terms_checklist_feature
Expand Down
9 changes: 5 additions & 4 deletions .github/ISSUE_TEMPLATE/refactor-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ body:
description: "Describe what improvements can be made(performance, API...) in the codebase without introducing breaking changes."
validations:
required: true

- type: markdown

- type: textarea
id: acceptance_criteria
attributes:
label: "Acceptance Criteria"
description: Do not edit the text area below.
value: |
### Acceptance Criteria
- [ ] Ensure new code is unit tested, and check code coverage is at least 90%.
- [ ] Propagate any change on the demos and run all of them to ensure there is no breaking change.
- [ ] Ensure any change is well documented.
Expand Down
51 changes: 29 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,52 +11,59 @@
</div>

<h1 align="center">
Data and AI algorithms into production-ready web apps
Build Python Data & AI web applications
</h1>

<div align="center">
Taipy is an open-source Python library for easy, end-to-end application development,<br />featuring what-if analyses, smart pipeline execution, built-in scheduling, and deployment tools.
From simple pilots to production-ready web applications in no time. No more compromise on performance, customization, and scalability.
</div>

<p align="center">
<br />

<div align="center">

**Go beyond existing libraries**
</div>



<p align="left">
<br />
<a href="https://docs.taipy.io/en/latest/"><strong>📚 Explore the docs </strong></a>
<br />
<a href="https://docs.taipy.io/en/latest/"><strong>Explore the docs »</strong></a>
<br/><br/>
<a href="https://discord.com/invite/SJyz2VJGxV">Discord support</a>
·
<a href="https://docs.taipy.io/en/latest/gallery/">Demos & Examples</a>
<a href="https://discord.com/invite/SJyz2VJGxV"> 🫱🏼‍🫲🏼 Discord support</a>
<br />
<a href="https://docs.taipy.io/en/latest/gallery/"> 👀 Demos & Examples</a>
</p>

&nbsp;

## ⭐️ What's Taipy?

Taipy is designed for data scientists and machine learning engineers to build full-stack apps.
Taipy is designed for data scientists and machine learning engineers to build data & AI web applications.
&nbsp;

⭐️ Enables building production-ready web applications.<br />
⭐️ No need to learn new languages or full-stack frameworks.<br />
⭐️ Enables building production-ready web applications. <br />
⭐️ No need to learn new languages. Only Python is needed.<br />
⭐️ Concentrate on Data and AI algorithms without development and deployment complexities.

&nbsp;

<h4 align="left">
Taipy is a Two-in-One Tool for UI Generation and Scenario/Data Management
</h4>

<br />

| User Interface Generation | Scenario and Data Management |
| -------- | -------- |
|<img src="readme_img/gui_creation.webp" alt="Interface Animation" width="850px" height="250px" /> | <img src="readme_img/scenario_and_data_mgt.gif" alt="Back-End Animation" width="100%"/>
|<img src="readme_img/taipy_github_GUI_video.gif" alt="Interface Animation" width="100%" /> | <img src="readme_img/taipy_github_scenarios_video.gif" alt="Back-End Animation" width="100%"/>

&nbsp;

## ✨ 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.

<img src="readme_img/taipy_github_scenario.png" alt="Scenario Banner" width="49%" /> <img src="readme_img/taipy-github-optimized.png" alt="Back-End Animation" width="49.7%"/>
<img src="readme_img/taipy_github_data_support.png" alt="Back-End Animation" width="49.7%" />

- **Version Management and Pipeline Orchestration:** It includes tools for managing application versions, pipeline versions, and data versions, which are beneficial for multi-user environments.

&nbsp;

Expand Down
24 changes: 24 additions & 0 deletions doc/gui/examples/controls/metric-hide-value.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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.
# -----------------------------------------------------------------------------------------
# To execute this script, make sure that the taipy-gui package is installed in your
# Python environment and run:
# python <script>
# -----------------------------------------------------------------------------------------
from taipy.gui import Gui

page = """
<|90|metric|don't show_value|>
"""


Gui(page).run()

43 changes: 43 additions & 0 deletions doc/gui/examples/controls/metric-layout.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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.
# -----------------------------------------------------------------------------------------
# To execute this script, make sure that the taipy-gui package is installed in your
# Python environment and run:
# python <script>
# -----------------------------------------------------------------------------------------
from taipy.gui import Gui

# Layout reference can be found in the documentation: https://plotly.com/python/reference/layout/

value = 50
layout = {
"width": "1000",
"height": "500",
"paper_bgcolor": "lightgray",
"margin": {
"l": 100,
"r": 100,
"b": 100,
"t": 100,
},
"font": {
"size": 20,
"color": "black",
"family": "Arial",
},
}

page = """
<|{value}|metric|layout={layout}|>
"""

Gui(page).run()

28 changes: 28 additions & 0 deletions doc/gui/examples/controls/metric-range.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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.
# -----------------------------------------------------------------------------------------
# To execute this script, make sure that the taipy-gui package is installed in your
# Python environment and run:
# python <script>
# -----------------------------------------------------------------------------------------
from taipy.gui import Gui

value = 50
min_value = 50
max_value = 150

page = """
<|{value}|metric|min={min_value}|max={max_value}|>
"""


Gui(page).run()

27 changes: 27 additions & 0 deletions doc/gui/examples/controls/metric-simple.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.
# -----------------------------------------------------------------------------------------
# To execute this script, make sure that the taipy-gui package is installed in your
# Python environment and run:
# python <script>
# -----------------------------------------------------------------------------------------
from taipy.gui import Gui

value = 50
max_value = 150
delta_value = 20
threshold = 100

page = """
<|{value}|metric|max={max_value}|delta={delta_value}|threshold={threshold}|>
"""

Gui(page).run()
26 changes: 26 additions & 0 deletions doc/gui/examples/controls/metric-type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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.
# -----------------------------------------------------------------------------------------
# To execute this script, make sure that the taipy-gui package is installed in your
# Python environment and run:
# python <script>
# -----------------------------------------------------------------------------------------
from taipy.gui import Gui

value = 50

page = """
<|{value}|metric|type=linear|>
<|{value}|metric|type=circular|>
"""

Gui(page).run()

30 changes: 30 additions & 0 deletions doc/gui/examples/controls/metric-value-format.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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.
# -----------------------------------------------------------------------------------------
# To execute this script, make sure that the taipy-gui package is installed in your
# Python environment and run:
# python <script>
# -----------------------------------------------------------------------------------------
from taipy.gui import Gui

value = 50
delta_value = 20

# format & delta_format are used to format the value and delta value respectively.
# They use the printf syntax.

page = """
<|{value}|metric|delta={delta_value}|format=%d km/h|delta_format=%d km/h|>
"""


Gui(page).run()

Loading

0 comments on commit 0340bd0

Please sign in to comment.