Hello everyone I'm Mr. Fei, inPython
There is a lot in the ecology toPython
As the main development language, to realize the framework of web application development, the most well-known ones areDash
、flet
、streamlit
、gradio
、nicegui
etc.
When considered togetherpopularity、development capability、freedom of development、Relevant ecological maturity、expandability、safetyand other aspects of competence.Dash
It's one of those ceiling-level presences, which is alsoDash
It is a key reason why companies, universities, and government agencies around the world are choosing it to rapidly develop and build a wide range of production-grade platform applications.
included among theseRelevant ecological maturityThis is specifically reflected in theDash
The richness of the component libraries in today's post is going to introduce you to thefac
(full name)feffery-antd-components
, the official website documentation address: ) is a very sophisticated set ofDash
A library of common components for web development, with a cumulative download volume of over250,000times, the underlying layer is based on a very well-known front-end frameworkAnt Design
The second development of a large number of applications makes it possible to use the purePython
way to call a variety of rich component functionality to build our favoriteDash
Web Application.
fac
has just released its0.3.0
The official version, based on the latestAnt Design
The version has been fully upgraded with integrated features that covercommon (use)、opening (chess jargon)、navigator、Data entry、Data Display、send back information、(sth. or sb) elseAs many as seven categories of functions such as109The components are sufficient to easily cover the functional requirements of all types of commonly used applications.
Dash
cap (a poem)fac
The installation is very easy to use, and we recommend that you get into the good habit of installing a separatePython
virtualized environmentDash
Application project development work toconda
maybemamba
As an example (conda
The user sets the command'smamba
exchange (sth) for (sth else)conda
(can be):
- Create the sample virtual environment and activate it.
Python
version in the mainstream3.8
until (a time)3.12
Anywhere between
mamba create -n my-dash-env python=3.9 -y
mamba activate my-dash-env
- utilization
pip
Direct Installationfac
The otherDash
dependencies
pip install feffery-antd-components
OK, our environment so ready, very simple and convenient 😉 ~, next you can in your customaryide
Start writing inDash
Applied.
Here is one of the simplestDash
application example, you can paste the following code directly into youride
in the terminal, and then execute thepython
command to start it.Dash
The default will be in the localhttp://127.0.0.1:8050
The address launches our application, which can be accessed directly in the browser to see the effect below:
import dash
import feffery_antd_components as fac
app = (__name__)
= (
type="info",
showIcon=True,
message="How are you?,Dash!",
description=f"Dashreleases:{dash.__version__},facreleases:{fac.__version__}",
)
if __name__ == "__main__":
()
included among thesejust like
fac
hit the nail on the headwarning noticecomponent that corresponds to the document address:/AntdAlert Each component has its own parameters for different functions, such as in the example above, which are defined by the parameterinfo
The prompt type is set, via the parametershowIcon
Setting the icon display, via the parametermessage
The content of the prompt message is set, via the parameterdescription
sets the content of the descriptive information, all of which you can find in thedocumentation siteCheck out the detailed introduction and sample demos in the
unfamiliarfac
regular users should know that its documentation site is based entirely on theDash
developed and open-sourced the full source code address (/CNFeffery/feffery-antd-docs ), with thisfac
The document website has also been extensively updated and reconstructed to add a lot of practical functions to facilitate more convenient and efficient querying of documents, thanks to the contributors who have participated in the source code in this process.insistence、patron (of wine etc)、Riggle the Data Monkey、DreamGeryWaiting for classmates 🖖.
Space is limited and this paper addressesfac
We will continue to share more information about the many new features in theDash
、fac
and a variety of dry content on the related ecology, welcome to stay tuned to ❤️.