Duck Framework Documentation¶
Python Web Framework | No JavaScript Required
Duck Framework is an open-source Python web framework and web server that replaces JavaScript frontends entirely.
Build real-time, reactive web applications with pure Python — no React, no Vue, no JavaScript framework needed. A modern, full-stack alternative to Django and Flask with a built-in WebSocket-driven UI engine.
Github¶
Organization: https://github.com/duckframework
Homepage: https://github.com/duckframework/duck
Stay tuned for more updates as we continue to enhance Duck’s capabilities.
Contents¶
Getting Started
- Getting Started
- 1. Install Duck
- 2. Create Your First Project
- 3. Run the Server
- 4. Understand the Project Structure
- web/main.py ➝ Entry Point (starts your app)
- web/urls.py ➝ URL Routing (maps URLs to logic)
- web/views.py ➝ Logic (what your app does)
- How Everything Connects
- Run Built-in Tests
- Requirements
- What Makes Duck Different?
- Final Thought
- Project Structure
- Settings Configuration
- Build a Reactive Chat App in 5 Minutes
- Simple Counter App
- Micro Applications
Command Line Interface
Core Concepts
- Templates
- Template Tags & Filters
- Lively UI
- What Is the Lively Component System?
- What Problem Does It Solve?
- How It Works (Simple Explanation)
- Why It’s Powerful
- Beginner Mental Model
- Page Component Example
- Guidelines
- Component Events
- Automatic Event Binding
- WebSocket sync convention
- Fast Navigation
- Pre-rendering Components
- Counter App
- Notes
- Components in Templates
- Custom Components
- Component Extensions
- Predefined Components
- Force Updates on Lively Components
- File Uploads in Lively
- Custom Events
- Component Lifecycle
- Other points to Note
- Blueprints
- Duck Shortcuts
- Duck Utilities
Reactivity & Real-Time
Networking & Protocols
Request Handling & Auth
Data Layer & Integrations
Deployment & Operations
Reference
API Documentation