GitHub Hot Board

GitHub Hot Board · 저장소 아카이브

reflex-dev/reflex

Web apps in pure Python (소개는 저장소 자체 문서에서 왔습니다.)

데이터 기준 October 26reflex-dev

최고 순위

#297

종합 · Python 언어별

29K

누적 스타

1.8K

포크 수

0

최근 30일 기록 일수

프로젝트 상태라이선스: Apache-2.0최근 push: October 25열린 이슈(PR 포함): 359

2026-10-25부터 수집. 미확인 = 아직 미수집

README에 뱃지를 붙여보세요 · reflex-dev/reflex[![README에 뱃지를 붙여보세요](https://git.vaiox.xyz/api/badge/reflex-dev/reflex.svg)](https://git.vaiox.xyz/ko/repo/reflex-dev/reflex)
<a href="https://git.vaiox.xyz/ko/repo/reflex-dev/reflex"><img src="https://git.vaiox.xyz/api/badge/reflex-dev/reflex.svg" alt="README에 뱃지를 붙여보세요" height="20"></a>

프로젝트 문서

Reflex Logo

✨ Performant, customizable web apps in pure Python. Deploy in seconds. ✨

PyPI version versions Documentation PyPI Downloads Discord Twitter


Note

Build faster with Reflex:


Introduction

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

Key features:

  • Pure Python - Write your app's frontend and backend all in Python, no need to learn Javascript.
  • Full Flexibility - Reflex is easy to get started with, but can also scale to complex apps.

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

⚙️ Installation

Important: We strongly recommend using a virtual environment to ensure the reflex command is available in your PATH.

🥳 Create your first app

Create a project, add Reflex, and start the development server with uv:

mkdir my_app_name
cd my_app_name
uv init

uv add reflex
uv run reflex init
uv run 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.

🫧 Example App

Build an image generation app in Python with Reflex: define the UI, manage state in a class, and call an image model from an event handler.

reflex-dalle-video-2x.mp4
import reflex as rx
import openai

client = openai.AsyncOpenAI()


class State(rx.State):
    prompt: str = ""
    image_url: str = ""
    processing: bool = False

    @rx.event
    def set_prompt(self, value: str):
        self.prompt = value

    @rx.event
    async def generate(self):
        self.processing = True
        yield
        response = await client.images.generate(
            model="gpt-image-1.5",
            prompt=self.prompt,
        )
        self.image_url = f"data:image/png;base64,{response.data[0].b64_json}"
        self.processing = False


def index():
    return rx.vstack(
        rx.heading("Image Generator"),
        rx.input(placeholder="Enter a prompt...", on_change=State.set_prompt),
        rx.button("Generate", on_click=State.generate, loading=State.processing),
        rx.image(src=State.image_url),
    )


app = rx.App()
app.add_page(index, title="Reflex:Image Generation")

All Thanks To Our Contributors:

현재 순위

  • 297

    종합 랭킹 · 역대 최강 · Python

    29K 스타 · 1.8K fork · 총 스타 수

    종합 · Python →

최근 30일 추이

최근 30일간 기록이 없습니다.

비슷한 프로젝트 · 공유 토픽

← 랭킹으로