Skip to content

reflex:使用纯Python构建Web应用程序的开源工具

Published:

原文链接


Reflex is a library to build full-stack web apps in pure Python.

Key features:

See our architecture page to learn how Reflex works under the hood.

⚙️ Installation

Open a terminal and run (Requires Python 3.9+):

pip install reflex

🥳 Create your first app

Installing reflex also installs the reflex command line tool.

Test that the install was successful by creating a new project. (Replace my_app_name with your project name):

mkdir my_app_name
cd my_app_name
reflex init

This command initializes a template app in your new directory.

You can run this app in development mode:

reflex run

You should see your app running at http://localhost:3000.

Now you can modify the source code in my_app_name/my_app_name.py. Reflex has fast refreshes so you can see your changes instantly when you save your code.


Previous Post
timvisee/send:简单、私密的文件分享工具
Next Post
Fish Audio 团队推出 Fish Agent v0.1 和 Fish Speech 1.4 技术报告