--- id: reflex version: "0.9.8" license: Apache-2.0 license_treatment: permissive maintenance: active --- # reflex — Web apps in pure Python. License: permissive · Maintenance: active · Downloads: 417.5K/mo ## What it is and what it does Reflex is a full-stack web framework that lets you write both frontend and backend logic in pure Python, eliminating the need to learn JavaScript or manage separate frontend/backend codebases. It uses a reactive state model where UI components automatically update when state changes, similar to modern JavaScript frameworks but expressed entirely in Python. The framework compiles your Python code to a web application and serves it through Starlette and Granian, with real-time communication via WebSockets (python-socketio) for interactive features. The package includes built-in component libraries (radix, recharts, plotly, markdown, and others) for common UI patterns, plus hosting and deployment tools. It targets developers who want to build interactive web applications without context-switching between languages, and supports modern Python versions (3.10 through 3.14). The framework is in active development with recent releases and a large community presence. Use it for: - Build data dashboards and analytics UIs with reactive state tied to charts and tables. - Create internal tools and admin panels where Python backend logic and UI live in one codebase. - Prototype full-stack web applications quickly without writing JavaScript or managing API contracts. - Deploy Python-based AI/ML applications as interactive web interfaces using event handlers. - Build real-time collaborative apps using WebSocket-based state synchronization. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Reflex is a Python framework for building full-stack web applications with frontend and backend entirely in Python, then deploying them as interactive web services. Yes, if you want to build web applications entirely in Python and are comfortable with a framework in Beta status. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a reasonable choice for prototyping and internal tools. For production systems requiring long-term stability guarantees, verify that the framework's maturity and component ecosystem meet your needs. ## Install pip install reflex uv add reflex poetry add reflex ## Installing reflex Before you install: Installation is low-friction; the package is pure Python and pulls in 26 runtime dependencies including web servers (granian, starlette), async utilities (python-socketio, httpx), and component libraries. Maintenance is active with a recent release (10 days old) and steady repository activity. License in practice: Licensed under Apache-2.0 (permissive), which allows commercial and private use with minimal restrictions—suitable for most production and proprietary projects. Quickstart: # Install pip install reflex # Create and run a minimal app import reflex as rx class State(rx.State): count: int = 0 def index(): return rx.vstack(rx.heading(State.count)) app = rx.App() app.add_page(index) # Then: reflex run Requires Python 3.10 or later; virtual environment strongly recommended to ensure the reflex CLI is available in PATH. Verify before relying: - Performance characteristics and scalability limits for production workloads. - Maturity of the component library and how it compares to established web frameworks. - Learning curve and documentation depth for developers new to reactive state management. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 417.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags python web framework, full-stack python apps, build web ui in python, python to web deployment, reactive python web apps, python frontend backend, no javascript web framework, python-web-framework, full-stack, reactive-ui [View on SkillFed](https://skillfed.io/packages/reflex) · [View on PyPI](https://pypi.org/project/reflex/)